fix(game): 병가의 세율에 따른 인구 증감이 '정수'로 고정되는 문제

- onCalcNationalIncome에서 pop은 0~0.125 사이임
This commit is contained in:
2023-06-18 13:23:01 +09:00
parent 4efcbaed6a
commit 696ba0b341
+3 -3
View File
@@ -25,15 +25,15 @@ class che_병가 extends \sammo\BaseNation{
if($varType == 'score') return $value * 0.9;
if($varType == 'cost') return $value * 1.2;
}
return $value;
}
public function onCalcNationalIncome(string $type, $amount):int{
if($type == 'pop' && $amount > 0){
return Util::toInt($amount * 0.8);
return $amount * 0.8;
}
return $amount;
}
}