|
@@ -106,6 +106,7 @@ class Thing implements Printable {
|
|
|
|
|
|
this.shiny = options.shiny == true;
|
|
this.shiny = options.shiny == true;
|
|
|
|
|
|
|
|
+ // TODO: Make sure you never bring back a fodder Room - these disappear between games and we don't want to lose Things in them.
|
|
this.addGetAlterations((thing : Thing) => {
|
|
this.addGetAlterations((thing : Thing) => {
|
|
function getClosestRoom (currentRoom : RoomRandom, rooms : Array<RoomRandom>) {
|
|
function getClosestRoom (currentRoom : RoomRandom, rooms : Array<RoomRandom>) {
|
|
if (currentRoom instanceof RoomRandom && rooms.length > 0) {
|
|
if (currentRoom instanceof RoomRandom && rooms.length > 0) {
|