FANDOM


 
Line 8: Line 8:
 
level.addItemToSpawn(new IronKey(Dungeon.depth));
 
level.addItemToSpawn(new IronKey(Dungeon.depth));
   
However, I don't see anything to stop a locked room from spawning the key as the room's prize...
+
However, I don't see anything to stop any locked room from spawning a key as the room's prize...

Latest revision as of 08:53, May 30, 2014

From what I can read, the room is a new room type (called "Pit") which drops the key inside its own room:

 // from PitPainter.paint(Level, Room)
 l = room.random();
 ...
 level.drop(new IronKey(Dungeon.depth), l).type = Heap.Type.SKELETON;

This should be changed to how every other locked room behaves:

level.addItemToSpawn(new IronKey(Dungeon.depth));

However, I don't see anything to stop any locked room from spawning a key as the room's prize...

Community content is available under CC-BY-SA unless otherwise noted.