버그 수정
This commit is contained in:
@@ -8,7 +8,7 @@ class che_축성 extends \sammo\BaseSpecial{
|
|||||||
|
|
||||||
protected $id = 10;
|
protected $id = 10;
|
||||||
protected $name = '축성';
|
protected $name = '축성';
|
||||||
protected $info = '[내정] 기술 연구 : 기본 보정 +10%, 성공률 +10%p, 비용 -20%';
|
protected $info = '[내정] 성벽 보수 : 기본 보정 +10%, 성공률 +10%p, 비용 -20%';
|
||||||
|
|
||||||
static $selectWeightType = SpecialityHelper::WEIGHT_NORM;
|
static $selectWeightType = SpecialityHelper::WEIGHT_NORM;
|
||||||
static $selectWeight = 1;
|
static $selectWeight = 1;
|
||||||
|
|||||||
@@ -25,27 +25,30 @@ class TriggerOfficerLevel implements iAction{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
|
||||||
if($turnType == '농업' || $turnType == '상업'){
|
if($varType == 'score'){
|
||||||
if(in_array($this->officerLevel, [12, 11, 9, 7, 5, 3])){
|
if($turnType == '농업' || $turnType == '상업'){
|
||||||
return $value * 1.05;
|
if(in_array($this->officerLevel, [12, 11, 9, 7, 5, 3])){
|
||||||
|
return $value * 1.05;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
else if($turnType == '기술'){
|
||||||
else if($turnType == '기술'){
|
if(in_array($this->officerLevel, [12, 11, 9, 7, 5])){
|
||||||
if(in_array($this->officerLevel, [12, 11, 9, 7, 5])){
|
return $value * 1.05;
|
||||||
return $value * 1.05;
|
}
|
||||||
}
|
}
|
||||||
}
|
else if($turnType == '민심' || $turnType == '인구'){
|
||||||
else if($turnType == '민심' || $turnType == '인구'){
|
if(in_array($this->officerLevel, [12, 11, 2])){
|
||||||
if(in_array($this->officerLevel, [12, 11, 2])){
|
return $value * 1.05;
|
||||||
return $value * 1.05;
|
}
|
||||||
}
|
}
|
||||||
}
|
else if($turnType == '수비' || $turnType == '성벽' || $turnType == '치안'){
|
||||||
else if($turnType == '수비' || $turnType == '성벽' || $turnType == '치안'){
|
if(in_array($this->officerLevel, [12, 11, 10, 8, 6, 4])){
|
||||||
if(in_array($this->officerLevel, [12, 11, 10, 8, 6, 4])){
|
return $value * 1.05;
|
||||||
return $value * 1.05;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user