해산 구현

This commit is contained in:
2018-11-11 20:46:12 +09:00
parent a6a713f40e
commit b1d6611923
2 changed files with 10 additions and 51 deletions
+6
View File
@@ -2137,6 +2137,12 @@ function deleteNation(General $general) {
$oldNation['generals'] = $oldNationGenerals;
$oldNation['aux'] = Json::decode($oldNation['aux']);
$general->setVar('belong', 0);
$general->setVar('troop', 0);
$general->setVar('level', 0);
$general->setVar('nation', 0);
$general->setVar('makelimit', 12);
// 전 장수 재야로 // 전 장수 소속 무소속으로
$db->update('general', [
'belong'=>0,