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

This commit is contained in:
Hide_D committed 2022-05-18 01:41:37 +09:00
1 parent b710a26b3e
commit e3716bda56
7 files changed
+7 -47

No files matched your search

@@ -165,13 +165,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));