Added new spawner flag QUEST, which acts like INVULNERABLE but additionally adds a blue info icon above the NPC #1424

This commit is contained in:
Ziggy
2023-11-15 16:28:33 +01:00
parent e06aaeac47
commit 5fb4be9c89
2 changed files with 7 additions and 2 deletions
@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2019 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2023 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
@@ -69,7 +69,8 @@ public final class NpcStaticSpawnLoader extends DataLoader {
public enum SpawnerFlag {
AGGRESSIVE,
ATTACKABLE,
INVULNERABLE
INVULNERABLE,
QUEST
}
public static class StaticSpawnInfo implements SpawnInfo {
@@ -150,6 +150,10 @@ public class NPCCreator {
case INVULNERABLE:
object.addOptionFlags(OptionFlag.INVULNERABLE);
break;
case QUEST:
object.addOptionFlags(OptionFlag.INVULNERABLE);
object.addOptionFlags(OptionFlag.INTERESTING);
break;
}
}