game: 입관했던 국가 재임관 가능

This commit is contained in:
2022-05-18 01:41:37 +09:00
parent b710a26b3e
commit e3716bda56
7 changed files with 7 additions and 47 deletions
-7
View File
@@ -168,13 +168,6 @@ class che_임관 extends Command\GeneralCommand
], 'nation=%i', $destNationID);
\sammo\refreshNationStaticInfo();
$relYear = $env['year'] - $env['startyear'];
if ($general->getNPCType() == 1 || $relYear >= 3) {
$joinedNations = $general->getAuxVar('joinedNations') ?? [];
$joinedNations[] = $destNationID;
$general->setAuxVar('joinedNations', $joinedNations);
}
$general->increaseInheritancePoint(InheritanceKey::active_action, 1);
$general->addExperience($exp);
$this->setResultTurn(new LastTurn(static::getName(), $this->arg));