From 6c5110df326bb26a5e51f68de2744ec4177e2393 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 17 Apr 2017 03:02:02 -0400 Subject: [PATCH] v0.6.0: fixed the old wandmaker spawning ontop of stairs --- .../shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java index 41f1bc980..6f98cfe68 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java @@ -259,9 +259,7 @@ public class Wandmaker extends NPC { Wandmaker npc = new Wandmaker(); do { npc.pos = level.pointToCell(room.random()); - //Wandmaker must never spawn in the center. - //If he does, and the room is 3x3, there is no room for the stairs. - } while (npc.pos == level.pointToCell(room.center())); + } while (npc.pos == level.entrance); level.mobs.add( npc ); spawned = true;