v2.0.0: fixed mimics setting enemySeen to true for no reason

This commit is contained in:
Evan Debenham
2022-12-05 15:38:15 -05:00
parent 0a4b8949fa
commit e5bd7ab0ba
3 changed files with 0 additions and 3 deletions

View File

@@ -117,7 +117,6 @@ public class CrystalMimic extends Mimic {
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) { if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
enemy = Dungeon.hero; enemy = Dungeon.hero;
target = Dungeon.hero.pos; target = Dungeon.hero.pos;
enemySeen = true;
GLog.w(Messages.get(this, "reveal") ); GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10); CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC, 1, 1.25f); Sample.INSTANCE.play(Assets.Sounds.MIMIC, 1, 1.25f);

View File

@@ -69,7 +69,6 @@ public class GoldenMimic extends Mimic {
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) { if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
enemy = Dungeon.hero; enemy = Dungeon.hero;
target = Dungeon.hero.pos; target = Dungeon.hero.pos;
enemySeen = true;
GLog.w(Messages.get(this, "reveal") ); GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10); CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC, 1, 0.85f); Sample.INSTANCE.play(Assets.Sounds.MIMIC, 1, 0.85f);

View File

@@ -181,7 +181,6 @@ public class Mimic extends Mob {
if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) { if (Actor.chars().contains(this) && Dungeon.level.heroFOV[pos]) {
enemy = Dungeon.hero; enemy = Dungeon.hero;
target = Dungeon.hero.pos; target = Dungeon.hero.pos;
enemySeen = true;
GLog.w(Messages.get(this, "reveal") ); GLog.w(Messages.get(this, "reveal") );
CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10); CellEmitter.get(pos).burst(Speck.factory(Speck.STAR), 10);
Sample.INSTANCE.play(Assets.Sounds.MIMIC); Sample.INSTANCE.play(Assets.Sounds.MIMIC);