v2.0.0: adjusted most landmarks to work based on visited, not heroFOV

This commit is contained in:
Evan Debenham
2023-01-06 16:01:55 -05:00
parent f006e1722a
commit 7d6d9e9f0e
9 changed files with 11 additions and 11 deletions
@@ -53,7 +53,7 @@ public class Alchemy extends Blob {
} }
volume += off[cell]; volume += off[cell];
if (off[cell] > 0 && Dungeon.level.heroFOV[cell]){ if (off[cell] > 0 && Dungeon.level.visited[cell]){
Notes.add( Notes.Landmark.ALCHEMY ); Notes.add( Notes.Landmark.ALCHEMY );
} }
} }
@@ -39,7 +39,7 @@ public class Foliage extends Blob {
int[] map = Dungeon.level.map; int[] map = Dungeon.level.map;
boolean visible = false; boolean seen = false;
int cell; int cell;
for (int i = area.left; i < area.right; i++) { for (int i = area.left; i < area.right; i++) {
@@ -55,7 +55,7 @@ public class Foliage extends Blob {
GameScene.updateMap(cell); GameScene.updateMap(cell);
} }
visible = visible || Dungeon.level.heroFOV[cell]; seen = seen || Dungeon.level.visited[cell];
} else { } else {
off[cell] = 0; off[cell] = 0;
@@ -71,7 +71,7 @@ public class Foliage extends Blob {
} }
} }
if (visible) { if (seen) {
Notes.add( Notes.Landmark.GARDEN ); Notes.add( Notes.Landmark.GARDEN );
} }
} }
@@ -85,7 +85,7 @@ public class SacrificialFire extends Blob {
} }
} }
if (off[cell] > 0 && Dungeon.level.heroFOV[cell]) { if (off[cell] > 0 && Dungeon.level.visited[cell]) {
Notes.add( Notes.Landmark.SACRIFICIAL_FIRE); Notes.add( Notes.Landmark.SACRIFICIAL_FIRE);
@@ -91,7 +91,7 @@ public class DemonSpawner extends Mob {
spawnRecorded = true; spawnRecorded = true;
} }
if (Dungeon.level.heroFOV[pos]){ if (Dungeon.level.visited[pos]){
Notes.add( Notes.Landmark.DEMON_SPAWNER ); Notes.add( Notes.Landmark.DEMON_SPAWNER );
} }
@@ -80,7 +80,7 @@ public class Statue extends Mob {
@Override @Override
protected boolean act() { protected boolean act() {
if (levelGenStatue && Dungeon.level.heroFOV[pos]) { if (levelGenStatue && Dungeon.level.visited[pos]) {
Notes.add( Notes.Landmark.STATUE ); Notes.add( Notes.Landmark.STATUE );
} }
return super.act(); return super.act();
@@ -67,7 +67,7 @@ public class Blacksmith extends NPC {
die(null); die(null);
return true; return true;
} }
if (Dungeon.level.heroFOV[pos] && !Quest.reforged){ if (Dungeon.level.visited[pos] && !Quest.reforged){
Notes.add( Notes.Landmark.TROLL ); Notes.add( Notes.Landmark.TROLL );
} }
return super.act(); return super.act();
@@ -61,7 +61,7 @@ public class Imp extends NPC {
die(null); die(null);
return true; return true;
} }
if (!Quest.given && Dungeon.level.heroFOV[pos]) { if (!Quest.given && Dungeon.level.visited[pos]) {
if (!seenBefore) { if (!seenBefore) {
yell( Messages.get(this, "hey", Dungeon.hero.name() ) ); yell( Messages.get(this, "hey", Dungeon.hero.name() ) );
} }
@@ -52,7 +52,7 @@ public class Shopkeeper extends NPC {
@Override @Override
protected boolean act() { protected boolean act() {
if (Dungeon.level.heroFOV[pos]){ if (Dungeon.level.visited[pos]){
Notes.add(Notes.Landmark.SHOP); Notes.add(Notes.Landmark.SHOP);
} }
@@ -66,7 +66,7 @@ public class Wandmaker extends NPC {
die(null); die(null);
return true; return true;
} }
if (Dungeon.level.heroFOV[pos] && Quest.wand1 != null){ if (Dungeon.level.visited[pos] && Quest.wand1 != null){
Notes.add( Notes.Landmark.WANDMAKER ); Notes.add( Notes.Landmark.WANDMAKER );
} }
return super.act(); return super.act();