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