public static void complete() { weapon = null; armor = null; Notes.remove( Notes.Landmark.GHOST ); }
public static void complete() { reward = null; completed = true; Notes.remove( Notes.Landmark.IMP ); }
public static void complete() { wand1 = null; wand2 = null; Notes.remove( Notes.Landmark.WANDMAKER ); } }
public static void complete() { weapon = null; armor = null; Notes.remove( Notes.Landmark.GHOST ); }
public static void complete() { reward = null; completed = true; Notes.remove( Notes.Landmark.IMP ); }
public static void complete() { wand1 = null; wand2 = null; Notes.remove( Notes.Landmark.WANDMAKER ); } }
@Override public void destroy() { Notes.remove( Notes.Landmark.STATUE ); super.destroy(); }
@Override public void destroy() { Notes.remove( Notes.Landmark.STATUE ); super.destroy(); }
@Override public void activate() { InterlevelScene.returnDepth = Dungeon.depth; Belongings belongings = Dungeon.hero.belongings; for (Notes.Record rec : Notes.getRecords()){ if (rec.depth() == Dungeon.depth){ Notes.remove(rec); } } for (Item i : belongings){ if (i instanceof LloydsBeacon && ((LloydsBeacon) i).returnDepth == Dungeon.depth) ((LloydsBeacon) i).returnDepth = -1; } InterlevelScene.mode = InterlevelScene.Mode.RESET; Game.switchScene(InterlevelScene.class); } }
@Override public void activate() { InterlevelScene.returnDepth = Dungeon.depth; Belongings belongings = Dungeon.hero.belongings; for (Notes.Record rec : Notes.getRecords()){ if (rec.depth() == Dungeon.depth){ Notes.remove(rec); } } for (Item i : belongings){ if (i instanceof LloydsBeacon && ((LloydsBeacon) i).returnDepth == Dungeon.depth) ((LloydsBeacon) i).returnDepth = -1; } InterlevelScene.mode = InterlevelScene.Mode.RESET; Game.switchScene(InterlevelScene.class); } }
Notes.remove(new IronKey(Dungeon.depth)); Level.set( doorCell, Terrain.DOOR ); } else { Notes.remove(new SkeletonKey(Dungeon.depth)); Level.set( doorCell, Terrain.UNLOCKED_EXIT ); Sample.INSTANCE.play( Assets.SND_BONES ); } else if (heap.type == Type.LOCKED_CHEST){ Notes.remove(new GoldenKey(Dungeon.depth)); } else if (heap.type == Type.CRYSTAL_CHEST){ Notes.remove(new CrystalKey(Dungeon.depth));
Notes.remove(new IronKey(Dungeon.depth)); Level.set( doorCell, Terrain.DOOR ); } else { Notes.remove(new SkeletonKey(Dungeon.depth)); Level.set( doorCell, Terrain.UNLOCKED_EXIT ); Sample.INSTANCE.play( Assets.SND_BONES ); } else if (heap.type == Type.LOCKED_CHEST){ Notes.remove(new GoldenKey(Dungeon.depth)); } else if (heap.type == Type.CRYSTAL_CHEST){ Notes.remove(new CrystalKey(Dungeon.depth));
@Override protected void evolve() { int cell; boolean seen = false; for (int i=area.top-1; i <= area.bottom; i++) { for (int j = area.left-1; j <= area.right; j++) { cell = j + i* Dungeon.level.width(); if (Dungeon.level.insideMap(cell)) { off[cell] = cur[cell]; volume += off[cell]; if (off[cell] > 0 && Dungeon.level.visited[cell]) { seen = true; } } } } if (seen){ Notes.add(record()); } else { Notes.remove(record()); } }
@Override protected void evolve() { int cell; boolean seen = false; for (int i=area.top-1; i <= area.bottom; i++) { for (int j = area.left-1; j <= area.right; j++) { cell = j + i* Dungeon.level.width(); if (Dungeon.level.insideMap(cell)) { off[cell] = cur[cell]; volume += off[cell]; if (off[cell] > 0 && Dungeon.level.visited[cell]) { seen = true; } } } } if (seen){ Notes.add(record()); } else { Notes.remove(record()); } }
Notes.remove( Notes.Landmark.TROLL );
Notes.remove( Notes.Landmark.TROLL );