V0.1.1: overhauled scroll of lullaby pt. 1 (currently untested)

This commit is contained in:
Evan Debenham
2014-08-11 17:17:05 -04:00
parent a7e1455cff
commit 4f56f63053
9 changed files with 132 additions and 16 deletions
@@ -20,6 +20,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.hero;
import java.util.ArrayList;
import java.util.HashSet;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Drowsy;
import com.watabou.noosa.Camera;
import com.watabou.noosa.Game;
import com.watabou.noosa.audio.Sample;
@@ -821,6 +822,10 @@ public class Hero extends Char {
@Override
public void damage( int dmg, Object src ) {
restoreHealth = false;
if (this.buff(Drowsy.class) != null){
Buff.detach(this, Drowsy.class);
GLog.i("The pain helps you resist the urge to sleep.");
}
super.damage( dmg, src );
if (subClass == HeroSubClass.BERSERKER && 0 < HP && HP <= HT * Fury.LEVEL) {