fix(game): 병가의 세율에 따른 인구 증감이 '정수'로 고정되는 문제
- onCalcNationalIncome에서 pop은 0~0.125 사이임
This commit is contained in:
@@ -31,7 +31,7 @@ class che_병가 extends \sammo\BaseNation{
|
|||||||
|
|
||||||
public function onCalcNationalIncome(string $type, $amount):int{
|
public function onCalcNationalIncome(string $type, $amount):int{
|
||||||
if($type == 'pop' && $amount > 0){
|
if($type == 'pop' && $amount > 0){
|
||||||
return Util::toInt($amount * 0.8);
|
return $amount * 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $amount;
|
return $amount;
|
||||||
|
|||||||
Reference in New Issue
Block a user