@Override protected boolean act() { if (Dungeon.level.heroFOV[pos]) { Notes.add( Notes.Landmark.STATUE ); } return super.act(); }
@Override protected boolean act() { if (Dungeon.level.heroFOV[pos]) { Notes.add( Notes.Landmark.STATUE ); } return super.act(); }
@Override public boolean doPickUp(Hero hero) { GameScene.pickUpJournal(this, hero.pos); WndJournal.last_index = 2; Notes.add(this); Sample.INSTANCE.play( Assets.SND_ITEM ); hero.spendAndNext( TIME_TO_PICK_UP ); GameScene.updateKeyDisplay(); return true; }
@Override public boolean doPickUp(Hero hero) { GameScene.pickUpJournal(this, hero.pos); WndJournal.last_index = 2; Notes.add(this); Sample.INSTANCE.play( Assets.SND_ITEM ); hero.spendAndNext( TIME_TO_PICK_UP ); GameScene.updateKeyDisplay(); return true; }
@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.add( Notes.Landmark.GARDEN );
Notes.add( Notes.Landmark.GARDEN );
@Override protected void evolve() { int cell; 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.heroFOV[cell]){ Notes.add( Notes.Landmark.ALCHEMY ); } //for pre-0.6.2 saves while (off[cell] > 0 && Dungeon.level.heaps.get(cell) != null){ int n; do { n = cell + PathFinder.NEIGHBOURS8[Random.Int( 8 )]; } while (!Dungeon.level.passable[n]); Dungeon.level.drop( Dungeon.level.heaps.get(cell).pickUp(), n ).sprite.drop( pos ); } } } } }
@Override protected void evolve() { int cell; 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.heroFOV[cell]){ Notes.add( Notes.Landmark.ALCHEMY ); } //for pre-0.6.2 saves while (off[cell] > 0 && Dungeon.level.heaps.get(cell) != null){ int n; do { n = cell + PathFinder.NEIGHBOURS8[Random.Int( 8 )]; } while (!Dungeon.level.passable[n]); Dungeon.level.drop( Dungeon.level.heaps.get(cell).pickUp(), n ).sprite.drop( pos ); } } } } }
@Override public boolean interact() { sprite.turnTo( pos, Dungeon.hero.pos ); if (Quest.given) { DwarfToken tokens = Dungeon.hero.belongings.getItem( DwarfToken.class ); if (tokens != null && (tokens.quantity() >= 8 || (!Quest.alternative && tokens.quantity() >= 6))) { GameScene.show( new WndImp( this, tokens ) ); } else { tell( Quest.alternative ? Messages.get(this, "monks_2", Dungeon.hero.givenName()) : Messages.get(this, "golems_2", Dungeon.hero.givenName()) ); } } else { tell( Quest.alternative ? Messages.get(this, "monks_1") : Messages.get(this, "golems_1") ); Quest.given = true; Quest.completed = false; Notes.add( Notes.Landmark.IMP ); } return false; }
@Override public boolean interact() { sprite.turnTo( pos, Dungeon.hero.pos ); if (Quest.given) { DwarfToken tokens = Dungeon.hero.belongings.getItem( DwarfToken.class ); if (tokens != null && (tokens.quantity() >= 8 || (!Quest.alternative && tokens.quantity() >= 6))) { GameScene.show( new WndImp( this, tokens ) ); } else { tell( Quest.alternative ? Messages.get(this, "monks_2", Dungeon.hero.givenName()) : Messages.get(this, "golems_2", Dungeon.hero.givenName()) ); } } else { tell( Quest.alternative ? Messages.get(this, "monks_1") : Messages.get(this, "golems_1") ); Quest.given = true; Quest.completed = false; Notes.add( Notes.Landmark.IMP ); } return false; }
Notes.add( Notes.Landmark.WANDMAKER ); Quest.given = true;
Notes.add( Notes.Landmark.WANDMAKER ); Quest.given = true;
GameScene.show( new WndQuest( this, txt_quest ) ); Quest.given = true; Notes.add( Notes.Landmark.GHOST );
Notes.add( Notes.Landmark.TROLL );
GameScene.show( new WndQuest( this, txt_quest ) ); Quest.given = true; Notes.add( Notes.Landmark.GHOST );
Notes.add( Notes.Landmark.TROLL );