forked from devsam/core
버그 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user