Fixed ability descriptions

This commit is contained in:
Anuken
2022-11-02 10:01:43 -04:00
parent 696d5e77ca
commit ebb37f4abe
2 changed files with 3 additions and 1 deletions

View File

@@ -934,6 +934,7 @@ ability.unitspawn = {0} Factory
ability.shieldregenfield = Shield Regen Field ability.shieldregenfield = Shield Regen Field
ability.movelightning = Movement Lightning ability.movelightning = Movement Lightning
ability.shieldarc = Shield Arc ability.shieldarc = Shield Arc
ability.suppressionfield = Regen Suppression Field
ability.energyfield = Energy Field: [accent]{0}[] damage ~ [accent]{1}[] blocks / [accent]{2}[] targets ability.energyfield = Energy Field: [accent]{0}[] damage ~ [accent]{1}[] blocks / [accent]{2}[] targets
bar.onlycoredeposit = Only Core Depositing Allowed bar.onlycoredeposit = Only Core Depositing Allowed

View File

@@ -31,6 +31,7 @@ public abstract class Ability implements Cloneable{
/** @return localized ability name; mods should override this. */ /** @return localized ability name; mods should override this. */
public String localized(){ public String localized(){
return Core.bundle.get("ability." + getClass().getSimpleName().replace("Ability", "").toLowerCase()); var type = getClass();
return Core.bundle.get("ability." + (type.isAnonymousClass() ? type.getSuperclass() : type).getSimpleName().replace("Ability", "").toLowerCase());
} }
} }