From aa1ae2f40999e9371d6332a0a12ce2e9219fe8dc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 10 Feb 2025 13:43:44 -0500 Subject: [PATCH] v3.0.0: fixed variable text not being placed in trinity spell descs --- .../shatteredpixeldungeon/actors/hero/spells/BodyForm.java | 5 +++++ .../shatteredpixeldungeon/actors/hero/spells/MindForm.java | 5 +++++ .../shatteredpixeldungeon/actors/hero/spells/SpiritForm.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BodyForm.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BodyForm.java index d653ffb62..b56cb85f1 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BodyForm.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/BodyForm.java @@ -46,6 +46,11 @@ public class BodyForm extends ClericSpell { return HeroIcon.BODY_FORM; } + @Override + public String desc() { + return Messages.get(this, "desc", duration()) + "\n\n" + Messages.get(this, "charge_cost", (int)chargeUse(Dungeon.hero)); + } + @Override public float chargeUse(Hero hero) { return 2; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/MindForm.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/MindForm.java index c48c33a14..c6cdc3bca 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/MindForm.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/MindForm.java @@ -53,6 +53,11 @@ public class MindForm extends ClericSpell { return HeroIcon.MIND_FORM; } + @Override + public String desc() { + return Messages.get(this, "desc", itemLevel()) + "\n\n" + Messages.get(this, "charge_cost", (int)chargeUse(Dungeon.hero)); + } + @Override public float chargeUse(Hero hero) { return 3; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/SpiritForm.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/SpiritForm.java index 131098fdd..daa725b91 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/SpiritForm.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/SpiritForm.java @@ -75,6 +75,11 @@ public class SpiritForm extends ClericSpell { return HeroIcon.SPIRIT_FORM; } + @Override + public String desc() { + return Messages.get(this, "desc", ringLevel(), artifactLevel()) + "\n\n" + Messages.get(this, "charge_cost", (int)chargeUse(Dungeon.hero)); + } + @Override public float chargeUse(Hero hero) { return 4;