isaacscript-common 7.17.2 → 7.17.5
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.
- package/dist/features/characterHealthConversion.d.ts +0 -1
- package/dist/features/characterHealthConversion.d.ts.map +1 -1
- package/dist/features/characterHealthConversion.lua +2 -0
- package/dist/features/characterStats.d.ts +0 -1
- package/dist/features/characterStats.d.ts.map +1 -1
- package/dist/features/characterStats.lua +2 -0
- package/dist/features/collectibleItemPoolType.d.ts +0 -1
- package/dist/features/collectibleItemPoolType.d.ts.map +1 -1
- package/dist/features/collectibleItemPoolType.lua +2 -0
- package/dist/features/customGridEntity.d.ts +0 -2
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +2 -0
- package/dist/features/customPickup.d.ts +0 -1
- package/dist/features/customPickup.d.ts.map +1 -1
- package/dist/features/customPickup.lua +2 -0
- package/dist/features/deployJSONRoom.d.ts +0 -2
- package/dist/features/deployJSONRoom.d.ts.map +1 -1
- package/dist/features/deployJSONRoom.lua +2 -0
- package/dist/features/disableAllSound.d.ts +0 -2
- package/dist/features/disableAllSound.d.ts.map +1 -1
- package/dist/features/disableAllSound.lua +2 -0
- package/dist/features/disableInputs.d.ts +0 -1
- package/dist/features/disableInputs.d.ts.map +1 -1
- package/dist/features/disableInputs.lua +2 -0
- package/dist/features/fadeInRemover.d.ts +0 -2
- package/dist/features/fadeInRemover.d.ts.map +1 -1
- package/dist/features/fadeInRemover.lua +2 -0
- package/dist/features/fastReset.d.ts +0 -2
- package/dist/features/fastReset.d.ts.map +1 -1
- package/dist/features/fastReset.lua +2 -0
- package/dist/features/forgottenSwitch.d.ts +0 -2
- package/dist/features/forgottenSwitch.d.ts.map +1 -1
- package/dist/features/forgottenSwitch.lua +2 -0
- package/dist/features/pause.d.ts +0 -2
- package/dist/features/pause.d.ts.map +1 -1
- package/dist/features/pause.lua +2 -0
- package/dist/features/persistentEntities.d.ts +0 -2
- package/dist/features/persistentEntities.d.ts.map +1 -1
- package/dist/features/persistentEntities.lua +2 -0
- package/dist/features/pickupIndex.d.ts +0 -2
- package/dist/features/pickupIndex.d.ts.map +1 -1
- package/dist/features/pickupIndex.lua +2 -0
- package/dist/features/playerInventory.d.ts +0 -2
- package/dist/features/playerInventory.d.ts.map +1 -1
- package/dist/features/playerInventory.lua +2 -0
- package/dist/features/ponyDetection.d.ts +0 -2
- package/dist/features/ponyDetection.d.ts.map +1 -1
- package/dist/features/ponyDetection.lua +2 -0
- package/dist/features/preventChildEntities.d.ts +0 -2
- package/dist/features/preventChildEntities.d.ts.map +1 -1
- package/dist/features/preventChildEntities.lua +2 -0
- package/dist/features/preventCollectibleRotation.d.ts +0 -1
- package/dist/features/preventCollectibleRotation.d.ts.map +1 -1
- package/dist/features/preventCollectibleRotation.lua +2 -0
- package/dist/features/registerHotkey.d.ts +0 -1
- package/dist/features/registerHotkey.d.ts.map +1 -1
- package/dist/features/registerHotkey.lua +2 -0
- package/dist/features/roomClearFrame.d.ts +0 -2
- package/dist/features/roomClearFrame.d.ts.map +1 -1
- package/dist/features/roomClearFrame.lua +2 -0
- package/dist/features/roomHistory.d.ts +0 -2
- package/dist/features/roomHistory.d.ts.map +1 -1
- package/dist/features/roomHistory.lua +2 -0
- package/dist/features/runInNFrames.d.ts +0 -2
- package/dist/features/runInNFrames.d.ts.map +1 -1
- package/dist/features/runInNFrames.lua +2 -0
- package/dist/features/runNextRoom.d.ts +0 -2
- package/dist/features/runNextRoom.d.ts.map +1 -1
- package/dist/features/runNextRoom.lua +2 -0
- package/dist/features/sirenHelpers.d.ts +0 -1
- package/dist/features/sirenHelpers.d.ts.map +1 -1
- package/dist/features/sirenHelpers.lua +2 -0
- package/dist/features/stageHistory.d.ts +0 -2
- package/dist/features/stageHistory.d.ts.map +1 -1
- package/dist/features/stageHistory.lua +2 -0
- package/dist/features/taintedLazarusPlayers.d.ts +0 -2
- package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
- package/dist/features/taintedLazarusPlayers.lua +2 -0
- package/dist/index.d.ts +22 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +144 -122
- package/package.json +1 -1
- package/src/features/characterHealthConversion.ts +1 -0
- package/src/features/characterStats.ts +1 -0
- package/src/features/collectibleItemPoolType.ts +1 -0
- package/src/features/customGridEntity.ts +1 -0
- package/src/features/customPickup.ts +1 -0
- package/src/features/deployJSONRoom.ts +1 -0
- package/src/features/disableAllSound.ts +1 -0
- package/src/features/disableInputs.ts +1 -0
- package/src/features/fadeInRemover.ts +1 -0
- package/src/features/fastReset.ts +4 -0
- package/src/features/forgottenSwitch.ts +1 -0
- package/src/features/pause.ts +1 -0
- package/src/features/persistentEntities.ts +1 -0
- package/src/features/pickupIndex.ts +1 -0
- package/src/features/playerInventory.ts +1 -0
- package/src/features/ponyDetection.ts +1 -0
- package/src/features/preventChildEntities.ts +1 -0
- package/src/features/preventCollectibleRotation.ts +1 -0
- package/src/features/registerHotkey.ts +1 -0
- package/src/features/roomClearFrame.ts +1 -0
- package/src/features/roomHistory.ts +1 -0
- package/src/features/runInNFrames.ts +1 -0
- package/src/features/runNextRoom.ts +1 -0
- package/src/features/sirenHelpers.ts +1 -0
- package/src/features/stageHistory.ts +1 -0
- package/src/features/taintedLazarusPlayers.ts +1 -0
- package/src/index.ts +24 -61
- package/src/types/AwaitingTextInput.d.ts +0 -2
|
@@ -19,6 +19,8 @@ function postNewLevelReordered(self)
|
|
|
19
19
|
end
|
|
20
20
|
local FEATURE_NAME = "stageHistory"
|
|
21
21
|
v = {run = {stageHistory = {}}}
|
|
22
|
+
---
|
|
23
|
+
-- @internal
|
|
22
24
|
function ____exports.stageHistoryInit(self, mod)
|
|
23
25
|
saveDataManager(nil, FEATURE_NAME, v)
|
|
24
26
|
mod:AddCallbackCustom(ModCallbackCustom.POST_NEW_LEVEL_REORDERED, postNewLevelReordered)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../src/features/taintedLazarusPlayers.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"taintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../src/features/taintedLazarusPlayers.ts"],"names":[],"mappings":";AA+FA;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,YAAY,GACnB,YAAY,GAAG,SAAS,CAK1B"}
|
|
@@ -49,6 +49,8 @@ v = {run = {
|
|
|
49
49
|
queuedDeadTaintedLazarus = {},
|
|
50
50
|
subPlayerMap = __TS__New(Map)
|
|
51
51
|
}}
|
|
52
|
+
---
|
|
53
|
+
-- @internal
|
|
52
54
|
function ____exports.taintedLazarusPlayersInit(self, mod)
|
|
53
55
|
saveDataManager(nil, FEATURE_NAME, v, false)
|
|
54
56
|
mod:AddCallback(ModCallback.POST_PLAYER_INIT, postPlayerInit)
|
package/dist/index.d.ts
CHANGED
|
@@ -2815,6 +2815,22 @@ export declare function getCombinedBossSet(stage: int): Set<string> | undefined;
|
|
|
2815
2815
|
*/
|
|
2816
2816
|
export declare function getCrawlSpaces(crawlSpaceVariant?: CrawlSpaceVariant): GridEntity[];
|
|
2817
2817
|
|
|
2818
|
+
/**
|
|
2819
|
+
* Helper function to get the custom grid entities in the current room. Returns an array of tuples
|
|
2820
|
+
* containing the raw decoration grid entity and the associated entity data.
|
|
2821
|
+
*/
|
|
2822
|
+
export declare function getCustomGridEntities(): Array<[
|
|
2823
|
+
gridEntity: GridEntity,
|
|
2824
|
+
data: GridEntityCustomData
|
|
2825
|
+
]>;
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* Helper function to get the custom `GridEntityType` from a `GridEntity` or grid index. Returns
|
|
2829
|
+
* undefined if the provided `GridEntity` is not a custom grid entity, or if there was not a grid
|
|
2830
|
+
* entity on the provided grid index.
|
|
2831
|
+
*/
|
|
2832
|
+
export declare function getCustomGridEntityType(gridEntityOrGridIndex: GridEntity | int): GridEntityType | undefined;
|
|
2833
|
+
|
|
2818
2834
|
/**
|
|
2819
2835
|
* Helper function to prefix the name of the function and the line number before a debug message.
|
|
2820
2836
|
*/
|
|
@@ -5436,6 +5452,12 @@ export declare function isCollectibleUnlocked(collectibleType: CollectibleType,
|
|
|
5436
5452
|
/** Helper function to check if something is an instantiated `Color` object. */
|
|
5437
5453
|
export declare function isColor(object: unknown): object is Color;
|
|
5438
5454
|
|
|
5455
|
+
/**
|
|
5456
|
+
* Helper function to check if a `GridEntity` is a custom grid entity or if a grid index has a
|
|
5457
|
+
* custom grid entity.
|
|
5458
|
+
*/
|
|
5459
|
+
export declare function isCustomGridEntity(gridEntityOrGridIndex: GridEntity | int): boolean;
|
|
5460
|
+
|
|
5439
5461
|
/**
|
|
5440
5462
|
* Helper function to distinguish between a normal Daddy Long Legs / Triachnid and the child entity
|
|
5441
5463
|
* that is spawned when the boss does the multi-stomp attack.
|
|
@@ -8137,8 +8159,6 @@ export declare type PickupIndex = int & {
|
|
|
8137
8159
|
readonly __pickupIndexBrand: symbol;
|
|
8138
8160
|
};
|
|
8139
8161
|
|
|
8140
|
-
export declare function pickupIndexInit(mod: ModUpgraded): void;
|
|
8141
|
-
|
|
8142
8162
|
/** Maps pill effect names to the values of the `PillEffect` enum. */
|
|
8143
8163
|
export declare const PILL_EFFECT_MAP: ReadonlyMap<string, PillEffect>;
|
|
8144
8164
|
|
|
@@ -9495,8 +9515,6 @@ export declare function roomExists(roomGridIndex: int): boolean;
|
|
|
9495
9515
|
*/
|
|
9496
9516
|
export declare function roomGridIndexToXY(roomGridIndex: int): [x: int, y: int];
|
|
9497
9517
|
|
|
9498
|
-
export declare function roomHistoryInit(mod: ModUpgraded): void;
|
|
9499
|
-
|
|
9500
9518
|
/**
|
|
9501
9519
|
* If the `Room.Update` method is called in a `POST_NEW_ROOM` callback, then some entities will
|
|
9502
9520
|
* slide around (such as the player). Since those entity velocities are already at zero, setting
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAi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;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC"}
|
package/dist/index.lua
CHANGED
|
@@ -128,38 +128,52 @@ do
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
do
|
|
131
|
-
local
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
local ____export = require("features.characterHealthConversion")
|
|
132
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
133
|
+
if ____exportKey ~= "default" then
|
|
134
|
+
____exports[____exportKey] = ____exportValue
|
|
135
|
+
end
|
|
136
|
+
end
|
|
134
137
|
end
|
|
135
138
|
do
|
|
136
|
-
local
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
local ____export = require("features.characterStats")
|
|
140
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
141
|
+
if ____exportKey ~= "default" then
|
|
142
|
+
____exports[____exportKey] = ____exportValue
|
|
143
|
+
end
|
|
144
|
+
end
|
|
139
145
|
end
|
|
140
146
|
do
|
|
141
|
-
local
|
|
142
|
-
|
|
143
|
-
|
|
147
|
+
local ____export = require("features.collectibleItemPoolType")
|
|
148
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
149
|
+
if ____exportKey ~= "default" then
|
|
150
|
+
____exports[____exportKey] = ____exportValue
|
|
151
|
+
end
|
|
152
|
+
end
|
|
144
153
|
end
|
|
145
154
|
do
|
|
146
|
-
local
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
155
|
+
local ____export = require("features.customDoor")
|
|
156
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
157
|
+
if ____exportKey ~= "default" then
|
|
158
|
+
____exports[____exportKey] = ____exportValue
|
|
159
|
+
end
|
|
160
|
+
end
|
|
151
161
|
end
|
|
152
162
|
do
|
|
153
|
-
local
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
163
|
+
local ____export = require("features.customGridEntity")
|
|
164
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
165
|
+
if ____exportKey ~= "default" then
|
|
166
|
+
____exports[____exportKey] = ____exportValue
|
|
167
|
+
end
|
|
168
|
+
end
|
|
158
169
|
end
|
|
159
170
|
do
|
|
160
|
-
local
|
|
161
|
-
|
|
162
|
-
|
|
171
|
+
local ____export = require("features.customPickup")
|
|
172
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
173
|
+
if ____exportKey ~= "default" then
|
|
174
|
+
____exports[____exportKey] = ____exportValue
|
|
175
|
+
end
|
|
176
|
+
end
|
|
163
177
|
end
|
|
164
178
|
do
|
|
165
179
|
local ____export = require("features.customStage.exports")
|
|
@@ -186,37 +200,28 @@ do
|
|
|
186
200
|
end
|
|
187
201
|
end
|
|
188
202
|
do
|
|
189
|
-
local
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
____exports.emptyRoom = emptyRoom
|
|
203
|
+
local ____export = require("features.deployJSONRoom")
|
|
204
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
205
|
+
if ____exportKey ~= "default" then
|
|
206
|
+
____exports[____exportKey] = ____exportValue
|
|
207
|
+
end
|
|
208
|
+
end
|
|
196
209
|
end
|
|
197
210
|
do
|
|
198
|
-
local
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
211
|
+
local ____export = require("features.disableAllSound")
|
|
212
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
213
|
+
if ____exportKey ~= "default" then
|
|
214
|
+
____exports[____exportKey] = ____exportValue
|
|
215
|
+
end
|
|
216
|
+
end
|
|
203
217
|
end
|
|
204
218
|
do
|
|
205
|
-
local
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
local enableAllInputs = ____disableInputs.enableAllInputs
|
|
212
|
-
local enableAllInputsExceptFor = ____disableInputs.enableAllInputsExceptFor
|
|
213
|
-
____exports.disableAllInputs = disableAllInputs
|
|
214
|
-
____exports.disableAllInputsExceptFor = disableAllInputsExceptFor
|
|
215
|
-
____exports.disableInputs = disableInputs
|
|
216
|
-
____exports.disableMovementInputs = disableMovementInputs
|
|
217
|
-
____exports.disableShootingInputs = disableShootingInputs
|
|
218
|
-
____exports.enableAllInputs = enableAllInputs
|
|
219
|
-
____exports.enableAllInputsExceptFor = enableAllInputsExceptFor
|
|
219
|
+
local ____export = require("features.disableInputs")
|
|
220
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
221
|
+
if ____exportKey ~= "default" then
|
|
222
|
+
____exports[____exportKey] = ____exportValue
|
|
223
|
+
end
|
|
224
|
+
end
|
|
220
225
|
end
|
|
221
226
|
do
|
|
222
227
|
local ____export = require("features.extraConsoleCommands.exports")
|
|
@@ -227,37 +232,44 @@ do
|
|
|
227
232
|
end
|
|
228
233
|
end
|
|
229
234
|
do
|
|
230
|
-
local
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
local ____export = require("features.fadeInRemover")
|
|
236
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
237
|
+
if ____exportKey ~= "default" then
|
|
238
|
+
____exports[____exportKey] = ____exportValue
|
|
239
|
+
end
|
|
240
|
+
end
|
|
235
241
|
end
|
|
236
242
|
do
|
|
237
|
-
local
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
243
|
+
local ____export = require("features.fastReset")
|
|
244
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
245
|
+
if ____exportKey ~= "default" then
|
|
246
|
+
____exports[____exportKey] = ____exportValue
|
|
247
|
+
end
|
|
248
|
+
end
|
|
242
249
|
end
|
|
243
250
|
do
|
|
244
|
-
local
|
|
245
|
-
|
|
246
|
-
|
|
251
|
+
local ____export = require("features.forgottenSwitch")
|
|
252
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
253
|
+
if ____exportKey ~= "default" then
|
|
254
|
+
____exports[____exportKey] = ____exportValue
|
|
255
|
+
end
|
|
256
|
+
end
|
|
247
257
|
end
|
|
248
258
|
do
|
|
249
|
-
local
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
259
|
+
local ____export = require("features.pause")
|
|
260
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
261
|
+
if ____exportKey ~= "default" then
|
|
262
|
+
____exports[____exportKey] = ____exportValue
|
|
263
|
+
end
|
|
264
|
+
end
|
|
254
265
|
end
|
|
255
266
|
do
|
|
256
|
-
local
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
267
|
+
local ____export = require("features.persistentEntities")
|
|
268
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
269
|
+
if ____exportKey ~= "default" then
|
|
270
|
+
____exports[____exportKey] = ____exportValue
|
|
271
|
+
end
|
|
272
|
+
end
|
|
261
273
|
end
|
|
262
274
|
do
|
|
263
275
|
local ____export = require("features.pickupIndex")
|
|
@@ -268,40 +280,52 @@ do
|
|
|
268
280
|
end
|
|
269
281
|
end
|
|
270
282
|
do
|
|
271
|
-
local
|
|
272
|
-
|
|
273
|
-
|
|
283
|
+
local ____export = require("features.playerInventory")
|
|
284
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
285
|
+
if ____exportKey ~= "default" then
|
|
286
|
+
____exports[____exportKey] = ____exportValue
|
|
287
|
+
end
|
|
288
|
+
end
|
|
274
289
|
end
|
|
275
290
|
do
|
|
276
|
-
local
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
291
|
+
local ____export = require("features.ponyDetection")
|
|
292
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
293
|
+
if ____exportKey ~= "default" then
|
|
294
|
+
____exports[____exportKey] = ____exportValue
|
|
295
|
+
end
|
|
296
|
+
end
|
|
281
297
|
end
|
|
282
298
|
do
|
|
283
|
-
local
|
|
284
|
-
|
|
285
|
-
|
|
299
|
+
local ____export = require("features.preventChildEntities")
|
|
300
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
301
|
+
if ____exportKey ~= "default" then
|
|
302
|
+
____exports[____exportKey] = ____exportValue
|
|
303
|
+
end
|
|
304
|
+
end
|
|
286
305
|
end
|
|
287
306
|
do
|
|
288
|
-
local
|
|
289
|
-
|
|
290
|
-
|
|
307
|
+
local ____export = require("features.preventCollectibleRotation")
|
|
308
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
309
|
+
if ____exportKey ~= "default" then
|
|
310
|
+
____exports[____exportKey] = ____exportValue
|
|
311
|
+
end
|
|
312
|
+
end
|
|
291
313
|
end
|
|
292
314
|
do
|
|
293
|
-
local
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
315
|
+
local ____export = require("features.registerHotkey")
|
|
316
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
317
|
+
if ____exportKey ~= "default" then
|
|
318
|
+
____exports[____exportKey] = ____exportValue
|
|
319
|
+
end
|
|
320
|
+
end
|
|
298
321
|
end
|
|
299
322
|
do
|
|
300
|
-
local
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
323
|
+
local ____export = require("features.roomClearFrame")
|
|
324
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
325
|
+
if ____exportKey ~= "default" then
|
|
326
|
+
____exports[____exportKey] = ____exportValue
|
|
327
|
+
end
|
|
328
|
+
end
|
|
305
329
|
end
|
|
306
330
|
do
|
|
307
331
|
local ____export = require("features.roomHistory")
|
|
@@ -312,19 +336,12 @@ do
|
|
|
312
336
|
end
|
|
313
337
|
end
|
|
314
338
|
do
|
|
315
|
-
local
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
local setIntervalRenderFrames = ____runInNFrames.setIntervalRenderFrames
|
|
322
|
-
____exports.runInNGameFrames = runInNGameFrames
|
|
323
|
-
____exports.runInNRenderFrames = runInNRenderFrames
|
|
324
|
-
____exports.runNextGameFrame = runNextGameFrame
|
|
325
|
-
____exports.runNextRenderFrame = runNextRenderFrame
|
|
326
|
-
____exports.setIntervalGameFrames = setIntervalGameFrames
|
|
327
|
-
____exports.setIntervalRenderFrames = setIntervalRenderFrames
|
|
339
|
+
local ____export = require("features.runInNFrames")
|
|
340
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
341
|
+
if ____exportKey ~= "default" then
|
|
342
|
+
____exports[____exportKey] = ____exportValue
|
|
343
|
+
end
|
|
344
|
+
end
|
|
328
345
|
end
|
|
329
346
|
do
|
|
330
347
|
local ____export = require("features.saveDataManager.exports")
|
|
@@ -335,23 +352,28 @@ do
|
|
|
335
352
|
end
|
|
336
353
|
end
|
|
337
354
|
do
|
|
338
|
-
local
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
355
|
+
local ____export = require("features.sirenHelpers")
|
|
356
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
357
|
+
if ____exportKey ~= "default" then
|
|
358
|
+
____exports[____exportKey] = ____exportValue
|
|
359
|
+
end
|
|
360
|
+
end
|
|
343
361
|
end
|
|
344
362
|
do
|
|
345
|
-
local
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
363
|
+
local ____export = require("features.stageHistory")
|
|
364
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
365
|
+
if ____exportKey ~= "default" then
|
|
366
|
+
____exports[____exportKey] = ____exportValue
|
|
367
|
+
end
|
|
368
|
+
end
|
|
350
369
|
end
|
|
351
370
|
do
|
|
352
|
-
local
|
|
353
|
-
|
|
354
|
-
|
|
371
|
+
local ____export = require("features.taintedLazarusPlayers")
|
|
372
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
373
|
+
if ____exportKey ~= "default" then
|
|
374
|
+
____exports[____exportKey] = ____exportValue
|
|
375
|
+
end
|
|
376
|
+
end
|
|
355
377
|
end
|
|
356
378
|
do
|
|
357
379
|
local ____export = require("functions.ambush")
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ const characterHealthReplacementMap = new Map<
|
|
|
23
23
|
ConversionHeartSubType
|
|
24
24
|
>();
|
|
25
25
|
|
|
26
|
+
/** @internal */
|
|
26
27
|
export function characterHealthConversionInit(mod: Mod): void {
|
|
27
28
|
mod.AddCallback(ModCallback.POST_PEFFECT_UPDATE, postPEffectUpdate); // 4
|
|
28
29
|
mod.AddCallback(
|
|
@@ -18,6 +18,7 @@ const FEATURE_NAME = "characterStats";
|
|
|
18
18
|
type StatMap = Map<CacheFlag, number> | ReadonlyMap<CacheFlag, number>;
|
|
19
19
|
const charactersStatMap = new Map<PlayerType, StatMap>();
|
|
20
20
|
|
|
21
|
+
/** @internal */
|
|
21
22
|
export function characterStatsInit(mod: Mod): void {
|
|
22
23
|
mod.AddCallback(ModCallback.EVALUATE_CACHE, evaluateCache); // 8
|
|
23
24
|
}
|
|
@@ -32,6 +32,7 @@ const PICKUP_EFFECT_SUB_TYPE = 103;
|
|
|
32
32
|
/** Indexed by entity ID. */
|
|
33
33
|
const customPickupFunctionsMap = new Map<string, CustomPickupFunctions>();
|
|
34
34
|
|
|
35
|
+
/** @internal */
|
|
35
36
|
export function customPickupInit(mod: Mod): void {
|
|
36
37
|
mod.AddCallback(ModCallback.PRE_PICKUP_COLLISION, prePickupCollision); // 38
|
|
37
38
|
mod.AddCallback(
|
|
@@ -9,8 +9,12 @@ import { restart } from "../functions/run";
|
|
|
9
9
|
|
|
10
10
|
const FEATURE_NAME = "fastReset";
|
|
11
11
|
|
|
12
|
+
/** A global variable set by custom consoles. */
|
|
13
|
+
declare let AwaitingTextInput: boolean;
|
|
14
|
+
|
|
12
15
|
let enabled = false;
|
|
13
16
|
|
|
17
|
+
/** @internal */
|
|
14
18
|
export function fastResetInit(mod: Mod): void {
|
|
15
19
|
mod.AddCallback(ModCallback.POST_RENDER, postRender); // 2
|
|
16
20
|
}
|
package/src/features/pause.ts
CHANGED