isaacscript-common 7.17.3 → 7.18.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.
- package/dist/functions/players.lua +1 -1
- package/dist/functions/run.d.ts +5 -0
- package/dist/functions/run.d.ts.map +1 -1
- package/dist/functions/run.lua +13 -0
- package/dist/index.d.ts +11441 -175
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +144 -122
- package/package.json +1 -1
- package/src/functions/players.ts +2 -2
- package/src/functions/run.ts +23 -1
- package/src/index.ts +24 -61
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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ACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,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,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
package/src/functions/players.ts
CHANGED
|
@@ -249,7 +249,7 @@ export function getCharacters(): PlayerType[] {
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
export function getClosestPlayer(position: Vector): EntityPlayer {
|
|
252
|
-
let closestPlayer: EntityPlayer |
|
|
252
|
+
let closestPlayer: EntityPlayer | undefined;
|
|
253
253
|
let closestDistance = math.huge;
|
|
254
254
|
for (const player of getPlayers()) {
|
|
255
255
|
const distance = position.Distance(player.Position);
|
|
@@ -260,7 +260,7 @@ export function getClosestPlayer(position: Vector): EntityPlayer {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
if (closestPlayer ===
|
|
263
|
+
if (closestPlayer === undefined) {
|
|
264
264
|
error("Failed to find the closest player.");
|
|
265
265
|
}
|
|
266
266
|
|
package/src/functions/run.ts
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Challenge,
|
|
3
|
+
PlayerType,
|
|
4
|
+
SlotVariant,
|
|
5
|
+
} from "isaac-typescript-definitions";
|
|
2
6
|
import { game } from "../core/cachedClasses";
|
|
7
|
+
import { VectorZero } from "../core/constants";
|
|
3
8
|
import { FIRST_CHARACTER } from "../core/constantsFirstLast";
|
|
4
9
|
import { runNextRenderFrame } from "../features/runInNFrames";
|
|
10
|
+
import { spawnSlot } from "./entitiesSpecific";
|
|
5
11
|
import { log } from "./log";
|
|
6
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Helper function to see if the current run can unlock achievements. For example, if playing on a
|
|
15
|
+
* set seed or in a victory lap, achievements are disabled.
|
|
16
|
+
*/
|
|
17
|
+
export function canRunUnlockAchievements(): boolean {
|
|
18
|
+
const greedDonationMachine = spawnSlot(
|
|
19
|
+
SlotVariant.GREED_DONATION_MACHINE,
|
|
20
|
+
0,
|
|
21
|
+
VectorZero,
|
|
22
|
+
);
|
|
23
|
+
const canUnlockAchievements = greedDonationMachine.Exists();
|
|
24
|
+
greedDonationMachine.Remove();
|
|
25
|
+
|
|
26
|
+
return canUnlockAchievements;
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
/**
|
|
8
30
|
* Whether or not the player is playing on a set seed (i.e. that they entered in a specific seed by
|
|
9
31
|
* pressing tab on the character selection screen). When the player resets the game on a set seed,
|
package/src/index.ts
CHANGED
|
@@ -14,74 +14,37 @@ export * from "./enums/SaveDataKey";
|
|
|
14
14
|
export * from "./enums/SerializationType";
|
|
15
15
|
export * from "./enums/SlotDestructionType";
|
|
16
16
|
export * from "./enums/StatType";
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export { initCustomDoor, spawnCustomDoor } from "./features/customDoor";
|
|
24
|
-
export {
|
|
25
|
-
removeCustomGridEntity,
|
|
26
|
-
spawnCustomGridEntity,
|
|
27
|
-
} from "./features/customGridEntity";
|
|
28
|
-
export { registerCustomPickup } from "./features/customPickup";
|
|
17
|
+
export * from "./features/characterHealthConversion";
|
|
18
|
+
export * from "./features/characterStats";
|
|
19
|
+
export * from "./features/collectibleItemPoolType";
|
|
20
|
+
export * from "./features/customDoor";
|
|
21
|
+
export * from "./features/customGridEntity";
|
|
22
|
+
export * from "./features/customPickup";
|
|
29
23
|
export * from "./features/customStage/exports";
|
|
30
24
|
export * from "./features/customTrapdoor/exports";
|
|
31
25
|
export * from "./features/debugDisplay/exports";
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
emptyRoom,
|
|
36
|
-
} from "./features/deployJSONRoom";
|
|
37
|
-
export { disableAllSound, enableAllSound } from "./features/disableAllSound";
|
|
38
|
-
export {
|
|
39
|
-
disableAllInputs,
|
|
40
|
-
disableAllInputsExceptFor,
|
|
41
|
-
disableInputs,
|
|
42
|
-
disableMovementInputs,
|
|
43
|
-
disableShootingInputs,
|
|
44
|
-
enableAllInputs,
|
|
45
|
-
enableAllInputsExceptFor,
|
|
46
|
-
} from "./features/disableInputs";
|
|
26
|
+
export * from "./features/deployJSONRoom";
|
|
27
|
+
export * from "./features/disableAllSound";
|
|
28
|
+
export * from "./features/disableInputs";
|
|
47
29
|
export * from "./features/extraConsoleCommands/exports";
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
removePersistentEntity,
|
|
54
|
-
spawnPersistentEntity,
|
|
55
|
-
} from "./features/persistentEntities";
|
|
30
|
+
export * from "./features/fadeInRemover";
|
|
31
|
+
export * from "./features/fastReset";
|
|
32
|
+
export * from "./features/forgottenSwitch";
|
|
33
|
+
export * from "./features/pause";
|
|
34
|
+
export * from "./features/persistentEntities";
|
|
56
35
|
export * from "./features/pickupIndex";
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export
|
|
63
|
-
export { preventCollectibleRotation } from "./features/preventCollectibleRotation";
|
|
64
|
-
export { registerHotkey, unregisterHotkey } from "./features/registerHotkey";
|
|
65
|
-
export {
|
|
66
|
-
getRoomClearGameFrame,
|
|
67
|
-
getRoomClearRoomFrame,
|
|
68
|
-
} from "./features/roomClearFrame";
|
|
36
|
+
export * from "./features/playerInventory";
|
|
37
|
+
export * from "./features/ponyDetection";
|
|
38
|
+
export * from "./features/preventChildEntities";
|
|
39
|
+
export * from "./features/preventCollectibleRotation";
|
|
40
|
+
export * from "./features/registerHotkey";
|
|
41
|
+
export * from "./features/roomClearFrame";
|
|
69
42
|
export * from "./features/roomHistory";
|
|
70
|
-
export
|
|
71
|
-
runInNGameFrames,
|
|
72
|
-
runInNRenderFrames,
|
|
73
|
-
runNextGameFrame,
|
|
74
|
-
runNextRenderFrame,
|
|
75
|
-
setIntervalGameFrames,
|
|
76
|
-
setIntervalRenderFrames,
|
|
77
|
-
} from "./features/runInNFrames";
|
|
43
|
+
export * from "./features/runInNFrames";
|
|
78
44
|
export * from "./features/saveDataManager/exports";
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} from "./features/sirenHelpers";
|
|
83
|
-
export { getStageHistory, hasVisitedStage } from "./features/stageHistory";
|
|
84
|
-
export { getTaintedLazarusSubPlayer } from "./features/taintedLazarusPlayers";
|
|
45
|
+
export * from "./features/sirenHelpers";
|
|
46
|
+
export * from "./features/stageHistory";
|
|
47
|
+
export * from "./features/taintedLazarusPlayers";
|
|
85
48
|
export * from "./functions/ambush";
|
|
86
49
|
export * from "./functions/array";
|
|
87
50
|
export * from "./functions/benchmark";
|