fix: 에러 로그에 따라 수정

- 임관, 하야 등에서 탑승 부대 해제
- 외교 서신 회수시 warning
- DummyGeneral에서 능력치 참조 시.
This commit is contained in:
2022-03-23 23:40:50 +09:00
parent fea2163a01
commit a3fbaa0038
4 changed files with 18 additions and 3 deletions
+2
View File
@@ -162,6 +162,7 @@ class che_임관 extends Command\GeneralCommand
$general->setVar('officer_level', 1);
$general->setVar('officer_city', 0);
$general->setVar('belong', 1);
$general->setVar('troop', 0);
if ($this->destGeneralObj !== null) {
$general->setVar('city', $this->destGeneralObj->getCityID());
@@ -200,6 +201,7 @@ class che_임관 extends Command\GeneralCommand
$rawNationList = Util::convertArrayToDict($db->query('SELECT nation,`name`,color,gennum,`power` FROM nation'), 'nation');
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
$nationList = [];
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
$rawNationList[$destNationID]['scoutmsg'] = $scoutMsg;
}