From de1fa34922ca2529a79f7392400dd9d3e24f7e3f Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 1 Oct 2019 22:06:38 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=91=EB=A0=A5=EC=97=86=EC=9D=84=20?= =?UTF-8?q?=EB=95=8C=20=EA=B3=B5=EA=B2=A9=20=EB=A3=A8=ED=8B=B4=20=ED=83=80?= =?UTF-8?q?=EB=8A=94=20=EA=B2=83=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 0aa6061a..a9783c1b 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -801,7 +801,7 @@ function processAI($no, &$reduce_turn) { if($targetCity['nation'] == 0) { $target[] = $targetCity['city']; } } if(count($target) == 0 || $isStart == 1 || $nation['war'] == 1) { $command = EncodeCommand(0, 0, 0, 1); } //공격 가능도시가 없으면 내정 - else { $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 + else if ($general['crew'] >= 1000) { $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 } else { //전방 아니면 내정 $command = EncodeCommand(0, 0, 0, 1); @@ -1015,7 +1015,7 @@ function processAI($no, &$reduce_turn) { } elseif($nation['war'] == 1 || !$allowedAction->battle) { //전금이면 내정, 조달 $command = EncodeCommand(0, 0, 0, (rand()%2)*8 + 1); //내정, 조달 - } else if($target){ $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 + } else if($target && $general['crew'] >= 1000){ $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 } } }