@Override protected void satisfy(Hero hero) { super.satisfy(hero); effect(hero); }
@Override protected void satisfy(Hero hero) { super.satisfy(hero); effect(hero); }
@Override protected void satisfy(Hero hero) { super.satisfy(hero); effect(hero); }
@Override protected void satisfy(Hero hero) { super.satisfy(hero); effect(hero); }
@Override protected void satisfy(Hero hero) { super.satisfy( hero ); Buff.affect(hero, WellFed.class).reset(); }
@Override protected void satisfy(Hero hero) { super.satisfy( hero ); Buff.affect(hero, WellFed.class).reset(); }
@Override protected void satisfy(Hero hero) { super.satisfy(hero); switch(holiday){ case NONE: break; //do nothing extra case HWEEN: //heals for 10% max hp hero.HP = Math.min(hero.HP + hero.HT/10, hero.HT); hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 ); break; case XMAS: Buff.affect( hero, Recharging.class, 2f ); //half of a charge ScrollOfRecharging.charge( hero ); break; } }
@Override protected void satisfy(Hero hero) { super.satisfy(hero); switch(holiday){ case NONE: break; //do nothing extra case HWEEN: //heals for 10% max hp hero.HP = Math.min(hero.HP + hero.HT/10, hero.HT); hero.sprite.emitter().burst( Speck.factory( Speck.HEALING ), 1 ); break; case XMAS: Buff.affect( hero, Recharging.class, 2f ); //half of a charge ScrollOfRecharging.charge( hero ); break; } }
@Override public void execute( Hero hero, String action ) { super.execute( hero, action ); if (action.equals( AC_EAT )) { detach( hero.belongings.backpack ); satisfy(hero); GLog.i( message ); foodProc( hero ); hero.sprite.operate( hero.pos ); hero.busy(); SpellSprite.show( hero, SpellSprite.FOOD ); Sample.INSTANCE.play( Assets.SND_EAT ); hero.spend( TIME_TO_EAT ); Statistics.foodEaten++; Badges.validateFoodEaten(); } }
@Override public void execute( Hero hero, String action ) { super.execute( hero, action ); if (action.equals( AC_EAT )) { detach( hero.belongings.backpack ); satisfy(hero); GLog.i( message ); foodProc( hero ); hero.sprite.operate( hero.pos ); hero.busy(); SpellSprite.show( hero, SpellSprite.FOOD ); Sample.INSTANCE.play( Assets.SND_EAT ); hero.spend( TIME_TO_EAT ); Statistics.foodEaten++; Badges.validateFoodEaten(); } }