isaacscript-common 72.9.0 → 72.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7312,12 +7312,16 @@ export declare function getRoomListIndex(roomGridIndex?: int): int;
7312
7312
  *
7313
7313
  * (The version of the function without any arguments will not return undefined since the current
7314
7314
  * room is guaranteed to have data.)
7315
+ *
7316
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
7315
7317
  */
7316
7318
  export declare function getRoomName(): string;
7317
7319
 
7318
7320
  /**
7319
7321
  * Helper function to get the name of the room as it appears in the STB/XML data.
7320
7322
  *
7323
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
7324
+ *
7321
7325
  * @param roomGridIndex Optional. Default is the current room index.
7322
7326
  * @returns The room name. Returns undefined if the room data was not found.
7323
7327
  */
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 72.9.0
3
+ isaacscript-common 72.9.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -27336,8 +27336,8 @@ local ____exports = {}
27336
27336
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
27337
27337
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
27338
27338
  ____exports.ROOM_TYPE_NAMES = {
27339
- [RoomType.DEFAULT] = "default room",
27340
- [RoomType.SHOP] = "shop",
27339
+ [RoomType.DEFAULT] = "Default Room",
27340
+ [RoomType.SHOP] = "Shop",
27341
27341
  [RoomType.ERROR] = "I AM ERROR Room",
27342
27342
  [RoomType.TREASURE] = "Treasure Room",
27343
27343
  [RoomType.BOSS] = "Boss Room",
@@ -70,11 +70,15 @@ export declare function getRoomListIndex(roomGridIndex?: int): int;
70
70
  *
71
71
  * (The version of the function without any arguments will not return undefined since the current
72
72
  * room is guaranteed to have data.)
73
+ *
74
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
73
75
  */
74
76
  export declare function getRoomName(): string;
75
77
  /**
76
78
  * Helper function to get the name of the room as it appears in the STB/XML data.
77
79
  *
80
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
81
+ *
78
82
  * @param roomGridIndex Optional. Default is the current room index.
79
83
  * @returns The room name. Returns undefined if the room data was not found.
80
84
  */
@@ -1 +1 @@
1
- {"version":3,"file":"roomData.d.ts","sourceRoot":"","sources":["../../../src/functions/roomData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAMtC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,CAgBtE;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,UAAU,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,UAAU,GAAG,SAAS,CAAC;AAOzE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,cAAc,CAQrE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,QAAQ,CAAC,cAAc,CAAC,CAGpE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAUtC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAGzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAAC;AAEtC;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAAC;AAOrE;;;;;;;;GAQG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,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;;;;;;;;GAWG;AACH,wBAAgB,cAAc,IAAI,GAAG,CAAC;AAEtC;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;AAOrE;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAG5D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,CAG1E"}
@@ -101,8 +101,12 @@ end
101
101
  --
102
102
  -- (The version of the function without any arguments will not return undefined since the current
103
103
  -- room is guaranteed to have data.)
104
+ --
105
+ -- If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
104
106
  -- Helper function to get the name of the room as it appears in the STB/XML data.
105
107
  --
108
+ -- If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
109
+ --
106
110
  -- @param roomGridIndex Optional. Default is the current room index.
107
111
  -- @returns The room name. Returns undefined if the room data was not found.
108
112
  function ____exports.getRoomName(self, roomGridIndex)
@@ -1,6 +1,6 @@
1
1
  export declare const ROOM_TYPE_NAMES: {
2
- readonly 1: "default room";
3
- readonly 2: "shop";
2
+ readonly 1: "Default Room";
3
+ readonly 2: "Shop";
4
4
  readonly 3: "I AM ERROR Room";
5
5
  readonly 4: "Treasure Room";
6
6
  readonly 5: "Boss Room";
@@ -2,8 +2,8 @@ local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
3
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
4
4
  ____exports.ROOM_TYPE_NAMES = {
5
- [RoomType.DEFAULT] = "default room",
6
- [RoomType.SHOP] = "shop",
5
+ [RoomType.DEFAULT] = "Default Room",
6
+ [RoomType.SHOP] = "Shop",
7
7
  [RoomType.ERROR] = "I AM ERROR Room",
8
8
  [RoomType.TREASURE] = "Treasure Room",
9
9
  [RoomType.BOSS] = "Boss Room",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "72.9.0",
3
+ "version": "72.9.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -132,12 +132,16 @@ export function getRoomListIndex(roomGridIndex?: int): int {
132
132
  *
133
133
  * (The version of the function without any arguments will not return undefined since the current
134
134
  * room is guaranteed to have data.)
135
+ *
136
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
135
137
  */
136
138
  export function getRoomName(): string;
137
139
 
138
140
  /**
139
141
  * Helper function to get the name of the room as it appears in the STB/XML data.
140
142
  *
143
+ * If you want to get the room name for a specific room type, use the `getRoomTypeName` function.
144
+ *
141
145
  * @param roomGridIndex Optional. Default is the current room index.
142
146
  * @returns The room name. Returns undefined if the room data was not found.
143
147
  */
@@ -1,8 +1,8 @@
1
1
  import { RoomType } from "isaac-typescript-definitions";
2
2
 
3
3
  export const ROOM_TYPE_NAMES = {
4
- [RoomType.DEFAULT]: "default room", // 1
5
- [RoomType.SHOP]: "shop", // 2
4
+ [RoomType.DEFAULT]: "Default Room", // 1
5
+ [RoomType.SHOP]: "Shop", // 2
6
6
  [RoomType.ERROR]: "I AM ERROR Room", // 3
7
7
  [RoomType.TREASURE]: "Treasure Room", // 4
8
8
  [RoomType.BOSS]: "Boss Room", // 5