public void call() { GameScene.add( Blob.seed(bolt.collisionPos, 30, Regrowth.class)); wand.wandUsed(); } });
public void call() { new Bomb().explode(bolt.collisionPos); wand.wandUsed(); } });
public void call() { GameScene.add( Blob.seed(bolt.collisionPos, 30, Regrowth.class)); wand.wandUsed(); } });
public void call() { new Bomb().explode(bolt.collisionPos); wand.wandUsed(); } });
public void call() { int pos = bolt.collisionPos; //place the plant infront of an enemy so they walk into it. if (Actor.findChar(pos) != null && bolt.dist > 1) { pos = bolt.path.get(bolt.dist - 1); } if (pos == Terrain.EMPTY || pos == Terrain.EMBERS || pos == Terrain.EMPTY_DECO || pos == Terrain.GRASS || pos == Terrain.HIGH_GRASS || pos == Terrain.FURROWED_GRASS) { Dungeon.level.plant((Plant.Seed) Generator.random(Generator.Category.SEED), pos); } wand.wandUsed(); } });
public void call() { int pos = bolt.collisionPos; //place the plant infront of an enemy so they walk into it. if (Actor.findChar(pos) != null && bolt.dist > 1) { pos = bolt.path.get(bolt.dist - 1); } if (pos == Terrain.EMPTY || pos == Terrain.EMBERS || pos == Terrain.EMPTY_DECO || pos == Terrain.GRASS || pos == Terrain.HIGH_GRASS || pos == Terrain.FURROWED_GRASS) { Dungeon.level.plant((Plant.Seed) Generator.random(Generator.Category.SEED), pos); } wand.wandUsed(); } });
public void call() { Mimic mimic = Mimic.spawnAt(bolt.collisionPos, new ArrayList<Item>()); if (mimic != null) { mimic.adjustStats(Dungeon.depth + 10); mimic.HP = mimic.HT; Item reward; do { reward = Generator.random(Random.oneOf(Generator.Category.WEAPON, Generator.Category.ARMOR, Generator.Category.RING, Generator.Category.WAND)); } while (reward.level() < 1); Sample.INSTANCE.play(Assets.SND_MIMIC, 1, 1, 0.5f); mimic.items.clear(); mimic.items.add(reward); } else { GLog.i(Messages.get(CursedWand.class, "nothing")); } wand.wandUsed(); } });
public void call() { Mimic mimic = Mimic.spawnAt(bolt.collisionPos, new ArrayList<Item>()); if (mimic != null) { mimic.adjustStats(Dungeon.depth + 10); mimic.HP = mimic.HT; Item reward; do { reward = Generator.random(Random.oneOf(Generator.Category.WEAPON, Generator.Category.ARMOR, Generator.Category.RING, Generator.Category.WAND)); } while (reward.level() < 1); Sample.INSTANCE.play(Assets.SND_MIMIC, 1, 1, 0.5f); mimic.items.clear(); mimic.items.add(reward); } else { GLog.i(Messages.get(CursedWand.class, "nothing")); } wand.wandUsed(); } });
public void call() { Char ch = Actor.findChar( bolt.collisionPos ); if (ch == user){ ScrollOfTeleportation.teleportHero(user); wand.wandUsed(); } else if (ch != null && !ch.properties().contains(Char.Property.IMMOVABLE)) { int count = 10; int pos; do { pos = Dungeon.level.randomRespawnCell(); if (count-- <= 0) { break; } } while (pos == -1); if (pos == -1 || Dungeon.bossLevel()) { GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") ); } else { ch.pos = pos; if (((Mob) ch).state == ((Mob) ch).HUNTING)((Mob) ch).state = ((Mob) ch).WANDERING; ch.sprite.place(ch.pos); ch.sprite.visible = Dungeon.level.heroFOV[pos]; } } wand.wandUsed(); } });
public void call() { Char ch = Actor.findChar( bolt.collisionPos ); if (ch == user){ ScrollOfTeleportation.teleportHero(user); wand.wandUsed(); } else if (ch != null && !ch.properties().contains(Char.Property.IMMOVABLE)) { int count = 10; int pos; do { pos = Dungeon.level.randomRespawnCell(); if (count-- <= 0) { break; } } while (pos == -1); if (pos == -1 || Dungeon.bossLevel()) { GLog.w( Messages.get(ScrollOfTeleportation.class, "no_tele") ); } else { ch.pos = pos; if (((Mob) ch).state == ((Mob) ch).HUNTING)((Mob) ch).state = ((Mob) ch).WANDERING; ch.sprite.place(ch.pos); ch.sprite.visible = Dungeon.level.heroFOV[pos]; } } wand.wandUsed(); } });
public void call() { Char ch = Actor.findChar( bolt.collisionPos ); if (ch != null && ch != user && !ch.properties().contains(Char.Property.BOSS) && !ch.properties().contains(Char.Property.MINIBOSS)){ Sheep sheep = new Sheep(); sheep.lifespan = 10; sheep.pos = ch.pos; ch.destroy(); ch.sprite.killAndErase(); Dungeon.level.mobs.remove(ch); TargetHealthIndicator.instance.target(null); GameScene.add(sheep); CellEmitter.get(sheep.pos).burst(Speck.factory(Speck.WOOL), 4); } else { GLog.i(Messages.get(CursedWand.class, "nothing")); } wand.wandUsed(); } });
public void call() { Char ch = Actor.findChar( bolt.collisionPos ); if (ch != null && ch != user && !ch.properties().contains(Char.Property.BOSS) && !ch.properties().contains(Char.Property.MINIBOSS)){ Sheep sheep = new Sheep(); sheep.lifespan = 10; sheep.pos = ch.pos; ch.destroy(); ch.sprite.killAndErase(); Dungeon.level.mobs.remove(ch); TargetHealthIndicator.instance.target(null); GameScene.add(sheep); CellEmitter.get(sheep.pos).burst(Speck.factory(Speck.WOOL), 4); } else { GLog.i(Messages.get(CursedWand.class, "nothing")); } wand.wandUsed(); } });
public void call() { switch (Random.Int(3)) { case 0: GameScene.add( Blob.seed( bolt.collisionPos, 800, ConfusionGas.class ) ); break; case 1: GameScene.add( Blob.seed( bolt.collisionPos, 500, ToxicGas.class ) ); break; case 2: GameScene.add( Blob.seed( bolt.collisionPos, 200, ParalyticGas.class ) ); break; } wand.wandUsed(); } });
public void call() { switch (Random.Int(3)) { case 0: GameScene.add( Blob.seed( bolt.collisionPos, 800, ConfusionGas.class ) ); break; case 1: GameScene.add( Blob.seed( bolt.collisionPos, 500, ToxicGas.class ) ); break; case 2: GameScene.add( Blob.seed( bolt.collisionPos, 200, ParalyticGas.class ) ); break; } wand.wandUsed(); } });
public void call() { int damage = user.lvl * 2; switch (Random.Int(2)) { case 0: user.HP = Math.min(user.HT, user.HP + damage); user.sprite.emitter().burst(Speck.factory(Speck.HEALING), 3); target.damage(damage, wand); target.sprite.emitter().start(ShadowParticle.UP, 0.05f, 10); break; case 1: user.damage( damage, this ); user.sprite.emitter().start(ShadowParticle.UP, 0.05f, 10); target.HP = Math.min(target.HT, target.HP + damage); target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 3); Sample.INSTANCE.play(Assets.SND_CURSED); if (!user.isAlive()) { Dungeon.fail( wand.getClass() ); GLog.n(Messages.get(CursedWand.class, "ondeath", wand.name())); } break; } wand.wandUsed(); } });
public void call() { int damage = user.lvl * 2; switch (Random.Int(2)) { case 0: user.HP = Math.min(user.HT, user.HP + damage); user.sprite.emitter().burst(Speck.factory(Speck.HEALING), 3); target.damage(damage, wand); target.sprite.emitter().start(ShadowParticle.UP, 0.05f, 10); break; case 1: user.damage( damage, this ); user.sprite.emitter().start(ShadowParticle.UP, 0.05f, 10); target.HP = Math.min(target.HT, target.HP + damage); target.sprite.emitter().burst(Speck.factory(Speck.HEALING), 3); Sample.INSTANCE.play(Assets.SND_CURSED); if (!user.isAlive()) { Dungeon.fail( wand.getClass() ); GLog.n(Messages.get(CursedWand.class, "ondeath", wand.name())); } break; } wand.wandUsed(); } });
public void call() { Char target = Actor.findChar(bolt.collisionPos); switch (Random.Int(2)){ case 0: if (target != null) Buff.affect(target, Burning.class).reignite(target); Buff.affect(user, Frost.class, Frost.duration(user) * Random.Float(3f, 5f)); break; case 1: Buff.affect(user, Burning.class).reignite(user); if (target != null) Buff.affect(target, Frost.class, Frost.duration(target) * Random.Float(3f, 5f)); break; } wand.wandUsed(); } });
public void call() { Char target = Actor.findChar(bolt.collisionPos); switch (Random.Int(2)){ case 0: if (target != null) Buff.affect(target, Burning.class).reignite(target); Buff.affect(user, Frost.class, Frost.duration(user) * Random.Float(3f, 5f)); break; case 1: Buff.affect(user, Burning.class).reignite(user); if (target != null) Buff.affect(target, Frost.class, Frost.duration(target) * Random.Float(3f, 5f)); break; } wand.wandUsed(); } });