forked from devsam/core
fix: 마지막 국가는 임관 불가능한 것처럼 나오는 버그 수정
This commit is contained in:
@@ -200,8 +200,8 @@ 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');
|
||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
||||
$rawNationList[$nationID]['scoutmsg'] = $scoutMsg;
|
||||
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||
$rawNationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||
}
|
||||
foreach ($rawNationList as $destNation) {
|
||||
$testCommand = new static($generalObj, $this->env, ['destNationID' => $destNation['nation']]);
|
||||
|
||||
@@ -27,8 +27,8 @@ shuffle($nationList);
|
||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||
//NOTE: join 안할것임
|
||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
||||
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||
}
|
||||
|
||||
$characterAll = []; //선택용
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ shuffle($nationList);
|
||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||
//NOTE: join 안할것임
|
||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
||||
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
||||
+2
-2
@@ -44,8 +44,8 @@ $nationList = $db->query('SELECT nation,`name`,color,scout FROM nation');
|
||||
$nationList = Util::convertArrayToDict($nationList, 'nation');
|
||||
//NOTE: join 안할것임
|
||||
$scoutMsgs = KVStorage::getValuesFromInterNamespace($db, 'nation_env', 'scout_msg');
|
||||
foreach ($scoutMsgs as $nationID => $scoutMsg) {
|
||||
$nationList[$nationID]['scoutmsg'] = $scoutMsg;
|
||||
foreach ($scoutMsgs as $destNationID => $scoutMsg) {
|
||||
$nationList[$destNationID]['scoutmsg'] = $scoutMsg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user