부대 번호를 부대장 ID로 변경

This commit is contained in:
2019-04-28 20:50:25 +09:00
parent e21fbaff83
commit 6423c22cf8
12 changed files with 49 additions and 77 deletions
+2 -3
View File
@@ -983,13 +983,12 @@ function updateNationState() {
$npcID = $npcObj->generalID;
$db->insert('troop', [
'troop_leader'=>$npcID,
'name'=>$npcObj->realName,
'nation'=>$nation['nation'],
'no'=>$npcID
]);
$troopID = $db->insertId();
$db->update('general', [
'troop'=>$troopID
'troop'=>$npcID
], 'no=%i', $npcID);
//TODO: 5턴간 집합턴 입력