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,