버그 수정

This commit is contained in:
2020-04-21 02:06:03 +09:00
parent aaf7870d88
commit da1273c135
13 changed files with 103 additions and 40 deletions
+2 -4
View File
@@ -38,12 +38,10 @@ class che_헌납 extends Command\GeneralCommand{
}
$isGold = $this->arg['isGold'];
$amount = $this->arg['amount'];
if(is_float($amount)){
$amount = Util::toInt($amount);
}
else if(!is_int($amount)){
if(!is_numeric($amount)){
return false;
}
$amount = Util::round($amount, -2);
$amount = Util::valueFit($amount, 100, GameConst::$maxResourceActionAmount);
if(!is_bool($isGold)){
return false;