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

View File

@@ -53,7 +53,7 @@ public class Alchemy extends Blob {
}
volume += off[cell];
if (off[cell] > 0 && Dungeon.level.heroFOV[cell]){
if (off[cell] > 0 && Dungeon.level.visited[cell]){
Notes.add( Notes.Landmark.ALCHEMY );
}
}

View File

@@ -39,7 +39,7 @@ public class Foliage extends Blob {
int[] map = Dungeon.level.map;
boolean visible = false;
boolean seen = false;
int cell;
for (int i = area.left; i < area.right; i++) {
@@ -55,7 +55,7 @@ public class Foliage extends Blob {
GameScene.updateMap(cell);
}
visible = visible || Dungeon.level.heroFOV[cell];
seen = seen || Dungeon.level.visited[cell];
} else {
off[cell] = 0;
@@ -71,7 +71,7 @@ public class Foliage extends Blob {
}
}
if (visible) {
if (seen) {
Notes.add( Notes.Landmark.GARDEN );
}
}

View File

@@ -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);

View File

@@ -91,7 +91,7 @@ public class DemonSpawner extends Mob {
spawnRecorded = true;
}
if (Dungeon.level.heroFOV[pos]){
if (Dungeon.level.visited[pos]){
Notes.add( Notes.Landmark.DEMON_SPAWNER );
}

View File

@@ -80,7 +80,7 @@ public class Statue extends Mob {
@Override
protected boolean act() {
if (levelGenStatue && Dungeon.level.heroFOV[pos]) {
if (levelGenStatue && Dungeon.level.visited[pos]) {
Notes.add( Notes.Landmark.STATUE );
}
return super.act();

View File

@@ -67,7 +67,7 @@ public class Blacksmith extends NPC {
die(null);
return true;
}
if (Dungeon.level.heroFOV[pos] && !Quest.reforged){
if (Dungeon.level.visited[pos] && !Quest.reforged){
Notes.add( Notes.Landmark.TROLL );
}
return super.act();

View File

@@ -61,7 +61,7 @@ public class Imp extends NPC {
die(null);
return true;
}
if (!Quest.given && Dungeon.level.heroFOV[pos]) {
if (!Quest.given && Dungeon.level.visited[pos]) {
if (!seenBefore) {
yell( Messages.get(this, "hey", Dungeon.hero.name() ) );
}

View File

@@ -52,7 +52,7 @@ public class Shopkeeper extends NPC {
@Override
protected boolean act() {
if (Dungeon.level.heroFOV[pos]){
if (Dungeon.level.visited[pos]){
Notes.add(Notes.Landmark.SHOP);
}

View File

@@ -66,7 +66,7 @@ public class Wandmaker extends NPC {
die(null);
return true;
}
if (Dungeon.level.heroFOV[pos] && Quest.wand1 != null){
if (Dungeon.level.visited[pos] && Quest.wand1 != null){
Notes.add( Notes.Landmark.WANDMAKER );
}
return super.act();