Class "RoomDescriptor"
Variables
AllowedDoors {: aria-label='Variables' }
DoorSet AllowedDoors {: .copyable aria-label='Variables' }
Contains just on load swapped data (in cases like minibosses, or other such events)
AwardSeed {: aria-label='Variables' }
int AwardSeed {: .copyable aria-label='Variables' }
used to spawn clear awards (normal, miniboss, boss rooms) and initialize shop items (shop, devil rooms)
ChallengeDone {: aria-label='Variables' }
boolean ChallengeDone {: .copyable aria-label='Variables' }
Clear {: aria-label='Variables' }
boolean Clear {: .copyable aria-label='Variables' }
ClearCount {: aria-label='Variables' }
int ClearCount {: .copyable aria-label='Variables' }
room is clear, don't spawn enemies when visiting bool Clear;
Data {: aria-label='Variables' }
RoomDescriptorData Data {: .copyable aria-label='Variables' }
DecorationSeed {: aria-label='Variables' }
int DecorationSeed {: .copyable aria-label='Variables' }
bool AltBossMusic; used for cosmetic stuff like backdrops, room decorations, shopkeeper skins
DeliriumDistance {: aria-label='Variables' }
int DeliriumDistance {: .copyable aria-label='Variables' }
Helper for The Void stage, holds the distance to the Delirium boss in room nr.
DisplayFlags {: aria-label='Variables' }
int DisplayFlags {: .copyable aria-label='Variables' }
Indicates what is visible on the minimap. Display Flags (bitwise):
The flags are hard to interpret, but here are some examples:
000 = invisible, this is how most rooms start
101 = standard room visibility, this includes rooms that are adjacent and you haven't actively visited. This will usually show icons.
011 = secret room, locked rooms, sac rooms pre-entry*
111 = 011 rooms after entry, but also the rooms directly adjacent to them* (applied after entry)
If you have spelunker's hat, bit 1 is completely unused. All special rooms will have the normal behavior of either 000 or 101. iirc this is unique to spelunker's hat, mapping items follow the normal rules.
GridIndex {: aria-label='Variables' }
int GridIndex {: .copyable aria-label='Variables' }
index in the level grid (always top left)
???- note "Notes" This will always return the top left coordinate of the room on the levelgrid. Therefore, it will return an index not part of the actual room, when checking this value for J-shaped rooms. (See graphic below)
HasWater {: aria-label='Variables' }
boolean HasWater {: .copyable aria-label='Variables' }
ListIndex {: aria-label='Variables' }
int ListIndex {: .copyable aria-label='Variables' }
index in the room list
NoReward {: aria-label='Variables' }
boolean NoReward {: .copyable aria-label='Variables' }
OverrideData {: aria-label='Variables' }
RoomDescriptorData OverrideData {: .copyable aria-label='Variables' }
Tim's reminder to himself: The room variant is in Data. Because Room::Init uses a mix of datas, one from level layout and one from replacement data like minibosses, we need to hold the new room data somewhere.
PitsCount {: aria-label='Variables' }
int PitsCount {: .copyable aria-label='Variables' }
PoopCount {: aria-label='Variables' }
int PoopCount {: .copyable aria-label='Variables' }
bool HasWater;
PressurePlatesTriggered {: aria-label='Variables' }
boolean PressurePlatesTriggered {: .copyable aria-label='Variables' }
SacrificeDone {: aria-label='Variables' }
boolean SacrificeDone {: .copyable aria-label='Variables' }
SafeGridIndex {: aria-label='Variables' }
int SafeGridIndex {: .copyable aria-label='Variables' }
index in the level grid (not always top left, but is guaranteed to point to the room. this is important for LTL shapes!)
???- note "Notes" This will always return the top left coordinate of the room on the levelgrid, except for J-shaped rooms, where it returns the top right index. (see graphic below)
ShopItemDiscountIdx {: aria-label='Variables' }
int ShopItemDiscountIdx {: .copyable aria-label='Variables' }
ShopItemIdx {: aria-label='Variables' }
int ShopItemIdx {: .copyable aria-label='Variables' }
SpawnSeed {: aria-label='Variables' }
int SpawnSeed {: .copyable aria-label='Variables' }
used to spawn entities at room load and initialize enemy drop seeds
SurpriseMiniboss {: aria-label='Variables' }
boolean SurpriseMiniboss {: .copyable aria-label='Variables' }
VisitedCount {: aria-label='Variables' }
int VisitedCount {: .copyable aria-label='Variables' }
how often the room has been visited
Last updated