SecretShop.lua¶
Functions¶
secretShop.createSecretShopLevelNumbers¶
secretShop.createSecretShopLevelNumbers(generatorData: LibLevelGen.Config\, rng: LibLevelGen.Rng): table<number,number>
no description
Parameters:
| Name | Type | Description |
|---|---|---|
generatorData |
LibLevelGen.Config\ |
no description |
rng |
LibLevelGen.Rng |
no description |
Returns: table<number,number>
secretShop.register¶
no description
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string |
no description |
args |
LibLevelGen.SecretShop |
no description |
Returns: number
secretShop.getData¶
no description
Parameters:
| Name | Type | Description |
|---|---|---|
shopType |
number |
From the secretShop.Type enum. |
Returns: LibLevelGen.SecretShop
Classes¶
LibLevelGen.SecretShop¶
no description
Properties:
| Name | Type | Description |
|---|---|---|
name |
string |
friendlyName for logging/error message purposes |
w |
number |
(default: 7) - width of the room |
h |
number |
(default: 10) - height of the room |
runeX |
number |
(default: 3) - x position of the travel rune |
runeY |
number |
(default: 7) - y position of the travel rune |
canHaveSSS |
boolean |
(default: false) - determines whether a super secret shop can be created above the secret shop |
tileType |
string |
(default: StoneWallCracked) - wall where the rune spawns will be converted to this type |
convertibleTiles |
string[] |
(default: {"DirtWall", "StoneWall", "CatacombWall"}) - tiles where the rune can be placed. Will be converted to tile specified by tileType. |
runeType |
string |
entity type of the shop travel rune |
clb |
fun(room: LibLevelGen.Room) |
callback function that gets called with the room as the parameter when the shop is spawned |
levelRange |
number[] |
range of level numbers on which the shop is allowed to spawn, in format {minLvl, maxLvl} (inclusive). If not specified, there are no restrictions (apart from not being able to spawn on boss levels) |
SSScurrency |
string |
no description |
Enums¶
secretShop.Type¶
no description
Entries:
TRANSMOGRIFIERARENABLOOD_SHOPGLASS_SHOPFOOD_SHOPCONJURERSHRINERPAWNBROKER