public void apply( Hero hero ) { shatter( hero.pos ); }
public void apply( Hero hero ) { shatter( hero.pos ); }
@Override protected void onThrow( int cell ) { if (Dungeon.level.map[cell] == Terrain.WELL || Dungeon.level.pit[cell]) { super.onThrow( cell ); } else { Dungeon.level.press( cell, null, true ); shatter( cell ); } }
@Override protected void onThrow( int cell ) { if (Dungeon.level.map[cell] == Terrain.WELL || Dungeon.level.pit[cell]) { super.onThrow( cell ); } else { Dungeon.level.press( cell, null, true ); shatter( cell ); } }
((Potion) item).shatter(pos);
((Potion) item).shatter(pos);
@Override protected void onThrow(int cell) { if (Dungeon.level.map[cell] == Terrain.WELL || Dungeon.level.pit[cell]) { super.onThrow( cell ); } else if (potionAttrib instanceof PotionOfLiquidFlame || potionAttrib instanceof PotionOfToxicGas || potionAttrib instanceof PotionOfParalyticGas || potionAttrib instanceof PotionOfFrost || potionAttrib instanceof PotionOfLevitation || potionAttrib instanceof PotionOfPurity) { potionAttrib.shatter( cell ); Dungeon.level.drop(new Chunks(), cell).sprite.drop(); } else { super.onThrow( cell ); } }
@Override protected void onThrow(int cell) { if (Dungeon.level.map[cell] == Terrain.WELL || Dungeon.level.pit[cell]) { super.onThrow( cell ); } else if (potionAttrib instanceof PotionOfLiquidFlame || potionAttrib instanceof PotionOfToxicGas || potionAttrib instanceof PotionOfParalyticGas || potionAttrib instanceof PotionOfFrost || potionAttrib instanceof PotionOfLevitation || potionAttrib instanceof PotionOfPurity) { potionAttrib.shatter( cell ); Dungeon.level.drop(new Chunks(), cell).sprite.drop(); } else { super.onThrow( cell ); } }
GLog.w( Messages.get(this, "freezes", toFreeze.toString()) ); if (toFreeze instanceof Potion){ ((Potion) toFreeze).shatter(hero.pos); } else if (toFreeze instanceof MysteryMeat){ FrozenCarpaccio carpaccio = new FrozenCarpaccio(); ((Potion) ((Thief) target).item).shatter(target.pos); ((Thief) target).item = null; } else if (item instanceof MysteryMeat){
} else if (item instanceof Potion && !(item instanceof PotionOfStrength)) { items.remove(item); ((Potion) item).shatter(pos); frozen = true; } else if (item instanceof Bomb){
GLog.w( Messages.get(this, "freezes", toFreeze.toString()) ); if (toFreeze instanceof Potion){ ((Potion) toFreeze).shatter(hero.pos); } else if (toFreeze instanceof MysteryMeat){ FrozenCarpaccio carpaccio = new FrozenCarpaccio(); ((Potion) ((Thief) target).item).shatter(target.pos); ((Thief) target).item = null; } else if (item instanceof MysteryMeat){
} else if (item instanceof Potion && !(item instanceof PotionOfStrength)) { items.remove(item); ((Potion) item).shatter(pos); frozen = true; } else if (item instanceof Bomb){
int pos = Dungeon.level.randomRespawnCell(); if (item instanceof Potion) { ((Potion)item).shatter( pos ); } else if (item instanceof Plant.Seed) { Dungeon.level.plant( (Plant.Seed)item, pos );
int pos = Dungeon.level.randomRespawnCell(); if (item instanceof Potion) { ((Potion)item).shatter( pos ); } else if (item instanceof Plant.Seed) { Dungeon.level.plant( (Plant.Seed)item, pos );