round 문제 수정
This commit is contained in:
1 parent
50d7fa684f
commit
f667eb1500
5 files changed
+19
-16
No files matched your search
@@ -740,7 +740,7 @@ class GeneralAI{
|
||||
|
||||
if($targetGeneral){
|
||||
if($targetGeneral === $compNpcCivil){
|
||||
$amount = round($targetGeneral->$resName - $minRes * 3, -2);
|
||||
$amount = Util::round($targetGeneral->$resName - $minRes * 3, -2);
|
||||
}
|
||||
else{
|
||||
$amount = min(10000, intdiv($targetGeneral->$resName, 5000)*1000 + 1000);
|
||||
|
||||
Reference in new issue
Block a user