Add rtconfig for forced dead npcs

This commit is contained in:
Jordan Atwood
2022-06-22 15:56:54 -04:00
committed by Adam
parent 9da5852231
commit 9ce80d4bef
2 changed files with 7 additions and 0 deletions
@@ -43,6 +43,7 @@ public class RuntimeConfig
private Map<String, String> outageLinks;
private Set<Integer> ignoreDeadNpcs;
private Set<Integer> forceDeadNpcs;
public boolean showOutageMessage()
{
@@ -109,6 +109,12 @@ public class NpcUtil
{
return false;
}
Set<Integer> forceDeadNpcs = runtimeConfig.getForceDeadNpcs();
if (forceDeadNpcs != null && forceDeadNpcs.contains(id))
{
return true;
}
}
final NPCComposition npcComposition = npc.getTransformedComposition();