등용 수락 변경, Aux 처리 추가

nations->aux.joinedNations
dummyGeneral에 exp,ded 추가
scheme에서 nations 제거
This commit is contained in:
2020-03-13 01:44:18 +09:00
parent 3d6b99c004
commit cb246e859e
20 changed files with 560 additions and 247 deletions
@@ -103,7 +103,7 @@ class che_랜덤임관 extends Command\GeneralCommand{
$relYear = $env['year'] - $env['startyear'];
$notIn = array_merge(Json::decode($general->getVar('nations')), $this->arg['destNationIDList']);
$notIn = array_merge($general->getAuxVar('joinedNations')??[], $this->arg['destNationIDList']);
$destNation = null;
@@ -257,9 +257,9 @@ class che_랜덤임관 extends Command\GeneralCommand{
$relYear = $env['year'] - $env['startyear'];
if($general->getVar('npc') == 1 || $relYear >= 3){
$joinedNations = Json::decode($general->getVar('nations'));
$joinedNations = $general->getAuxVar('joinedNations')??[];
$joinedNations[] = $destNationID;
$general->setVar('nations', Json::encode($joinedNations));
$general->setAuxVar('joinedNations', $joinedNations);
}
$general->increaseVar('experience', $exp);