forked from Upstream/mmocore
Allows {mana_color} placeholder in class skill lore, to complement {mana_name}
This commit is contained in:
parent
4be7379ed2
commit
48a2ada8e6
@ -12,6 +12,10 @@ public class ManaDisplayOptions {
|
||||
private final String name, icon;
|
||||
private final char barCharacter;
|
||||
|
||||
public ChatColor getFull() { return full; }
|
||||
public ChatColor getHalf() { return half; }
|
||||
public ChatColor getEmpty() { return empty; }
|
||||
|
||||
public static final ManaDisplayOptions DEFAULT = new ManaDisplayOptions(ChatColor.AQUA, ChatColor.BLUE, ChatColor.WHITE, "Mana",
|
||||
AltChar.listSquare.charAt(0), ChatColor.BLUE + AltChar.star2);
|
||||
|
||||
|
@ -83,6 +83,7 @@ public class ClassSkill implements CooldownObject {
|
||||
|
||||
Map<String, String> placeholders = calculateModifiers(x);
|
||||
placeholders.put("mana_name", data.getProfess().getManaDisplay().getName());
|
||||
placeholders.put("mana_color", data.getProfess().getManaDisplay().getFull().toString());
|
||||
skill.getLore().forEach(str -> list.add(applyPlaceholders(placeholders, str)));
|
||||
|
||||
return list;
|
||||
|
Loading…
Reference in New Issue
Block a user