public static void heal(Hero hero) { hero.HP = hero.HT; Buff.detach(hero, Poison.class); Buff.detach(hero, Cripple.class); Buff.detach(hero, Weakness.class); Buff.detach(hero, Bleeding.class); hero.sprite.emitter().start(Speck.factory(Speck.HEALING), 0.4f, 4); }
@Override protected boolean affectHero(Hero hero) { Sample.INSTANCE.play(Assets.SND_DRINK); PotionOfHealing.heal(hero); hero.belongings.uncurseEquipped(); ((Hunger) hero.buff(Hunger.class)).satisfy(Hunger.STARVING); CellEmitter.get(pos).start(ShaftParticle.FACTORY, 0.2f, 3); Dungeon.hero.interrupt(); GLog.p(TXT_PROCCED); Journal.remove(Feature.WELL_OF_HEALTH); return true; }