무지장의 경우에는 쌀 적게 주도록 수정

This commit is contained in:
2018-06-23 22:58:11 +09:00
parent 6b1b4fdfbb
commit 131dd46a38
+1 -1
View File
@@ -1029,7 +1029,7 @@ function NPCStaffWork($general, $nation, $dipState){
$work = true;
}
if($compUser[$resName] < 21000){
if((($isWarUser || $resName == 'gold') && $compUser[$resName] < 21000) || ($compUser[$resName] < 5000)){
if($work){
$amount = min(100, intdiv(($nation[$resName]-($resName=='rice'?(GameConst::$baserice):(GameConst::$basegold))), 2000)*10 + 10);
$commandList[EncodeCommand($resType, $userGeneralsID[0], $amount, 23)] = 40; // 금,쌀 1000단위 포상