v0.6.0: fixed the old wandmaker spawning ontop of stairs
This commit is contained in:
parent
ac04546efe
commit
6c5110df32
|
@ -259,9 +259,7 @@ public class Wandmaker extends NPC {
|
||||||
Wandmaker npc = new Wandmaker();
|
Wandmaker npc = new Wandmaker();
|
||||||
do {
|
do {
|
||||||
npc.pos = level.pointToCell(room.random());
|
npc.pos = level.pointToCell(room.random());
|
||||||
//Wandmaker must never spawn in the center.
|
} while (npc.pos == level.entrance);
|
||||||
//If he does, and the room is 3x3, there is no room for the stairs.
|
|
||||||
} while (npc.pos == level.pointToCell(room.center()));
|
|
||||||
level.mobs.add( npc );
|
level.mobs.add( npc );
|
||||||
|
|
||||||
spawned = true;
|
spawned = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user