v2.2.0: fixed imp shouting 'hey' from outside hero FOV

This commit is contained in:
Evan Debenham
2023-07-21 10:52:58 -04:00
parent 91387bfe78
commit bf1c608a00

View File

@@ -62,11 +62,11 @@ public class Imp extends NPC {
return true;
}
if (!Quest.given && Dungeon.level.visited[pos]) {
if (!seenBefore) {
yell( Messages.get(this, "hey", Messages.titleCase(Dungeon.hero.name()) ) );
}
Notes.add( Notes.Landmark.IMP );
seenBefore = true;
if (!seenBefore && Dungeon.level.heroFOV[pos]) {
yell(Messages.get(this, "hey", Messages.titleCase(Dungeon.hero.name())));
seenBefore = true;
}
} else {
seenBefore = false;
}