getVar('npc') -> getNPCType()

This commit is contained in:
Hide_D committed 2020-05-09 23:18:47 +09:00
1 parent d083dc36b2
commit 6e19722742
21 files changed
+51 -47

No files matched your search

@@ -173,7 +173,7 @@ class che_장수대상임관 extends Command\GeneralCommand{
\sammo\refreshNationStaticInfo();
$relYear = $env['year'] - $env['startyear'];
if($general->getVar('npc') == 1 || $relYear >= 3){
if($general->getNPCType() == 1 || $relYear >= 3){
$joinedNations = $general->getAuxVar('joinedNations')??[];
$joinedNations[] = $destNationID;
$general->setAuxVar('joinedNations', $joinedNations);