v0.6.1: healing now takes priority over enemy actions
This commit is contained in:
parent
dc7d59c65f
commit
b53a2516af
|
@ -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(){
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user