v0.9.1b: fixed hearty meal showing more particles for a weaker heal
This commit is contained in:
parent
b84cbb2092
commit
a6f7fb481a
|
@ -169,11 +169,11 @@ public enum Talent {
|
||||||
//3/5 HP healed, when hero is below 25% health
|
//3/5 HP healed, when hero is below 25% health
|
||||||
if (hero.HP <= hero.HT/4) {
|
if (hero.HP <= hero.HT/4) {
|
||||||
hero.HP = Math.min(hero.HP + 1 + 2 * hero.pointsInTalent(HEARTY_MEAL), hero.HT);
|
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
|
//2/3 HP healed, when hero is below 50% health
|
||||||
} else if (hero.HP <= hero.HT/2){
|
} else if (hero.HP <= hero.HT/2){
|
||||||
hero.HP = Math.min(hero.HP + 1 + hero.pointsInTalent(HEARTY_MEAL), hero.HT);
|
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)){
|
if (hero.hasTalent(IRON_STOMACH)){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user