From 15a51d4254b5e63a793e88dc21681e9a9ac54630 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 23 Dec 2020 19:41:10 -0500 Subject: [PATCH] v0.9.1b: fixed horn of plenty not triggering iron stomach --- .../shatteredpixeldungeon/items/artifacts/HornOfPlenty.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java index 4fb01cc15..689decd8f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java @@ -98,8 +98,6 @@ public class HornOfPlenty extends Artifact { if (chargesToUse > charge) chargesToUse = charge; hunger.satisfy(satietyPerCharge * chargesToUse); - Talent.onFoodEaten(hero, satietyPerCharge * chargesToUse, this); - Statistics.foodEaten++; charge -= chargesToUse; @@ -119,6 +117,8 @@ public class HornOfPlenty extends Artifact { hero.spend(Food.TIME_TO_EAT); } + Talent.onFoodEaten(hero, satietyPerCharge * chargesToUse, this); + Badges.validateFoodEaten(); if (charge >= 15) image = ItemSpriteSheet.ARTIFACT_HORN4;