v0.9.1b: fixed horn of plenty not triggering iron stomach
This commit is contained in:
+2
-2
@@ -98,8 +98,6 @@ public class HornOfPlenty extends Artifact {
|
|||||||
if (chargesToUse > charge) chargesToUse = charge;
|
if (chargesToUse > charge) chargesToUse = charge;
|
||||||
hunger.satisfy(satietyPerCharge * chargesToUse);
|
hunger.satisfy(satietyPerCharge * chargesToUse);
|
||||||
|
|
||||||
Talent.onFoodEaten(hero, satietyPerCharge * chargesToUse, this);
|
|
||||||
|
|
||||||
Statistics.foodEaten++;
|
Statistics.foodEaten++;
|
||||||
|
|
||||||
charge -= chargesToUse;
|
charge -= chargesToUse;
|
||||||
@@ -119,6 +117,8 @@ public class HornOfPlenty extends Artifact {
|
|||||||
hero.spend(Food.TIME_TO_EAT);
|
hero.spend(Food.TIME_TO_EAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Talent.onFoodEaten(hero, satietyPerCharge * chargesToUse, this);
|
||||||
|
|
||||||
Badges.validateFoodEaten();
|
Badges.validateFoodEaten();
|
||||||
|
|
||||||
if (charge >= 15) image = ItemSpriteSheet.ARTIFACT_HORN4;
|
if (charge >= 15) image = ItemSpriteSheet.ARTIFACT_HORN4;
|
||||||
|
|||||||
Reference in New Issue
Block a user