v2.0.0: adjusted most landmarks to work based on visited, not heroFOV
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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() ) );
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user