v0.9.3: Goo's healing now reverts regen time gained by damaging it.
This commit is contained in:
parent
c54eaf8b16
commit
b20cc11dee
|
@ -48,6 +48,10 @@ public class LockedFloor extends Buff {
|
||||||
left += time;
|
left += time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeTime(float time){
|
||||||
|
left -= time; //can go negative!
|
||||||
|
}
|
||||||
|
|
||||||
public boolean regenOn(){
|
public boolean regenOn(){
|
||||||
return left >= 1;
|
return left >= 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,6 +96,10 @@ public class Goo extends Mob {
|
||||||
|
|
||||||
if (Dungeon.level.water[pos] && HP < HT) {
|
if (Dungeon.level.water[pos] && HP < HT) {
|
||||||
HP += healInc;
|
HP += healInc;
|
||||||
|
|
||||||
|
LockedFloor lock = Dungeon.hero.buff(LockedFloor.class);
|
||||||
|
if (lock != null) lock.removeTime(healInc*2);
|
||||||
|
|
||||||
if (Dungeon.level.heroFOV[pos] ){
|
if (Dungeon.level.heroFOV[pos] ){
|
||||||
sprite.emitter().burst( Speck.factory( Speck.HEALING ), healInc );
|
sprite.emitter().burst( Speck.factory( Speck.HEALING ), healInc );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user