Skip to content

Commit 716a973

Browse files
committed
1 parent f898c6d commit 716a973

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/main/java/com/robertx22/age_of_exile/database/data/spells/spell_classes/bases/SpellPredicates.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ public class SpellPredicates {
5151
return true;
5252
};
5353

54-
public static SpellPredicate REQUIRE_SHOOTABLE = new SpellPredicate(SHOOTABLE_PRED, ExileText.ofText(ChatFormatting.GREEN + "Requires Ranged Weapon to use.").get());
55-
public static SpellPredicate REQUIRE_MAGE_WEAPON = new SpellPredicate(MAGE_PRED, ExileText.ofText(ChatFormatting.GREEN + "Requires Mage Weapon to use.").get());
56-
public static SpellPredicate REQUIRE_MELEE = new SpellPredicate(MELEE_PRED, ExileText.ofText(ChatFormatting.GOLD + "Requires Melee weapon to use.").get());
57-
public static SpellPredicate ANY_ITEM = new SpellPredicate(ANY, ExileText.ofText(ChatFormatting.GOLD + "Any weapon can use.").get());
58-
public static SpellPredicate NON_MAGE_WEAPON = new SpellPredicate(NON_MAGE_PRED, ExileText.ofText(ChatFormatting.GOLD + "Non Mage weapons can use.").get());
54+
public static SpellPredicate REQUIRE_SHOOTABLE = new SpellPredicate(SHOOTABLE_PRED, Chats.REQUIRE_RANGED.locaName().withStyle(ChatFormatting.GREEN));
55+
public static SpellPredicate REQUIRE_MAGE_WEAPON = new SpellPredicate(MAGE_PRED, Chats.REQUIRE_MAGE.locaName().withStyle(ChatFormatting.GREEN));
56+
public static SpellPredicate REQUIRE_MELEE = new SpellPredicate(MELEE_PRED, Chats.REQUIRE_MELEE.locaName().withStyle(ChatFormatting.GOLD));
57+
public static SpellPredicate ANY_ITEM = new SpellPredicate(ANY, Chats.ANY_ITEM.locaName().withStyle(ChatFormatting.GOLD));
58+
public static SpellPredicate NON_MAGE_WEAPON = new SpellPredicate(NON_MAGE_PRED, Chats.NONE_MAGE.locaName().withStyle(ChatFormatting.GOLD));
5959

6060
}
6161

src/main/java/com/robertx22/age_of_exile/uncommon/localization/Chats.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import java.util.Locale;
88

99
public enum Chats implements IAutoLocName {
10+
NONE_MAGE("Non Mage weapons can use."),
11+
ANY_ITEM("Any weapon can use."),
12+
REQUIRE_MELEE("Requires Melee weapon to use."),
13+
REQUIRE_MAGE("Requires Mage Weapon to use."),
14+
REQUIRE_RANGED("Requires Ranged Weapon to use."),
1015
INFUSES_STATS("Infuses stats into blank gear."),
1116
RIGHT_CLICK_TO_GEN_ITEM("You can also right-click to generate an item."),
1217

0 commit comments

Comments
 (0)