From b98668bc6065bf6abb98900bb52cef46a04b385c Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 1 May 2019 02:57:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=80=EB=8C=80=EC=9E=A5=20=EC=82=AD?= =?UTF-8?q?=ED=84=B4=20=EA=B3=84=EC=82=B0=20=EB=B0=A9=EC=8B=9D=20=EC=9D=BC?= =?UTF-8?q?=EB=B6=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index fff0c074..7abe8c36 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -220,6 +220,8 @@ function processAI($no) { } else{ + $newKillTurn = ($general['killturn'] + Util::randRangeInt(1, 4)) % 5; + $newKillTurn += 70; $command = EncodeCommand(0, 0, 0, 26); //집합 $db->update('general', [ 'turn0'=>$command, @@ -228,7 +230,7 @@ function processAI($no) { 'turn3'=>$command, 'turn4'=>$command, 'turn5'=>$command, - 'killturn'=>rand(70,75), + 'killturn'=>$newKillTurn, ], 'no=%i', $general['no']); }