|
|
@ -461,6 +461,10 @@ public enum NPCManager { |
|
|
|
|
|
|
|
|
|
|
|
public static void applyRunesForNPC(NPC npc){ |
|
|
|
public static void applyRunesForNPC(NPC npc){ |
|
|
|
npc.runes = new ArrayList<>(); |
|
|
|
npc.runes = new ArrayList<>(); |
|
|
|
|
|
|
|
RuneBase shopkeeperBase = RuneBase.getRuneBase(252620); |
|
|
|
|
|
|
|
CharacterRune shopkeeper = new CharacterRune(shopkeeperBase,npc.getObjectUUID()); |
|
|
|
|
|
|
|
npc.runes.add(shopkeeper); |
|
|
|
|
|
|
|
if(NPCManager._runeSetMap.containsKey(npc.runeSetID)) { |
|
|
|
for (int runeID : _runeSetMap.get(npc.runeSetID)) { |
|
|
|
for (int runeID : _runeSetMap.get(npc.runeSetID)) { |
|
|
|
RuneBase rb = RuneBase.getRuneBase(runeID); |
|
|
|
RuneBase rb = RuneBase.getRuneBase(runeID); |
|
|
|
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); |
|
|
|
CharacterRune toApply = new CharacterRune(rb, npc.getObjectUUID()); |
|
|
@ -468,3 +472,4 @@ public enum NPCManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|