From a68d703a071388edb18fa434f0bde1d2f4414ff1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 14 Jun 2025 14:47:58 -0400 Subject: [PATCH] v3.1.1: buffed hearty meal talent, and adjusted red blink HP threshold --- core/src/main/assets/messages/actors/actors.properties | 2 +- .../shatteredpixeldungeon/actors/hero/Talent.java | 6 +++--- .../shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/assets/messages/actors/actors.properties b/core/src/main/assets/messages/actors/actors.properties index e602c6ed1..1813fe595 100644 --- a/core/src/main/assets/messages/actors/actors.properties +++ b/core/src/main/assets/messages/actors/actors.properties @@ -900,7 +900,7 @@ actors.hero.talent$searinglightcooldown.desc=You have recently used this talent, #warrior actors.hero.talent.hearty_meal.title=hearty meal -actors.hero.talent.hearty_meal.desc=_+1:_ Eating food heals the Warrior for _3 HP_ when he is at or below 30% health.\n\n_+2:_ Eating food heals the Warrior for _5 HP_ when he is at or below 30% health. +actors.hero.talent.hearty_meal.desc=_+1:_ Eating food heals the Warrior for _4 HP_ when he is at or below 33% health.\n\n_+2:_ Eating food heals the Warrior for _6 HP_ when he is at or below 33% health. actors.hero.talent.veterans_intuition.title=veteran's intuition actors.hero.talent.veterans_intuition.desc=_+1:_ The Warrior identifies weapons _1.75x faster_ and armor _2.5x faster_.\n\n_+2:_ The Warrior identifies weapons _2.5x faster_ and armor _when he equips it_. actors.hero.talent.provoked_anger.title=provoked anger diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index d4a2d5139..ea5c518e0 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -578,9 +578,9 @@ public enum Talent { public static void onFoodEaten( Hero hero, float foodVal, Item foodSource ){ if (hero.hasTalent(HEARTY_MEAL)){ - //3/5 HP healed, when hero is below 30% health - if (hero.HP/(float)hero.HT <= 0.3f) { - int healing = 1 + 2 * hero.pointsInTalent(HEARTY_MEAL); + //4/6 HP healed, when hero is below 33% health + if (hero.HP/(float)hero.HT <= 0.333f) { + int healing = 2 + 2 * hero.pointsInTalent(HEARTY_MEAL); hero.HP = Math.min(hero.HP + healing, hero.HT); hero.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(healing), FloatingText.HEALING); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java index 258f5db0e..f729d8acc 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/StatusPane.java @@ -249,7 +249,7 @@ public class StatusPane extends Component { if (!Dungeon.hero.isAlive()) { avatar.tint(0x000000, 0.5f); - } else if ((health/(float)max) <= 0.3f) { + } else if ((health/(float)max) <= 0.333f) { warning += Game.elapsed * 5f *(0.4f - (health/(float)max)); warning %= 1f; avatar.tint(ColorMath.interpolate(warning, warningColors), 0.5f );