Skip to content

rq.CastleRoomHandle ​

A mod's room, from rq.castle.room.

Fields ​

NameTypeDescription
areafun(): integerThe game's area number of the room, 30 to 50.
floorfun(): string|nilThe floor it was placed on the last time the castle opened, or nil.
wherefun(): rq.CastleRoomPlace |nilWhere it is while the castle shows it; nil when it is not placed.
setfun(opts: {name?: string, shown?: fun(): boolean, new?: boolean|fun(): boolean, floor?: integer|string})Changes the room from the next time the castle opens.
removefun()Takes the room out from the next time the castle opens. Its area number is not given again.

Used by ​

rq.CastleRoomSpec, rq.castle.room