fix(game): 병가의 세율에 따른 인구 증감이 '정수'로 고정되는 문제
- onCalcNationalIncome에서 pop은 0~0.125 사이임
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user