v2.4.0: fixed wandmaker now potentially spawning on chasms

This commit is contained in:
Evan Debenham
2024-04-25 08:48:28 -04:00
parent f9f1b99b02
commit 35df5cbf70

View File

@@ -39,6 +39,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand;
import com.shatteredpixel.shatteredpixeldungeon.journal.Notes;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.RegularLevel;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.quest.MassGraveRoom;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.quest.RitualSiteRoom;
@@ -308,7 +309,7 @@ public class Wandmaker extends NPC {
validPos = false;
}
}
if (level.traps.get(npc.pos) != null){
if (level.traps.get(npc.pos) != null || level.map[npc.pos] == Terrain.CHASM){
validPos = false;
}
} while (!validPos);