버그 수정

This commit is contained in:
2019-04-28 02:17:20 +09:00
parent 723150b755
commit b32eb07d1e
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -1239,10 +1239,10 @@ class GeneralAI{
if($nation['rice'] < 2000){
if(($genType & self::t통솔장) && $general->getVar('rice') > $baseArmRice){
return ['che_헌납', ['isGold'=>false, 'amount'=>($general->getVar('rice') - $baseArmRice) / 2]];
return ['che_헌납', ['isGold'=>false, 'amount'=>Util::toInt(($general->getVar('rice') - $baseArmRice) / 2)]];
}
else if(!($genType & self::t통솔장)){
return ['che_헌납', ['isGold'=>false, 'amount'=>$general->getVar('rice') / 2]];
return ['che_헌납', ['isGold'=>false, 'amount'=>Util::toInt($general->getVar('rice') / 2)]];
}
}