From d80aebe1f4952e7141c639bf09dfcb92a5f00d92 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 19 Sep 2018 22:55:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=91=ED=95=A9=EC=9E=A5=20=EB=95=8C?= =?UTF-8?q?=EB=AC=B8=EC=97=90=20=EC=B4=9D=20=EA=B8=B0=EC=88=A0=EC=B9=98?= =?UTF-8?q?=EA=B0=80=20=EA=B9=8E=EC=9D=B4=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_gamerule.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 1a703038..253e85c9 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -962,7 +962,7 @@ function updateNationState() { $history = array(); $admin = $gameStor->getValues(['year', 'month', 'fiction', 'startyear', 'show_img_level', 'turnterm']); - $query = "select nation,name,level from nation"; + $query = "select nation,name,level,gennum,tech from nation"; $nationresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $nationcount = MYDB_num_rows($nationresult); @@ -1048,6 +1048,11 @@ function updateNationState() { ]); $troopID = $db->insertId(); + $db->update('nation', [ + 'gennum'=>$nation['gennum']+1, + 'totaltech'=>Util::valueFit($nation['gennum']+1, GameConst::$initialNationGenLimit) * $nation['tech'], + ], 'nation=%i', $nation['nation']); + $command = EncodeCommand(0, 0, 0, 26); //집합 $db->update('general', [ 'troop'=>$troopID,