v0.6.1: healing now takes priority over enemy actions

This commit is contained in:
Evan Debenham 2017-06-26 02:44:35 -04:00
parent dc7d59c65f
commit b53a2516af
2 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,12 @@ public class Healing extends Buff {
private float percentHealPerTick;
private int flatHealPerTick;
{
//unlike other buffs, this one acts after the hero and takes priority against enemies
//healing is much more useful if you get some of it off before enemies attack
actPriority = 1;
}
@Override
public boolean act(){

View File

@ -50,7 +50,7 @@ public class PotionOfHealing extends Potion {
public static void heal( Hero hero ) {
//starts out healing 30 hp, equalizes with hero health total at level 11
Buff.affect( hero, Healing.class ).setHeal((int)(0.8f*hero.HT + 14), 0.5f, 0);
Buff.affect( hero, Healing.class ).setHeal((int)(0.8f*hero.HT + 14), 0.333f, 0);
Buff.detach( hero, Poison.class );
Buff.detach( hero, Cripple.class );
Buff.detach( hero, Weakness.class );