버그 수정

This commit is contained in:
2020-05-17 18:15:02 +09:00
parent 0db2009e65
commit e0b8bfdeae
2 changed files with 19 additions and 16 deletions
@@ -8,7 +8,7 @@ class che_축성 extends \sammo\BaseSpecial{
protected $id = 10;
protected $name = '축성';
protected $info = '[내정] 기술 연구 : 기본 보정 +10%, 성공률 +10%p, 비용 -20%';
protected $info = '[내정] 성벽 보수 : 기본 보정 +10%, 성공률 +10%p, 비용 -20%';
static $selectWeightType = SpecialityHelper::WEIGHT_NORM;
static $selectWeight = 1;
+18 -15
View File
@@ -25,27 +25,30 @@ class TriggerOfficerLevel implements iAction{
}
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '농업' || $turnType == '상업'){
if(in_array($this->officerLevel, [12, 11, 9, 7, 5, 3])){
return $value * 1.05;
if($varType == 'score'){
if($turnType == '농업' || $turnType == '상업'){
if(in_array($this->officerLevel, [12, 11, 9, 7, 5, 3])){
return $value * 1.05;
}
}
}
else if($turnType == '기술'){
if(in_array($this->officerLevel, [12, 11, 9, 7, 5])){
return $value * 1.05;
else if($turnType == '기술'){
if(in_array($this->officerLevel, [12, 11, 9, 7, 5])){
return $value * 1.05;
}
}
}
else if($turnType == '민심' || $turnType == '인구'){
if(in_array($this->officerLevel, [12, 11, 2])){
return $value * 1.05;
else if($turnType == '민심' || $turnType == '인구'){
if(in_array($this->officerLevel, [12, 11, 2])){
return $value * 1.05;
}
}
}
else if($turnType == '수비' || $turnType == '성벽' || $turnType == '치안'){
if(in_array($this->officerLevel, [12, 11, 10, 8, 6, 4])){
return $value * 1.05;
else if($turnType == '수비' || $turnType == '성벽' || $turnType == '치안'){
if(in_array($this->officerLevel, [12, 11, 10, 8, 6, 4])){
return $value * 1.05;
}
}
}
return $value;
}