Add rtconfig for forced dead npcs

This commit is contained in:
Jordan Atwood
2022-06-21 15:36:09 -07:00
committed by Adam
parent 9da5852231
commit 9ce80d4bef
2 changed files with 7 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ public class RuntimeConfig
private Map<String, String> outageLinks; private Map<String, String> outageLinks;
private Set<Integer> ignoreDeadNpcs; private Set<Integer> ignoreDeadNpcs;
private Set<Integer> forceDeadNpcs;
public boolean showOutageMessage() public boolean showOutageMessage()
{ {

View File

@@ -109,6 +109,12 @@ public class NpcUtil
{ {
return false; return false;
} }
Set<Integer> forceDeadNpcs = runtimeConfig.getForceDeadNpcs();
if (forceDeadNpcs != null && forceDeadNpcs.contains(id))
{
return true;
}
} }
final NPCComposition npcComposition = npc.getTransformedComposition(); final NPCComposition npcComposition = npc.getTransformedComposition();