v0.9.1b: fixed hearty meal showing more particles for a weaker heal

This commit is contained in:
Evan Debenham 2020-12-26 18:13:03 -05:00
parent b84cbb2092
commit a6f7fb481a

View File

@ -169,11 +169,11 @@ public enum Talent {
//3/5 HP healed, when hero is below 25% health
if (hero.HP <= hero.HT/4) {
hero.HP = Math.min(hero.HP + 1 + 2 * hero.pointsInTalent(HEARTY_MEAL), hero.HT);
hero.sprite.emitter().burst(Speck.factory(Speck.HEALING), hero.pointsInTalent(HEARTY_MEAL));
hero.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1+hero.pointsInTalent(HEARTY_MEAL));
//2/3 HP healed, when hero is below 50% health
} else if (hero.HP <= hero.HT/2){
hero.HP = Math.min(hero.HP + 1 + hero.pointsInTalent(HEARTY_MEAL), hero.HT);
hero.sprite.emitter().burst(Speck.factory(Speck.HEALING), 1+hero.pointsInTalent(HEARTY_MEAL));
hero.sprite.emitter().burst(Speck.factory(Speck.HEALING), hero.pointsInTalent(HEARTY_MEAL));
}
}
if (hero.hasTalent(IRON_STOMACH)){