isaacscript-common 26.5.0 → 26.5.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.
@@ -13727,7 +13727,7 @@ declare class RoomHistory extends Feature {
13727
13727
  */
13728
13728
  getLatestRoomDescription(): Readonly<RoomDescription> | undefined;
13729
13729
  /** Helper function to detect if the player is on the first room of the room. */
13730
- isFirstRoom(): boolean;
13730
+ inFirstRoom(): boolean;
13731
13731
  /**
13732
13732
  * Helper function to detect if the game is in the state where the room index has changed to a new
13733
13733
  * room, but the entities from the previous room are currently in the process of despawning. (At
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 26.5.0
3
+ isaacscript-common 26.5.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -32445,7 +32445,7 @@ end
32445
32445
  function RoomHistory.prototype.getLatestRoomDescription(self)
32446
32446
  return getLastElement(nil, v.run.roomHistory)
32447
32447
  end
32448
- function RoomHistory.prototype.isFirstRoom(self)
32448
+ function RoomHistory.prototype.inFirstRoom(self)
32449
32449
  return #v.run.roomHistory == 1
32450
32450
  end
32451
32451
  function RoomHistory.prototype.isLeavingRoom(self)
@@ -32466,7 +32466,7 @@ __TS__Decorate({Exported}, RoomHistory.prototype, "getNumRoomsEntered", true)
32466
32466
  __TS__Decorate({Exported}, RoomHistory.prototype, "getRoomHistory", true)
32467
32467
  __TS__Decorate({Exported}, RoomHistory.prototype, "getPreviousRoomDescription", true)
32468
32468
  __TS__Decorate({Exported}, RoomHistory.prototype, "getLatestRoomDescription", true)
32469
- __TS__Decorate({Exported}, RoomHistory.prototype, "isFirstRoom", true)
32469
+ __TS__Decorate({Exported}, RoomHistory.prototype, "inFirstRoom", true)
32470
32470
  __TS__Decorate({Exported}, RoomHistory.prototype, "isLeavingRoom", true)
32471
32471
  return ____exports
32472
32472
  end,
@@ -39,7 +39,7 @@ export declare class RoomHistory extends Feature {
39
39
  */
40
40
  getLatestRoomDescription(): Readonly<RoomDescription> | undefined;
41
41
  /** Helper function to detect if the player is on the first room of the room. */
42
- isFirstRoom(): boolean;
42
+ inFirstRoom(): boolean;
43
43
  /**
44
44
  * Helper function to detect if the game is in the state where the room index has changed to a new
45
45
  * room, but the entities from the previous room are currently in the process of despawning. (At
@@ -86,7 +86,7 @@ end
86
86
  function RoomHistory.prototype.getLatestRoomDescription(self)
87
87
  return getLastElement(nil, v.run.roomHistory)
88
88
  end
89
- function RoomHistory.prototype.isFirstRoom(self)
89
+ function RoomHistory.prototype.inFirstRoom(self)
90
90
  return #v.run.roomHistory == 1
91
91
  end
92
92
  function RoomHistory.prototype.isLeavingRoom(self)
@@ -107,6 +107,6 @@ __TS__Decorate({Exported}, RoomHistory.prototype, "getNumRoomsEntered", true)
107
107
  __TS__Decorate({Exported}, RoomHistory.prototype, "getRoomHistory", true)
108
108
  __TS__Decorate({Exported}, RoomHistory.prototype, "getPreviousRoomDescription", true)
109
109
  __TS__Decorate({Exported}, RoomHistory.prototype, "getLatestRoomDescription", true)
110
- __TS__Decorate({Exported}, RoomHistory.prototype, "isFirstRoom", true)
110
+ __TS__Decorate({Exported}, RoomHistory.prototype, "inFirstRoom", true)
111
111
  __TS__Decorate({Exported}, RoomHistory.prototype, "isLeavingRoom", true)
112
112
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "26.5.0",
3
+ "version": "26.5.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -135,7 +135,7 @@ export class RoomHistory extends Feature {
135
135
 
136
136
  /** Helper function to detect if the player is on the first room of the room. */
137
137
  @Exported
138
- public isFirstRoom(): boolean {
138
+ public inFirstRoom(): boolean {
139
139
  return v.run.roomHistory.length === 1;
140
140
  }
141
141