v0.6.3: fixed some enemies not being recognized as in mind vision

This commit is contained in:
Evan Debenham 2017-12-22 20:35:58 -05:00
parent 65b28a9145
commit cc46684f52

View File

@ -908,8 +908,6 @@ public abstract class Level implements Bundlable {
if (!fieldOfView[p]){ if (!fieldOfView[p]){
Dungeon.hero.mindVisionEnemies.add(mob); Dungeon.hero.mindVisionEnemies.add(mob);
} }
for (int i : PathFinder.NEIGHBOURS9)
fieldOfView[p+i] = true;
} }
} else if (((Hero)c).heroClass == HeroClass.HUNTRESS) { } else if (((Hero)c).heroClass == HeroClass.HUNTRESS) {
@ -920,11 +918,16 @@ public abstract class Level implements Bundlable {
if (!fieldOfView[p]){ if (!fieldOfView[p]){
Dungeon.hero.mindVisionEnemies.add(mob); Dungeon.hero.mindVisionEnemies.add(mob);
} }
for (int i : PathFinder.NEIGHBOURS9)
fieldOfView[p+i] = true;
} }
} }
} }
for (Mob m : Dungeon.hero.mindVisionEnemies) {
for (int i : PathFinder.NEIGHBOURS9) {
fieldOfView[m.pos + i] = true;
}
}
if (c.buff( Awareness.class ) != null) { if (c.buff( Awareness.class ) != null) {
for (Heap heap : heaps.values()) { for (Heap heap : heaps.values()) {
int p = heap.pos; int p = heap.pos;