isaacscript-common 6.11.2 → 6.14.0

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.
Files changed (189) hide show
  1. package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
  2. package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
  3. package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
  4. package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
  5. package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
  6. package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
  7. package/dist/callbacks/postNewRoomEarly.lua +2 -2
  8. package/dist/callbacks/postPickupInitFirst.lua +1 -20
  9. package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
  10. package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
  11. package/dist/callbacks/reorderedCallbacks.lua +5 -5
  12. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
  13. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
  14. package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
  15. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
  16. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
  17. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
  18. package/dist/constants.d.ts +1 -5
  19. package/dist/constants.d.ts.map +1 -1
  20. package/dist/constants.lua +0 -7
  21. package/dist/constantsFirstLast.d.ts +5 -1
  22. package/dist/constantsFirstLast.d.ts.map +1 -1
  23. package/dist/constantsFirstLast.lua +6 -0
  24. package/dist/enums/ModCallbackCustom.d.ts +89 -66
  25. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  26. package/dist/enums/ModCallbackCustom.lua +62 -58
  27. package/dist/enums/private/SerializationBrand.d.ts +1 -1
  28. package/dist/enums/private/SerializationBrand.lua +1 -1
  29. package/dist/features/collectibleItemPoolType.d.ts +2 -2
  30. package/dist/features/collectibleItemPoolType.lua +2 -2
  31. package/dist/features/customGridEntity.d.ts +11 -2
  32. package/dist/features/customGridEntity.d.ts.map +1 -1
  33. package/dist/features/customGridEntity.lua +22 -2
  34. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
  35. package/dist/features/customTrapdoor/blackSprite.lua +6 -6
  36. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +2 -2
  37. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
  38. package/dist/features/customTrapdoor/customTrapdoorConstants.lua +2 -2
  39. package/dist/features/customTrapdoor/init.d.ts.map +1 -1
  40. package/dist/features/customTrapdoor/init.lua +4 -3
  41. package/dist/features/customTrapdoor/touched.d.ts.map +1 -1
  42. package/dist/features/customTrapdoor/touched.lua +51 -33
  43. package/dist/features/deployJSONRoom.d.ts +2 -2
  44. package/dist/features/deployJSONRoom.lua +2 -2
  45. package/dist/features/extraConsoleCommands/exports.d.ts +4 -3
  46. package/dist/features/extraConsoleCommands/exports.d.ts.map +1 -1
  47. package/dist/features/extraConsoleCommands/exports.lua +4 -3
  48. package/dist/features/extraConsoleCommands/init.lua +12 -14
  49. package/dist/features/extraConsoleCommands/listCommands.d.ts +15 -19
  50. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  51. package/dist/features/extraConsoleCommands/listCommands.lua +34 -42
  52. package/dist/features/pause.d.ts +1 -1
  53. package/dist/features/pause.d.ts.map +1 -1
  54. package/dist/features/pause.lua +87 -8
  55. package/dist/features/persistentEntities.d.ts.map +1 -1
  56. package/dist/features/persistentEntities.lua +7 -7
  57. package/dist/features/pickupIndex.d.ts +19 -0
  58. package/dist/features/pickupIndex.d.ts.map +1 -0
  59. package/dist/features/pickupIndex.lua +197 -0
  60. package/dist/features/roomHistory.d.ts +24 -0
  61. package/dist/features/roomHistory.d.ts.map +1 -0
  62. package/dist/features/roomHistory.lua +89 -0
  63. package/dist/functions/collectibles.d.ts +26 -13
  64. package/dist/functions/collectibles.d.ts.map +1 -1
  65. package/dist/functions/collectibles.lua +26 -13
  66. package/dist/functions/color.d.ts +10 -0
  67. package/dist/functions/color.d.ts.map +1 -1
  68. package/dist/functions/color.lua +24 -0
  69. package/dist/functions/entities.d.ts +3 -3
  70. package/dist/functions/entities.d.ts.map +1 -1
  71. package/dist/functions/entities.lua +8 -3
  72. package/dist/functions/gridEntities.d.ts +4 -22
  73. package/dist/functions/gridEntities.d.ts.map +1 -1
  74. package/dist/functions/gridEntities.lua +4 -61
  75. package/dist/functions/isaacAPIClass.d.ts +64 -0
  76. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  77. package/dist/functions/isaacAPIClass.lua +84 -1
  78. package/dist/functions/kColor.d.ts +10 -0
  79. package/dist/functions/kColor.d.ts.map +1 -1
  80. package/dist/functions/kColor.lua +24 -0
  81. package/dist/functions/map.d.ts +2 -0
  82. package/dist/functions/map.d.ts.map +1 -1
  83. package/dist/functions/map.lua +7 -0
  84. package/dist/functions/npcs.d.ts +2 -2
  85. package/dist/functions/npcs.lua +2 -2
  86. package/dist/functions/pickupVariants.d.ts +2 -2
  87. package/dist/functions/pickupVariants.d.ts.map +1 -1
  88. package/dist/functions/pickupVariants.lua +2 -2
  89. package/dist/functions/playerCenter.lua +2 -2
  90. package/dist/functions/playerIndex.d.ts +0 -3
  91. package/dist/functions/playerIndex.d.ts.map +1 -1
  92. package/dist/functions/playerIndex.lua +4 -23
  93. package/dist/functions/random.d.ts +1 -1
  94. package/dist/functions/random.lua +1 -1
  95. package/dist/functions/rockAlt.d.ts +28 -0
  96. package/dist/functions/rockAlt.d.ts.map +1 -0
  97. package/dist/functions/rockAlt.lua +140 -0
  98. package/dist/functions/roomData.d.ts +3 -2
  99. package/dist/functions/roomData.d.ts.map +1 -1
  100. package/dist/functions/roomData.lua +3 -2
  101. package/dist/functions/rooms.d.ts +6 -6
  102. package/dist/functions/rooms.lua +6 -6
  103. package/dist/functions/set.d.ts +2 -0
  104. package/dist/functions/set.d.ts.map +1 -1
  105. package/dist/functions/set.lua +6 -0
  106. package/dist/functions/stage.d.ts +1 -0
  107. package/dist/functions/stage.d.ts.map +1 -1
  108. package/dist/functions/stage.lua +4 -0
  109. package/dist/functions/vector.d.ts +11 -0
  110. package/dist/functions/vector.d.ts.map +1 -1
  111. package/dist/functions/vector.lua +23 -0
  112. package/dist/index.d.ts +4 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.lua +31 -0
  115. package/dist/initCustomCallbacks.d.ts.map +1 -1
  116. package/dist/initCustomCallbacks.lua +6 -0
  117. package/dist/initFeatures.d.ts.map +1 -1
  118. package/dist/initFeatures.lua +6 -0
  119. package/dist/interfaces/AddCallbackParameterCustom.d.ts +4 -0
  120. package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
  121. package/dist/interfaces/RoomDescription.d.ts +14 -0
  122. package/dist/interfaces/RoomDescription.d.ts.map +1 -0
  123. package/dist/interfaces/RoomDescription.lua +2 -0
  124. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  125. package/dist/objects/callbackRegisterFunctions.lua +6 -0
  126. package/dist/types/CollectibleIndex.d.ts +1 -1
  127. package/dist/types/PickupIndex.d.ts +17 -0
  128. package/dist/types/PickupIndex.d.ts.map +1 -0
  129. package/dist/types/PickupIndex.lua +2 -0
  130. package/dist/types/PlayerIndex.d.ts +1 -1
  131. package/dist/upgradeMod.d.ts.map +1 -1
  132. package/package.json +2 -2
  133. package/src/callbacks/postGridEntityCustomRender.ts +44 -0
  134. package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
  135. package/src/callbacks/postNewRoomEarly.ts +2 -2
  136. package/src/callbacks/postPickupInitFirst.ts +3 -32
  137. package/src/callbacks/postPlayerReorderedCallbacks.ts +3 -3
  138. package/src/callbacks/reorderedCallbacks.ts +9 -8
  139. package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
  140. package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
  141. package/src/constants.ts +1 -9
  142. package/src/constantsFirstLast.ts +16 -0
  143. package/src/enums/ModCallbackCustom.ts +33 -8
  144. package/src/enums/private/SerializationBrand.ts +1 -1
  145. package/src/features/collectibleItemPoolType.ts +3 -3
  146. package/src/features/customGridEntity.ts +27 -2
  147. package/src/features/customTrapdoor/blackSprite.ts +11 -5
  148. package/src/features/customTrapdoor/customTrapdoorConstants.ts +2 -2
  149. package/src/features/customTrapdoor/init.ts +7 -5
  150. package/src/features/customTrapdoor/touched.ts +59 -39
  151. package/src/features/deployJSONRoom.ts +4 -4
  152. package/src/features/extraConsoleCommands/exports.ts +4 -3
  153. package/src/features/extraConsoleCommands/init.ts +18 -14
  154. package/src/features/extraConsoleCommands/listCommands.ts +38 -43
  155. package/src/features/pause.ts +97 -7
  156. package/src/features/persistentEntities.ts +9 -8
  157. package/src/features/pickupIndex.ts +257 -0
  158. package/src/features/playerInventory.ts +2 -2
  159. package/src/features/roomHistory.ts +113 -0
  160. package/src/features/saveDataManager/main.ts +2 -2
  161. package/src/features/taintedLazarusPlayers.ts +5 -5
  162. package/src/functions/collectibles.ts +26 -13
  163. package/src/functions/color.ts +22 -0
  164. package/src/functions/entities.ts +6 -3
  165. package/src/functions/gridEntities.ts +4 -56
  166. package/src/functions/isaacAPIClass.ts +106 -1
  167. package/src/functions/kColor.ts +22 -0
  168. package/src/functions/map.ts +10 -0
  169. package/src/functions/npcs.ts +2 -2
  170. package/src/functions/pickupVariants.ts +2 -2
  171. package/src/functions/playerCenter.ts +2 -2
  172. package/src/functions/playerIndex.ts +8 -21
  173. package/src/functions/random.ts +1 -1
  174. package/src/functions/rockAlt.ts +117 -0
  175. package/src/functions/roomData.ts +3 -2
  176. package/src/functions/rooms.ts +6 -6
  177. package/src/functions/set.ts +7 -1
  178. package/src/functions/stage.ts +10 -1
  179. package/src/functions/vector.ts +23 -0
  180. package/src/index.ts +4 -0
  181. package/src/initCustomCallbacks.ts +4 -0
  182. package/src/initFeatures.ts +4 -0
  183. package/src/interfaces/AddCallbackParameterCustom.ts +4 -0
  184. package/src/interfaces/RoomDescription.ts +19 -0
  185. package/src/objects/callbackRegisterFunctions.ts +6 -0
  186. package/src/types/CollectibleIndex.ts +1 -1
  187. package/src/types/PickupIndex.ts +15 -0
  188. package/src/types/PlayerIndex.ts +1 -1
  189. package/src/upgradeMod.ts +2 -1
@@ -48,9 +48,6 @@ end
48
48
  -- Instead, we use the `EntityPlayer.GetCollectibleRNG` method with an arbitrary value of Sad Onion
49
49
  -- (1). This works even if the player does not have any Sad Onions.
50
50
  --
51
- -- Since the RNG value is the same for both Tainted Lazarus and Dead Tainted Lazarus, we revert to
52
- -- using the RNG of The Inner Eye (2) for Dead Tainted Lazarus.
53
- --
54
51
  -- Note that by default, this returns the same index for both The Forgotten and The Soul. (Even
55
52
  -- though they are technically different characters, they share the same inventory and InitSeed.) If
56
53
  -- this is not desired, pass true for the `differentiateForgottenAndSoul` argument, and the RNG of
@@ -78,26 +75,10 @@ function ____exports.getPlayerIndex(self, player, differentiateForgottenAndSoul)
78
75
  end
79
76
  function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSoul)
80
77
  local character = player:GetPlayerType()
81
- repeat
82
- local ____switch12 = character
83
- local ____cond12 = ____switch12 == PlayerType.THE_SOUL
84
- if ____cond12 then
85
- do
86
- return differentiateForgottenAndSoul and CollectibleType.SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
87
- end
88
- end
89
- ____cond12 = ____cond12 or ____switch12 == PlayerType.LAZARUS_2_B
90
- if ____cond12 then
91
- do
92
- return CollectibleType.INNER_EYE
93
- end
94
- end
95
- do
96
- do
97
- return DEFAULT_COLLECTIBLE_TYPE
98
- end
99
- end
100
- until true
78
+ if character == PlayerType.THE_SOUL then
79
+ return differentiateForgottenAndSoul and CollectibleType.INNER_EYE or DEFAULT_COLLECTIBLE_TYPE
80
+ end
81
+ return DEFAULT_COLLECTIBLE_TYPE
101
82
  end
102
83
  --- This function always excludes players with a non-undefined parent, since they are not real
103
84
  -- players (e.g. the Strawman Keeper).
@@ -27,7 +27,7 @@ export declare function getRandomFloat(min: int, max: int, seedOrRNG?: Seed | RN
27
27
  /**
28
28
  * This returns a random integer between min and max. It is inclusive on both ends.
29
29
  *
30
- * Note that this function will invoke the `Next` method on the `RNG` object before returning the
30
+ * Note that this function will run the `Next` method on the `RNG` object before returning the
31
31
  * random number.
32
32
  *
33
33
  * For example:
@@ -44,7 +44,7 @@ function ____exports.getRandomFloat(self, min, max, seedOrRNG)
44
44
  end
45
45
  --- This returns a random integer between min and max. It is inclusive on both ends.
46
46
  --
47
- -- Note that this function will invoke the `Next` method on the `RNG` object before returning the
47
+ -- Note that this function will run the `Next` method on the `RNG` object before returning the
48
48
  -- random number.
49
49
  --
50
50
  -- For example:
@@ -0,0 +1,28 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
4
+ import { RockAltType } from "../enums/RockAltType";
5
+ /**
6
+ * Helper function for emulating what happens when a vanilla `GridEntityType.ROCK_ALT` grid entity
7
+ * breaks.
8
+ *
9
+ * Note that most of the time, this function will do nothing, similar to how most of the time, when
10
+ * an individual urn is destroyed, nothing will spawn.
11
+ *
12
+ * For the purposes of spawning collectibles, this function assumes that the player has not seen the
13
+ * collectible yet in the current run. In vanilla, it is only possible to get a e.g. Quarter if the
14
+ * collectible still exists in the Treasure Room pool.
15
+ *
16
+ * The logic in this function is based on the rewards listed on the wiki:
17
+ * https://bindingofisaacrebirth.fandom.com/wiki/Rocks
18
+ *
19
+ * @param position The place to spawn the reward.
20
+ * @param rockAltType The type of reward to spawn. For example, `RockAltType.URN` will have a chance
21
+ * at spawning coins and spiders.
22
+ * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
23
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`. Normally, you
24
+ * should pass the `InitSeed` of the grid entity that was broken.
25
+ * @returns Whether or not this function spawned something.
26
+ */
27
+ export declare function spawnRockAltReward(position: Vector, rockAltType: RockAltType, seedOrRNG?: Seed | RNG): boolean;
28
+ //# sourceMappingURL=rockAlt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rockAlt.d.ts","sourceRoot":"","sources":["../../src/functions/rockAlt.ts"],"names":[],"mappings":";;;AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,WAAW,EACxB,SAAS,GAAE,IAAI,GAAG,GAAqB,GACtC,OAAO,CA4ET"}
@@ -0,0 +1,140 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local CoinSubType = ____isaac_2Dtypescript_2Ddefinitions.CoinSubType
4
+ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
5
+ local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
6
+ local ____constants = require("constants")
7
+ local DISTANCE_OF_GRID_TILE = ____constants.DISTANCE_OF_GRID_TILE
8
+ local ____RockAltType = require("enums.RockAltType")
9
+ local RockAltType = ____RockAltType.RockAltType
10
+ local ____pickupsSpecific = require("functions.pickupsSpecific")
11
+ local spawnCoinWithSeed = ____pickupsSpecific.spawnCoinWithSeed
12
+ local spawnTrinketWithSeed = ____pickupsSpecific.spawnTrinketWithSeed
13
+ local ____random = require("functions.random")
14
+ local getRandom = ____random.getRandom
15
+ local ____rng = require("functions.rng")
16
+ local getRandomSeed = ____rng.getRandomSeed
17
+ local isRNG = ____rng.isRNG
18
+ local newRNG = ____rng.newRNG
19
+ local ____spawnCollectible = require("functions.spawnCollectible")
20
+ local spawnCollectible = ____spawnCollectible.spawnCollectible
21
+ local ____utils = require("functions.utils")
22
+ local ____repeat = ____utils["repeat"]
23
+ local ____vector = require("functions.vector")
24
+ local getRandomVector = ____vector.getRandomVector
25
+ --- Helper function for emulating what happens when a vanilla `GridEntityType.ROCK_ALT` grid entity
26
+ -- breaks.
27
+ --
28
+ -- Note that most of the time, this function will do nothing, similar to how most of the time, when
29
+ -- an individual urn is destroyed, nothing will spawn.
30
+ --
31
+ -- For the purposes of spawning collectibles, this function assumes that the player has not seen the
32
+ -- collectible yet in the current run. In vanilla, it is only possible to get a e.g. Quarter if the
33
+ -- collectible still exists in the Treasure Room pool.
34
+ --
35
+ -- The logic in this function is based on the rewards listed on the wiki:
36
+ -- https://bindingofisaacrebirth.fandom.com/wiki/Rocks
37
+ --
38
+ -- @param position The place to spawn the reward.
39
+ -- @param rockAltType The type of reward to spawn. For example, `RockAltType.URN` will have a chance
40
+ -- at spawning coins and spiders.
41
+ -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
42
+ -- `RNG.Next` method will be called. Default is `getRandomSeed()`. Normally, you
43
+ -- should pass the `InitSeed` of the grid entity that was broken.
44
+ -- @returns Whether or not this function spawned something.
45
+ function ____exports.spawnRockAltReward(self, position, rockAltType, seedOrRNG)
46
+ if seedOrRNG == nil then
47
+ seedOrRNG = getRandomSeed(nil)
48
+ end
49
+ local rng = isRNG(nil, seedOrRNG) and seedOrRNG or newRNG(nil, seedOrRNG)
50
+ local chance = getRandom(nil, rng)
51
+ repeat
52
+ local ____switch3 = rockAltType
53
+ local ____cond3 = ____switch3 == RockAltType.URN
54
+ if ____cond3 then
55
+ do
56
+ local totalChance = 0
57
+ totalChance = totalChance + 0.68
58
+ if chance < totalChance then
59
+ return false
60
+ end
61
+ totalChance = totalChance + 0.0944
62
+ if chance < totalChance then
63
+ local numCoinsChance = getRandom(nil, rng)
64
+ local numCoins = numCoinsChance < 0.5 and 1 or 2
65
+ ____repeat(
66
+ nil,
67
+ numCoins,
68
+ function()
69
+ local velocity = getRandomVector(nil, rng)
70
+ spawnCoinWithSeed(
71
+ nil,
72
+ CoinSubType.NULL,
73
+ position,
74
+ rng,
75
+ velocity
76
+ )
77
+ end
78
+ )
79
+ return true
80
+ end
81
+ totalChance = totalChance + 0.025
82
+ if chance < totalChance then
83
+ spawnTrinketWithSeed(nil, TrinketType.SWALLOWED_PENNY, position, rng)
84
+ end
85
+ totalChance = totalChance + 0.005
86
+ if chance < totalChance then
87
+ spawnCollectible(nil, CollectibleType.QUARTER, position, rng)
88
+ end
89
+ totalChance = totalChance + 0.1948
90
+ if chance < totalChance then
91
+ local numSpidersChance = getRandom(nil, rng)
92
+ local numSpiders = numSpidersChance < 0.5 and 1 or 2
93
+ ____repeat(
94
+ nil,
95
+ numSpiders,
96
+ function()
97
+ local randomVector = getRandomVector(nil, rng)
98
+ local length = DISTANCE_OF_GRID_TILE * 3
99
+ local offset = randomVector * length
100
+ local targetPos = position + offset
101
+ EntityNPC.ThrowSpider(
102
+ position,
103
+ nil,
104
+ targetPos,
105
+ false,
106
+ 0
107
+ )
108
+ end
109
+ )
110
+ end
111
+ return false
112
+ end
113
+ end
114
+ ____cond3 = ____cond3 or ____switch3 == RockAltType.MUSHROOM
115
+ if ____cond3 then
116
+ do
117
+ return false
118
+ end
119
+ end
120
+ ____cond3 = ____cond3 or ____switch3 == RockAltType.SKULL
121
+ if ____cond3 then
122
+ do
123
+ return false
124
+ end
125
+ end
126
+ ____cond3 = ____cond3 or ____switch3 == RockAltType.POLYP
127
+ if ____cond3 then
128
+ do
129
+ return false
130
+ end
131
+ end
132
+ ____cond3 = ____cond3 or ____switch3 == RockAltType.BUCKET
133
+ if ____cond3 then
134
+ do
135
+ return false
136
+ end
137
+ end
138
+ until true
139
+ end
140
+ return ____exports
@@ -99,9 +99,10 @@ export declare function getRoomType(roomGridIndex?: int): RoomType;
99
99
  */
100
100
  export declare function getRoomVariant(roomGridIndex?: int): int;
101
101
  /**
102
- * Note that the room visited count will be inaccurate during the period before the PostNewRoom
102
+ * Note that the room visited count will be inaccurate during the period before the `POST_NEW_ROOM`
103
103
  * callback has fired (i.e. when entities are initializing and performing their first update). This
104
- * is because the variable is only incremented immediately before the PostNewRoom callback fires.
104
+ * is because the variable is only incremented immediately before the `POST_NEW_ROOM` callback
105
+ * fires.
105
106
  *
106
107
  * @param roomGridIndex Optional. Default is the current room index.
107
108
  */
@@ -1 +1 @@
1
- {"version":3,"file":"roomData.d.ts","sourceRoot":"","sources":["../../src/functions/roomData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAMtC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,CAiBtE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,UAAU,GAAG,SAAS,CAGvE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,cAAc,CAQrE;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,sBAAsB,CAGlE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAatC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,MAAM,CAGvD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,SAAS,CAGvE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,OAAO,CAG3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAGvD;AAED;;;;;GAKG;AACH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GAAG,GAAG,GAAG,CAGvD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,QAAQ,CAGzD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAGvD;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAG5D"}
@@ -148,9 +148,10 @@ function ____exports.getRoomVariant(self, roomGridIndex)
148
148
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
149
149
  return roomData == nil and -1 or roomData.Variant
150
150
  end
151
- --- Note that the room visited count will be inaccurate during the period before the PostNewRoom
151
+ --- Note that the room visited count will be inaccurate during the period before the `POST_NEW_ROOM`
152
152
  -- callback has fired (i.e. when entities are initializing and performing their first update). This
153
- -- is because the variable is only incremented immediately before the PostNewRoom callback fires.
153
+ -- is because the variable is only incremented immediately before the `POST_NEW_ROOM` callback
154
+ -- fires.
154
155
  --
155
156
  -- @param roomGridIndex Optional. Default is the current room index.
156
157
  function ____exports.getRoomVisitedCount(self, roomGridIndex)
@@ -171,16 +171,16 @@ export declare function roomExists(roomGridIndex: int): boolean;
171
171
  */
172
172
  export declare function roomGridIndexToXY(roomGridIndex: int): [x: int, y: int];
173
173
  /**
174
- * If the `Room.Update` method is called in a PostNewRoom callback, then some entities will slide
175
- * around (such as the player). Since those entity velocities are already at zero, setting them to
176
- * zero will have no effect. Thus, a generic solution is to record all of the entity
174
+ * If the `Room.Update` method is called in a `POST_NEW_ROOM` callback, then some entities will
175
+ * slide around (such as the player). Since those entity velocities are already at zero, setting
176
+ * them to zero will have no effect. Thus, a generic solution is to record all of the entity
177
177
  * positions/velocities before updating the room, and then restore those positions/velocities.
178
178
  */
179
179
  export declare function roomUpdateSafe(): void;
180
180
  /**
181
- * Helper function to convert an uncleared room to a cleared room in the PostNewRoom callback. This
182
- * is useful because if enemies are removed in this callback, a room drop will be awarded and the
183
- * doors will start closed and then open.
181
+ * Helper function to convert an uncleared room to a cleared room in the `POST_NEW_ROOM` callback.
182
+ * This is useful because if enemies are removed in this callback, a room drop will be awarded and
183
+ * the doors will start closed and then open.
184
184
  */
185
185
  export declare function setRoomCleared(): void;
186
186
  /**
@@ -422,9 +422,9 @@ function ____exports.roomGridIndexToXY(self, roomGridIndex)
422
422
  local y = math.floor(roomGridIndex / LEVEL_GRID_ROW_WIDTH)
423
423
  return {x, y}
424
424
  end
425
- --- If the `Room.Update` method is called in a PostNewRoom callback, then some entities will slide
426
- -- around (such as the player). Since those entity velocities are already at zero, setting them to
427
- -- zero will have no effect. Thus, a generic solution is to record all of the entity
425
+ --- If the `Room.Update` method is called in a `POST_NEW_ROOM` callback, then some entities will
426
+ -- slide around (such as the player). Since those entity velocities are already at zero, setting
427
+ -- them to zero will have no effect. Thus, a generic solution is to record all of the entity
428
428
  -- positions/velocities before updating the room, and then restore those positions/velocities.
429
429
  function ____exports.roomUpdateSafe(self)
430
430
  local room = game:GetRoom()
@@ -435,9 +435,9 @@ function ____exports.roomUpdateSafe(self)
435
435
  setEntityPositions(nil, entityPositions, entities)
436
436
  setEntityVelocities(nil, entityVelocities, entities)
437
437
  end
438
- --- Helper function to convert an uncleared room to a cleared room in the PostNewRoom callback. This
439
- -- is useful because if enemies are removed in this callback, a room drop will be awarded and the
440
- -- doors will start closed and then open.
438
+ --- Helper function to convert an uncleared room to a cleared room in the `POST_NEW_ROOM` callback.
439
+ -- This is useful because if enemies are removed in this callback, a room drop will be awarded and
440
+ -- the doors will start closed and then open.
441
441
  function ____exports.setRoomCleared(self)
442
442
  local room = game:GetRoom()
443
443
  local roomClear = room:IsClear()
@@ -58,4 +58,6 @@ export declare function getSetCombinations<T>(set: Set<T> | ReadonlySet<T>, incl
58
58
  * the contents is important.
59
59
  */
60
60
  export declare function getSortedSetValues<T>(set: Set<T> | ReadonlySet<T>): T[];
61
+ /** Helper function to sum every value in a set together. */
62
+ export declare function sumSet(set: Set<number> | ReadonlySet<number>): number;
61
63
  //# sourceMappingURL=set.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../src/functions/set.ts"],"names":[],"mappings":";;AAGA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GAC3C,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GACtC,GAAG,CAAC,CAAC,CAAC,CASR;AAED,mGAAmG;AACnG,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAOlE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,GAC9C,IAAI,CAMN;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC5B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAO,GAClC,CAAC,CAGH;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAA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AG,GAAqB,EACvC,UAAU,GAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAO,GAClC,CAAC,CAGH;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAC5B,iBAAiB,EAAE,OAAO,GACzB,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAK/B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAMvE;AAED,4DAA4D;AAC5D,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAGrE"}
@@ -9,6 +9,7 @@ local ____exports = {}
9
9
  local ____array = require("functions.array")
10
10
  local getArrayCombinations = ____array.getArrayCombinations
11
11
  local getRandomArrayElement = ____array.getRandomArrayElement
12
+ local sumArray = ____array.sumArray
12
13
  local ____rng = require("functions.rng")
13
14
  local getRandomSeed = ____rng.getRandomSeed
14
15
  --- Helper function to get a sorted array based on the contents of a set.
@@ -107,4 +108,9 @@ function ____exports.getSetCombinations(self, set, includeEmptyArray)
107
108
  function(____, array) return __TS__New(Set, array) end
108
109
  )
109
110
  end
111
+ --- Helper function to sum every value in a set together.
112
+ function ____exports.sumSet(self, set)
113
+ local values = {__TS__Spread(set:values())}
114
+ return sumArray(nil, values)
115
+ end
110
116
  return ____exports
@@ -27,6 +27,7 @@ export declare function getStageType(): StageType;
27
27
  /** Helper function to directly warp to a specific stage using the "stage" console command. */
28
28
  export declare function goToStage(stage: LevelStage, stageType: StageType): void;
29
29
  export declare function isRepentanceStage(stageType: StageType): boolean;
30
+ export declare function onAscent(): boolean;
30
31
  export declare function onCathedral(): boolean;
31
32
  export declare function onChest(): boolean;
32
33
  export declare function onDarkRoom(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/functions/stage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAM/E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CA6B/D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAmBzE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,GAAG,CASvC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,GAAG,MAAM,CAG3E;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,UAAU,CAIrC;AAED,iDAAiD;AACjD,wBAAgB,YAAY,IAAI,SAAS,CAIxC;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAIvE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAI/D;AAED,wBAAgB,WAAW,IAAI,OAAO,CASrC;AAED,wBAAgB,OAAO,IAAI,OAAO,CASjC;AAED,wBAAgB,UAAU,IAAI,OAAO,CAQpC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAUtC;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAK3C;AAED,wBAAgB,OAAO,IAAI,OAAO,CAQjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,EACpB,MAAM,UAAQ,GACb,IAAI,CAUN;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAA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E,SAAS,GAAG,MAAM,CAE9D"}
@@ -1,5 +1,6 @@
1
1
  local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
3
4
  local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
4
5
  local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
5
6
  local ____cachedClasses = require("cachedClasses")
@@ -86,6 +87,9 @@ function ____exports.goToStage(self, stage, stageType)
86
87
  local command = ("stage " .. tostring(stage)) .. stageTypeLetterSuffix
87
88
  Isaac.ExecuteCommand(command)
88
89
  end
90
+ function ____exports.onAscent(self)
91
+ return game:GetStateFlag(GameStateFlag.BACKWARDS_PATH)
92
+ end
89
93
  function ____exports.onCathedral(self)
90
94
  local level = game:GetLevel()
91
95
  local stage = level:GetStage()
@@ -18,6 +18,17 @@ interface CopyVectorReturn {
18
18
  */
19
19
  export declare function copyVector<V extends Vector | SerializedVector, S extends SerializationType>(vector: V, serializationType: S): CopyVectorReturn[S];
20
20
  export declare function copyVector<V extends Vector | SerializedVector>(vector: V): CopyVectorReturn[SerializationType.NONE];
21
+ /**
22
+ * Helper function to get a random vector between (-1, -1) and (1, 1).
23
+ *
24
+ * To get random vectors with a bigger length, multiply this with a number.
25
+ *
26
+ * Use this over the `RandomVector` function when you need the vector to be seeded.
27
+ *
28
+ * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
29
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`.
30
+ */
31
+ export declare function getRandomVector(seedOrRNG?: Seed | RNG): Vector;
21
32
  /**
22
33
  * Used to determine is the given table is a serialized `Vector` object created by the save data
23
34
  * manager and/or the `deepCopy` function.
@@ -1 +1 @@
1
- {"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/functions/vector.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8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AM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,MAAM,CAIpE"}
@@ -9,6 +9,12 @@ local angleToDirection = ____direction.angleToDirection
9
9
  local ____isaacAPIClass = require("functions.isaacAPIClass")
10
10
  local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
11
11
  local isIsaacAPIClassOfType = ____isaacAPIClass.isIsaacAPIClassOfType
12
+ local ____random = require("functions.random")
13
+ local getRandomFloat = ____random.getRandomFloat
14
+ local ____rng = require("functions.rng")
15
+ local getRandomSeed = ____rng.getRandomSeed
16
+ local isRNG = ____rng.isRNG
17
+ local newRNG = ____rng.newRNG
12
18
  local ____table = require("functions.table")
13
19
  local copyValuesToTable = ____table.copyValuesToTable
14
20
  local getNumbersFromTable = ____table.getNumbersFromTable
@@ -76,6 +82,23 @@ function ____exports.copyVector(self, vector, serializationType)
76
82
  end
77
83
  until true
78
84
  end
85
+ --- Helper function to get a random vector between (-1, -1) and (1, 1).
86
+ --
87
+ -- To get random vectors with a bigger length, multiply this with a number.
88
+ --
89
+ -- Use this over the `RandomVector` function when you need the vector to be seeded.
90
+ --
91
+ -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
92
+ -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
93
+ function ____exports.getRandomVector(self, seedOrRNG)
94
+ if seedOrRNG == nil then
95
+ seedOrRNG = getRandomSeed(nil)
96
+ end
97
+ local rng = isRNG(nil, seedOrRNG) and seedOrRNG or newRNG(nil, seedOrRNG)
98
+ local x = getRandomFloat(nil, -1, 1, rng)
99
+ local y = getRandomFloat(nil, -1, 1, rng)
100
+ return Vector(x, y)
101
+ end
79
102
  --- Used to determine is the given table is a serialized `Vector` object created by the save data
80
103
  -- manager and/or the `deepCopy` function.
81
104
  function ____exports.isSerializedVector(self, object)
package/dist/index.d.ts CHANGED
@@ -23,12 +23,15 @@ export * from "./features/extraConsoleCommands/exports";
23
23
  export { removeFadeIn, restoreFadeIn } from "./features/fadeInRemover";
24
24
  export { disableFastReset, enableFastReset } from "./features/fastReset";
25
25
  export { forgottenSwitch } from "./features/forgottenSwitch";
26
+ export { pause, unpause } from "./features/pause";
26
27
  export { removePersistentEntity, spawnPersistentEntity, } from "./features/persistentEntities";
28
+ export * from "./features/pickupIndex";
27
29
  export { getPlayerInventory } from "./features/playerInventory";
28
30
  export { anyPlayerUsingPony, isPlayerUsingPony, } from "./features/ponyDetection";
29
31
  export { preventCollectibleRotation } from "./features/preventCollectibleRotation";
30
32
  export { registerHotkey, unregisterHotkey } from "./features/registerHotkey";
31
33
  export { getRoomClearGameFrame, getRoomClearRoomFrame, } from "./features/roomClearFrame";
34
+ export * from "./features/roomHistory";
32
35
  export { runInNGameFrames, runInNRenderFrames, runNextGameFrame, runNextRenderFrame, setIntervalGameFrames, setIntervalRenderFrames, } from "./features/runInNFrames";
33
36
  export * from "./features/saveDataManager/exports";
34
37
  export { hasSirenStolenFamiliar, setFamiliarNoSirenSteal, } from "./features/sirenHelpers";
@@ -98,6 +101,7 @@ export * from "./functions/pressurePlate";
98
101
  export * from "./functions/random";
99
102
  export * from "./functions/revive";
100
103
  export * from "./functions/rng";
104
+ export * from "./functions/rockAlt";
101
105
  export * from "./functions/roomData";
102
106
  export * from "./functions/roomGrid";
103
107
  export * from "./functions/rooms";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,cAAc,EACd,eAAe,GAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAw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8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
package/dist/index.lua CHANGED
@@ -191,6 +191,13 @@ do
191
191
  local forgottenSwitch = ____forgottenSwitch.forgottenSwitch
192
192
  ____exports.forgottenSwitch = forgottenSwitch
193
193
  end
194
+ do
195
+ local ____pause = require("features.pause")
196
+ local pause = ____pause.pause
197
+ local unpause = ____pause.unpause
198
+ ____exports.pause = pause
199
+ ____exports.unpause = unpause
200
+ end
194
201
  do
195
202
  local ____persistentEntities = require("features.persistentEntities")
196
203
  local removePersistentEntity = ____persistentEntities.removePersistentEntity
@@ -198,6 +205,14 @@ do
198
205
  ____exports.removePersistentEntity = removePersistentEntity
199
206
  ____exports.spawnPersistentEntity = spawnPersistentEntity
200
207
  end
208
+ do
209
+ local ____export = require("features.pickupIndex")
210
+ for ____exportKey, ____exportValue in pairs(____export) do
211
+ if ____exportKey ~= "default" then
212
+ ____exports[____exportKey] = ____exportValue
213
+ end
214
+ end
215
+ end
201
216
  do
202
217
  local ____playerInventory = require("features.playerInventory")
203
218
  local getPlayerInventory = ____playerInventory.getPlayerInventory
@@ -229,6 +244,14 @@ do
229
244
  ____exports.getRoomClearGameFrame = getRoomClearGameFrame
230
245
  ____exports.getRoomClearRoomFrame = getRoomClearRoomFrame
231
246
  end
247
+ do
248
+ local ____export = require("features.roomHistory")
249
+ for ____exportKey, ____exportValue in pairs(____export) do
250
+ if ____exportKey ~= "default" then
251
+ ____exports[____exportKey] = ____exportValue
252
+ end
253
+ end
254
+ end
232
255
  do
233
256
  local ____runInNFrames = require("features.runInNFrames")
234
257
  local runInNGameFrames = ____runInNFrames.runInNGameFrames
@@ -783,6 +806,14 @@ do
783
806
  end
784
807
  end
785
808
  end
809
+ do
810
+ local ____export = require("functions.rockAlt")
811
+ for ____exportKey, ____exportValue in pairs(____export) do
812
+ if ____exportKey ~= "default" then
813
+ ____exports[____exportKey] = ____exportValue
814
+ end
815
+ end
816
+ end
786
817
  do
787
818
  local ____export = require("functions.roomData")
788
819
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -1 +1 @@
1
- {"version":3,"file":"initCustomCallbacks.d.ts","sourceRoot":"","sources":["../src/initCustomCallbacks.ts"],"names":[],"mappings":"AAkEA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAmE1D"}
1
+ {"version":3,"file":"initCustomCallbacks.d.ts","sourceRoot":"","sources":["../src/initCustomCallbacks.ts"],"names":[],"mappings":"AAoEA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAqE1D"}
@@ -43,6 +43,10 @@ local ____postGridEntity = require("callbacks.postGridEntity")
43
43
  local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
44
44
  local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
45
45
  local postGridEntityCollisionInit = ____postGridEntityCollision.postGridEntityCollisionInit
46
+ local ____postGridEntityCustomRender = require("callbacks.postGridEntityCustomRender")
47
+ local postGridEntityCustomRenderInit = ____postGridEntityCustomRender.postGridEntityCustomRenderInit
48
+ local ____postGridEntityCustomUpdate = require("callbacks.postGridEntityCustomUpdate")
49
+ local postGridEntityCustomUpdateInit = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateInit
46
50
  local ____postGridEntityRender = require("callbacks.postGridEntityRender")
47
51
  local postGridEntityRenderInit = ____postGridEntityRender.postGridEntityRenderInit
48
52
  local ____postHolyMantleRemoved = require("callbacks.postHolyMantleRemoved")
@@ -154,6 +158,8 @@ function ____exports.initCustomCallbacks(self, mod)
154
158
  postGreedModeWaveInit(nil, mod)
155
159
  postGridEntityCallbacksInit(nil, mod)
156
160
  postGridEntityCollisionInit(nil, mod)
161
+ postGridEntityCustomRenderInit(nil, mod)
162
+ postGridEntityCustomUpdateInit(nil, mod)
157
163
  postGridEntityRenderInit(nil, mod)
158
164
  postHolyMantleRemovedInit(nil, mod)
159
165
  postItemDischargeInit(nil, mod)
@@ -1 +1 @@
1
- {"version":3,"file":"initFeatures.d.ts","sourceRoot":"","sources":["../src/initFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AA0BpD,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAGnD"}
1
+ {"version":3,"file":"initFeatures.d.ts","sourceRoot":"","sources":["../src/initFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AA4BpD,wBAAgB,YAAY,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAGnD"}
@@ -28,6 +28,8 @@ local ____pause = require("features.pause")
28
28
  local pauseInit = ____pause.pauseInit
29
29
  local ____persistentEntities = require("features.persistentEntities")
30
30
  local persistentEntitiesInit = ____persistentEntities.persistentEntitiesInit
31
+ local ____pickupIndex = require("features.pickupIndex")
32
+ local pickupIndexInit = ____pickupIndex.pickupIndexInit
31
33
  local ____playerInventory = require("features.playerInventory")
32
34
  local playerInventoryInit = ____playerInventory.playerInventoryInit
33
35
  local ____ponyDetection = require("features.ponyDetection")
@@ -38,6 +40,8 @@ local ____registerHotkey = require("features.registerHotkey")
38
40
  local registerHotkeyInit = ____registerHotkey.registerHotkeyInit
39
41
  local ____roomClearFrame = require("features.roomClearFrame")
40
42
  local roomClearFrameInit = ____roomClearFrame.roomClearFrameInit
43
+ local ____roomHistory = require("features.roomHistory")
44
+ local roomHistoryInit = ____roomHistory.roomHistoryInit
41
45
  local ____runInNFrames = require("features.runInNFrames")
42
46
  local runInNFramesInit = ____runInNFrames.runInNFramesInit
43
47
  local ____runNextRoom = require("features.runNextRoom")
@@ -66,11 +70,13 @@ function initFeaturesMinor(self, mod)
66
70
  collectibleItemPoolTypeInit(nil, mod)
67
71
  pauseInit(nil, mod)
68
72
  persistentEntitiesInit(nil, mod)
73
+ pickupIndexInit(nil, mod)
69
74
  playerInventoryInit(nil, mod)
70
75
  ponyDetectionInit(nil, mod)
71
76
  preventCollectibleRotationInit(nil, mod)
72
77
  registerHotkeyInit(nil, mod)
73
78
  roomClearFrameInit(nil, mod)
79
+ roomHistoryInit(nil, mod)
74
80
  runNextRoomInit(nil, mod)
75
81
  sirenHelpersInit(nil, mod)
76
82
  stageHistoryInit(nil, mod)