From 1fdd0a1b322d11f09650c2f395c4c5aadd128771 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 20:45:21 -0500 Subject: [PATCH] initialize runes array list for NPC --- src/engine/devcmd/cmds/PrintEffectsCmd.java | 2 +- src/engine/gameManager/NPCManager.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/devcmd/cmds/PrintEffectsCmd.java b/src/engine/devcmd/cmds/PrintEffectsCmd.java index 89bddecb..6f810012 100644 --- a/src/engine/devcmd/cmds/PrintEffectsCmd.java +++ b/src/engine/devcmd/cmds/PrintEffectsCmd.java @@ -45,7 +45,7 @@ public class PrintEffectsCmd extends AbstractDevCmd { tar = (AbstractCharacter) target; String newline = "\r\n "; - String output = "Applied Runes For Character: " + tar.getName() + newline; + String output = "Effects For Character: " + tar.getName() + newline; for(String effect : tar.effects.keySet()){ output += effect + newline; diff --git a/src/engine/gameManager/NPCManager.java b/src/engine/gameManager/NPCManager.java index 43dddeea..e86ab3c5 100644 --- a/src/engine/gameManager/NPCManager.java +++ b/src/engine/gameManager/NPCManager.java @@ -460,6 +460,7 @@ public enum NPCManager { } public static void applyRunesForNPC(NPC npc){ + npc.runes = new ArrayList<>(); for(int runeID : _runeSetMap.get(npc.runeSetID)){ RuneBase rb = RuneBase.getRuneBase(runeID); CharacterRune toApply = new CharacterRune(rb,npc.getObjectUUID());