general_turn, nation_turn 대응

This commit is contained in:
2018-11-26 01:32:42 +09:00
parent 2c193e7e48
commit 7a1c8882e6
8 changed files with 65 additions and 3 deletions
+10 -1
View File
@@ -245,7 +245,16 @@ $db->insert('general', [
'special2' => $special2
]);
$generalID = $db->insertId();
$turnRows = [];
foreach(range(0, GameConst::$maxTurn - 1) as $turnIdx){
$turnRows[] = [
'general_id'=>$generalID,
'turn_idx'=>$turnIdx,
'action'=>'휴식',
'arg'=>null,
];
}
$db->insert('general_turn', $turnRows);
$cityname = CityConst::byID($city)->name;
$me = [