getVar('npc') -> getNPCType()

This commit is contained in:
2020-05-09 23:18:47 +09:00
parent d083dc36b2
commit 6e19722742
21 changed files with 51 additions and 47 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ function ConquerCity(array $admin, General $general, array $city) {
}
//NPC인 경우 10% 확률로 임관(엔장, 인재, 의병)
$npcType = $oldGeneral->getVar('npc');
$npcType = $oldGeneral->getNPCType();
if($admin['join_mode'] != 'onlyRandom' && 2 <= $npcType && $npcType <= 8 && $npcType != 5 && Util::randBool(0.1)) {
$cmd = buildGeneralCommandClass('che_임관', $oldGeneral, $admin, [
'destNationID'=>$attackerNationID