Add rtconfig for forced dead npcs
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user