isaacscript-common 2.0.33 → 2.2.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/README.md +1 -1
- package/callbacks/customRevive.lua +11 -11
- package/callbacks/itemPickup.lua +7 -7
- package/callbacks/postBombInitLate.lua +2 -2
- package/callbacks/postBoneSwing.lua +2 -2
- package/callbacks/postCollectibleInitFirst.lua +3 -3
- package/callbacks/postCursedTeleport.lua +6 -6
- package/callbacks/postCustomDoorEnter.lua +9 -9
- package/callbacks/postDoorRender.lua +2 -2
- package/callbacks/postDoorUpdate.lua +2 -2
- package/callbacks/postEffectInitLate.lua +2 -2
- package/callbacks/postEffectStateChanged.lua +3 -3
- package/callbacks/postEsauJr.lua +5 -5
- package/callbacks/postFamiliarInitLate.lua +2 -2
- package/callbacks/postFamiliarStateChanged.lua +3 -3
- package/callbacks/postFlip.lua +4 -4
- package/callbacks/postGreedModeWave.lua +3 -3
- package/callbacks/postGridEntity.lua +7 -7
- package/callbacks/postGridEntityCollision.lua +4 -4
- package/callbacks/postGridEntityRender.lua +2 -2
- package/callbacks/postHolyMantleRemoved.lua +5 -5
- package/callbacks/postItemDischarged.lua +7 -7
- package/callbacks/postKnifeInitLate.lua +2 -2
- package/callbacks/postLaserInitLate.lua +2 -2
- package/callbacks/postNPCInitLate.lua +2 -2
- package/callbacks/postNPCStateChanged.lua +3 -3
- package/callbacks/postNewRoomEarly.lua +4 -4
- package/callbacks/postPickupCollect.lua +3 -3
- package/callbacks/postPickupInitLate.lua +2 -2
- package/callbacks/postPickupStateChanged.lua +3 -3
- package/callbacks/postPitRender.lua +2 -2
- package/callbacks/postPitUpdate.lua +2 -2
- package/callbacks/postPlayerChangeHealth.lua +8 -8
- package/callbacks/postPlayerChangeType.lua +5 -5
- package/callbacks/postPlayerFatalDamage.lua +6 -6
- package/callbacks/postPlayerInitLate.lua +3 -3
- package/callbacks/postPlayerReordered.lua +7 -7
- package/callbacks/postPoopRender.lua +2 -2
- package/callbacks/postPoopUpdate.lua +2 -2
- package/callbacks/postPressurePlateRender.lua +2 -2
- package/callbacks/postPressurePlateUpdate.lua +2 -2
- package/callbacks/postProjectileInitLate.lua +2 -2
- package/callbacks/postPurchase.lua +6 -6
- package/callbacks/postRockRender.lua +2 -2
- package/callbacks/postRockUpdate.lua +2 -2
- package/callbacks/postRoomClearChanged.lua +3 -3
- package/callbacks/postSacrifice.lua +4 -4
- package/callbacks/postSlotInitUpdate.lua +4 -4
- package/callbacks/postSlotRender.lua +6 -6
- package/callbacks/postSpikesRender.lua +2 -2
- package/callbacks/postSpikesUpdate.lua +2 -2
- package/callbacks/postTNTRender.lua +2 -2
- package/callbacks/postTNTUpdate.lua +2 -2
- package/callbacks/postTearInitLate.lua +2 -2
- package/callbacks/postTearInitVeryLate.lua +2 -2
- package/callbacks/postTransformation.lua +6 -6
- package/callbacks/postTrinketBreak.lua +5 -5
- package/callbacks/preBerserkDeath.lua +5 -5
- package/callbacks/preNewLevel.lua +3 -3
- package/callbacks/reorderedCallbacks.lua +4 -4
- package/classes/DefaultMap.d.ts +11 -7
- package/classes/ModUpgraded.d.ts +8 -2
- package/classes/ModUpgraded.lua +1 -1
- package/constants.d.ts +5 -5
- package/constants.lua +2 -2
- package/{constantsMax.d.ts → constantsFirstLast.d.ts} +0 -0
- package/{constantsMax.lua → constantsFirstLast.lua} +2 -2
- package/enums/HealthType.d.ts +2 -2
- package/enums/ModCallbackCustom.d.ts +753 -2
- package/features/characterHealthConversion.d.ts +1 -2
- package/features/characterHealthConversion.lua +3 -3
- package/features/characterStats.lua +3 -3
- package/features/debugDisplay/debugDisplay.lua +4 -4
- package/features/debugDisplay/exports.d.ts +36 -36
- package/features/debugDisplay/exports.lua +2 -2
- package/features/debugDisplay/v.lua +2 -2
- package/features/deployJSONRoom.d.ts +1 -1
- package/features/deployJSONRoom.lua +15 -15
- package/features/disableInputs.d.ts +5 -5
- package/features/disableInputs.lua +3 -3
- package/features/disableSound.d.ts +2 -2
- package/features/disableSound.lua +4 -4
- package/features/extraConsoleCommands/commandsDisplay.d.ts +18 -18
- package/features/extraConsoleCommands/commandsDisplay.lua +1 -1
- package/features/extraConsoleCommands/commandsSubroutines.lua +10 -10
- package/features/extraConsoleCommands/init.d.ts +3 -2
- package/features/extraConsoleCommands/init.lua +83 -83
- package/features/extraConsoleCommands/{commands.d.ts → listCommands.d.ts} +17 -17
- package/features/extraConsoleCommands/{commands.lua → listCommands.lua} +36 -36
- package/features/fadeInRemover.lua +3 -3
- package/features/fastReset.lua +4 -4
- package/features/forgottenSwitch.lua +2 -2
- package/features/getCollectibleItemPoolType.lua +6 -6
- package/features/playerInventory.lua +10 -10
- package/features/{isPonyActive.d.ts → ponyDetection.d.ts} +0 -0
- package/features/{isPonyActive.lua → ponyDetection.lua} +7 -7
- package/features/{preventCollectibleRotate.d.ts → preventCollectibleRotation.d.ts} +1 -1
- package/features/{preventCollectibleRotate.lua → preventCollectibleRotation.lua} +9 -9
- package/features/runInNFrames.lua +3 -3
- package/features/saveDataManager/exports.d.ts +15 -12
- package/features/saveDataManager/exports.lua +6 -6
- package/features/saveDataManager/load.d.ts +1 -1
- package/features/saveDataManager/load.lua +4 -4
- package/features/saveDataManager/main.d.ts +1 -1
- package/features/saveDataManager/main.lua +11 -11
- package/features/saveDataManager/maps.d.ts +1 -1
- package/features/saveDataManager/merge.lua +10 -10
- package/features/saveDataManager/save.d.ts +1 -1
- package/features/saveDataManager/save.lua +5 -5
- package/features/saveDataManager/serializationBrand.lua +2 -2
- package/features/sirenHelpers.lua +3 -3
- package/features/taintedLazarusPlayers.lua +2 -2
- package/functions/array.lua +3 -3
- package/functions/benchmark.lua +1 -1
- package/functions/boss.lua +7 -7
- package/functions/cacheFlag.lua +1 -1
- package/functions/cards.d.ts +1 -1
- package/functions/cards.lua +13 -13
- package/functions/challenges.lua +1 -1
- package/functions/character.lua +9 -9
- package/functions/charge.lua +3 -3
- package/functions/chargeBar.d.ts +1 -8
- package/functions/chargeBar.lua +1 -1
- package/functions/collectibleCacheFlag.d.ts +4 -4
- package/functions/collectibleCacheFlag.lua +6 -6
- package/functions/collectibleSet.lua +5 -5
- package/functions/collectibleTag.lua +6 -6
- package/functions/collectibles.lua +15 -15
- package/functions/color.d.ts +17 -3
- package/functions/color.lua +5 -5
- package/functions/debug.lua +1 -1
- package/functions/deepCopy.lua +13 -13
- package/functions/deepCopyTests.lua +6 -6
- package/functions/direction.lua +3 -3
- package/functions/doors.lua +6 -6
- package/functions/eden.lua +5 -5
- package/functions/entity.lua +5 -5
- package/functions/entitySpecific.d.ts +15 -1
- package/functions/entitySpecific.lua +10 -2
- package/functions/enums.d.ts +3 -3
- package/functions/enums.lua +2 -2
- package/functions/familiars.lua +2 -2
- package/functions/flying.lua +2 -2
- package/functions/globals.lua +3 -3
- package/functions/gridEntity.lua +10 -10
- package/functions/gridEntitySpecific.lua +2 -2
- package/functions/input.lua +4 -4
- package/functions/jsonHelpers.lua +1 -1
- package/functions/jsonRoom.d.ts +1 -1
- package/functions/jsonRoom.lua +4 -4
- package/functions/kColor.d.ts +1 -1
- package/functions/kColor.lua +5 -5
- package/functions/level.lua +3 -3
- package/functions/log.lua +15 -15
- package/functions/math.lua +1 -1
- package/functions/mergeTests.lua +7 -7
- package/functions/npc.lua +3 -3
- package/functions/pickups.lua +6 -6
- package/functions/pills.lua +15 -15
- package/functions/player.lua +11 -11
- package/functions/playerDataStructures.d.ts +51 -0
- package/functions/playerDataStructures.lua +5 -1
- package/functions/playerHealth.d.ts +1 -1
- package/functions/playerHealth.lua +4 -4
- package/functions/playerIndex.lua +1 -1
- package/functions/pocketItems.d.ts +1 -1
- package/functions/pocketItems.lua +3 -3
- package/functions/positionVelocity.lua +6 -6
- package/functions/random.lua +1 -1
- package/functions/revive.lua +6 -6
- package/functions/rng.d.ts +1 -1
- package/functions/rng.lua +6 -6
- package/functions/roomData.lua +4 -4
- package/functions/roomGrid.lua +3 -3
- package/functions/roomShape.lua +8 -8
- package/functions/rooms.lua +12 -12
- package/functions/run.lua +4 -4
- package/functions/seeds.lua +2 -2
- package/functions/serialization.lua +5 -5
- package/functions/set.lua +2 -2
- package/functions/sound.lua +2 -2
- package/functions/spawnCollectible.lua +10 -10
- package/functions/sprite.lua +3 -3
- package/functions/stage.lua +2 -2
- package/functions/transformations.lua +6 -6
- package/functions/trinketCacheFlag.lua +3 -3
- package/functions/trinketGive.d.ts +1 -1
- package/functions/trinketGive.lua +3 -3
- package/functions/trinkets.d.ts +3 -3
- package/functions/trinkets.lua +14 -14
- package/functions/tstlClass.lua +1 -1
- package/functions/ui.lua +3 -3
- package/functions/utils.d.ts +2 -2
- package/functions/utils.lua +1 -1
- package/functions/vector.d.ts +1 -1
- package/functions/vector.lua +5 -5
- package/index.d.ts +14 -13
- package/index.lua +123 -123
- package/initCustomCallbacks.lua +58 -58
- package/initFeatures.lua +19 -19
- package/{types → interfaces}/AddCallbackParameterCustom.d.ts +0 -0
- package/{types → interfaces}/AddCallbackParameterCustom.lua +1 -1
- package/interfaces/ChargeBarSprites.d.ts +13 -0
- package/{types/JSONDoor.lua → interfaces/ChargeBarSprites.lua} +0 -0
- package/{types → interfaces}/JSONDoor.d.ts +1 -0
- package/{types/JSONEntity.lua → interfaces/JSONDoor.lua} +0 -0
- package/{types → interfaces}/JSONEntity.d.ts +1 -0
- package/{types/JSONRoom.lua → interfaces/JSONEntity.lua} +0 -0
- package/{types → interfaces}/JSONRoom.d.ts +1 -5
- package/{types/JSONRooms.lua → interfaces/JSONRoom.lua} +0 -0
- package/{types → interfaces}/JSONRooms.d.ts +0 -0
- package/{types/JSONSpawn.lua → interfaces/JSONRooms.lua} +0 -0
- package/{types → interfaces}/JSONSpawn.d.ts +1 -0
- package/{types/PlayerHealth.lua → interfaces/JSONSpawn.lua} +0 -0
- package/{types → interfaces}/PlayerHealth.d.ts +1 -0
- package/{types/PocketItemDescription.lua → interfaces/PlayerHealth.lua} +0 -0
- package/{types → interfaces}/PocketItemDescription.d.ts +1 -0
- package/{types/Primitive.lua → interfaces/PocketItemDescription.lua} +0 -0
- package/interfaces/SaveData.d.ts +29 -0
- package/{types/private → interfaces}/SaveData.lua +0 -0
- package/{types → interfaces}/TrinketSituation.d.ts +1 -0
- package/{types → interfaces}/TrinketSituation.lua +0 -0
- package/{types → interfaces}/private/TSTLClassMetatable.d.ts +0 -0
- package/{types → interfaces}/private/TSTLClassMetatable.lua +0 -0
- package/maps/cardMap.lua +85 -85
- package/maps/characterMap.lua +58 -58
- package/maps/defaultPlayerStatMap.lua +1 -1
- package/maps/pillEffectMap.lua +39 -39
- package/maps/roomTypeMap.lua +12 -12
- package/objects/LRoomShapeToRectangles.lua +1 -1
- package/objects/callbackRegisterFunctions.d.ts +1 -1
- package/objects/callbackRegisterFunctions.lua +76 -76
- package/objects/directionToVector.lua +1 -1
- package/objects/isaacAPIClassTypeToBrand.lua +2 -2
- package/objects/isaacAPIClassTypeToCopyFunction.lua +5 -5
- package/objects/roomShapeBounds.lua +1 -1
- package/objects/roomShapeLayoutSizes.lua +1 -1
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +1 -1
- package/objects/roomShapeToTopLeftPosition.lua +1 -1
- package/objects/roomTypeNames.lua +1 -1
- package/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +5 -5
- package/package.json +2 -2
- package/patchErrorFunctions.lua +1 -1
- package/types/CollectibleIndex.d.ts +2 -2
- package/types/PickingUpItem.d.ts +12 -2
- package/types/PickingUpItem.lua +3 -0
- package/types/PlayerIndex.d.ts +2 -2
- package/types/private/IsaacAPIClass.d.ts +1 -1
- package/types/private/SerializedIsaacAPIClass.d.ts +1 -1
- package/types/private/TSTLClass.d.ts +1 -1
- package/upgradeMod.d.ts +2 -1
- package/upgradeMod.lua +7 -7
- package/types/Primitive.d.ts +0 -1
- package/types/private/SaveData.d.ts +0 -22
package/initCustomCallbacks.lua
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____customRevive = require("
|
|
2
|
+
local ____customRevive = require("callbacks.customRevive")
|
|
3
3
|
local customReviveCallbacksInit = ____customRevive.customReviveCallbacksInit
|
|
4
|
-
local ____itemPickup = require("
|
|
4
|
+
local ____itemPickup = require("callbacks.itemPickup")
|
|
5
5
|
local itemPickupCallbacksInit = ____itemPickup.itemPickupCallbacksInit
|
|
6
|
-
local ____postBombInitLate = require("
|
|
6
|
+
local ____postBombInitLate = require("callbacks.postBombInitLate")
|
|
7
7
|
local postBombInitLateCallbackInit = ____postBombInitLate.postBombInitLateCallbackInit
|
|
8
|
-
local ____postBoneSwing = require("
|
|
8
|
+
local ____postBoneSwing = require("callbacks.postBoneSwing")
|
|
9
9
|
local postBoneSwingCallbackInit = ____postBoneSwing.postBoneSwingCallbackInit
|
|
10
|
-
local ____postCollectibleInitFirst = require("
|
|
10
|
+
local ____postCollectibleInitFirst = require("callbacks.postCollectibleInitFirst")
|
|
11
11
|
local postCollectibleInitFirstCallbackInit = ____postCollectibleInitFirst.postCollectibleInitFirstCallbackInit
|
|
12
|
-
local ____postCursedTeleport = require("
|
|
12
|
+
local ____postCursedTeleport = require("callbacks.postCursedTeleport")
|
|
13
13
|
local postCursedTeleportCallbackInit = ____postCursedTeleport.postCursedTeleportCallbackInit
|
|
14
|
-
local ____postCustomDoorEnter = require("
|
|
14
|
+
local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
|
|
15
15
|
local postCustomDoorEnterCallbackInit = ____postCustomDoorEnter.postCustomDoorEnterCallbackInit
|
|
16
|
-
local ____postDoorRender = require("
|
|
16
|
+
local ____postDoorRender = require("callbacks.postDoorRender")
|
|
17
17
|
local postDoorRenderInit = ____postDoorRender.postDoorRenderInit
|
|
18
|
-
local ____postDoorUpdate = require("
|
|
18
|
+
local ____postDoorUpdate = require("callbacks.postDoorUpdate")
|
|
19
19
|
local postDoorUpdateInit = ____postDoorUpdate.postDoorUpdateInit
|
|
20
|
-
local ____postEffectInitLate = require("
|
|
20
|
+
local ____postEffectInitLate = require("callbacks.postEffectInitLate")
|
|
21
21
|
local postEffectInitLateCallbackInit = ____postEffectInitLate.postEffectInitLateCallbackInit
|
|
22
|
-
local ____postEffectStateChanged = require("
|
|
22
|
+
local ____postEffectStateChanged = require("callbacks.postEffectStateChanged")
|
|
23
23
|
local postEffectStateChangedCallbackInit = ____postEffectStateChanged.postEffectStateChangedCallbackInit
|
|
24
|
-
local ____postEsauJr = require("
|
|
24
|
+
local ____postEsauJr = require("callbacks.postEsauJr")
|
|
25
25
|
local postEsauJrCallbacksInit = ____postEsauJr.postEsauJrCallbacksInit
|
|
26
|
-
local ____postFamiliarInitLate = require("
|
|
26
|
+
local ____postFamiliarInitLate = require("callbacks.postFamiliarInitLate")
|
|
27
27
|
local postFamiliarInitLateCallbackInit = ____postFamiliarInitLate.postFamiliarInitLateCallbackInit
|
|
28
|
-
local ____postFamiliarStateChanged = require("
|
|
28
|
+
local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged")
|
|
29
29
|
local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
|
|
30
|
-
local ____postFlip = require("
|
|
30
|
+
local ____postFlip = require("callbacks.postFlip")
|
|
31
31
|
local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
|
|
32
|
-
local ____postGreedModeWave = require("
|
|
32
|
+
local ____postGreedModeWave = require("callbacks.postGreedModeWave")
|
|
33
33
|
local postGreedModeWaveCallbackInit = ____postGreedModeWave.postGreedModeWaveCallbackInit
|
|
34
|
-
local ____postGridEntity = require("
|
|
34
|
+
local ____postGridEntity = require("callbacks.postGridEntity")
|
|
35
35
|
local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
|
|
36
|
-
local ____postGridEntityCollision = require("
|
|
36
|
+
local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
|
|
37
37
|
local postGridEntityCollisionInit = ____postGridEntityCollision.postGridEntityCollisionInit
|
|
38
|
-
local ____postGridEntityRender = require("
|
|
38
|
+
local ____postGridEntityRender = require("callbacks.postGridEntityRender")
|
|
39
39
|
local postGridEntityRenderInit = ____postGridEntityRender.postGridEntityRenderInit
|
|
40
|
-
local ____postHolyMantleRemoved = require("
|
|
40
|
+
local ____postHolyMantleRemoved = require("callbacks.postHolyMantleRemoved")
|
|
41
41
|
local postHolyMantleRemovedCallbackInit = ____postHolyMantleRemoved.postHolyMantleRemovedCallbackInit
|
|
42
|
-
local ____postItemDischarged = require("
|
|
42
|
+
local ____postItemDischarged = require("callbacks.postItemDischarged")
|
|
43
43
|
local postItemDischargeCallbackInit = ____postItemDischarged.postItemDischargeCallbackInit
|
|
44
|
-
local ____postKnifeInitLate = require("
|
|
44
|
+
local ____postKnifeInitLate = require("callbacks.postKnifeInitLate")
|
|
45
45
|
local postKnifeInitLateCallbackInit = ____postKnifeInitLate.postKnifeInitLateCallbackInit
|
|
46
|
-
local ____postLaserInitLate = require("
|
|
46
|
+
local ____postLaserInitLate = require("callbacks.postLaserInitLate")
|
|
47
47
|
local postLaserInitLateCallbackInit = ____postLaserInitLate.postLaserInitLateCallbackInit
|
|
48
|
-
local ____postNPCInitLate = require("
|
|
48
|
+
local ____postNPCInitLate = require("callbacks.postNPCInitLate")
|
|
49
49
|
local postNPCInitLateCallbackInit = ____postNPCInitLate.postNPCInitLateCallbackInit
|
|
50
|
-
local ____postNPCStateChanged = require("
|
|
50
|
+
local ____postNPCStateChanged = require("callbacks.postNPCStateChanged")
|
|
51
51
|
local postNPCStateChangedCallbackInit = ____postNPCStateChanged.postNPCStateChangedCallbackInit
|
|
52
|
-
local ____postPickupCollect = require("
|
|
52
|
+
local ____postPickupCollect = require("callbacks.postPickupCollect")
|
|
53
53
|
local postPickupCollectCallbackInit = ____postPickupCollect.postPickupCollectCallbackInit
|
|
54
|
-
local ____postPickupInitLate = require("
|
|
54
|
+
local ____postPickupInitLate = require("callbacks.postPickupInitLate")
|
|
55
55
|
local postPickupInitLateCallbackInit = ____postPickupInitLate.postPickupInitLateCallbackInit
|
|
56
|
-
local ____postPickupStateChanged = require("
|
|
56
|
+
local ____postPickupStateChanged = require("callbacks.postPickupStateChanged")
|
|
57
57
|
local postPickupStateChangedCallbackInit = ____postPickupStateChanged.postPickupStateChangedCallbackInit
|
|
58
|
-
local ____postPitRender = require("
|
|
58
|
+
local ____postPitRender = require("callbacks.postPitRender")
|
|
59
59
|
local postPitRenderInit = ____postPitRender.postPitRenderInit
|
|
60
|
-
local ____postPitUpdate = require("
|
|
60
|
+
local ____postPitUpdate = require("callbacks.postPitUpdate")
|
|
61
61
|
local postPitUpdateInit = ____postPitUpdate.postPitUpdateInit
|
|
62
|
-
local ____postPlayerChangeHealth = require("
|
|
62
|
+
local ____postPlayerChangeHealth = require("callbacks.postPlayerChangeHealth")
|
|
63
63
|
local postPlayerChangeHealthCallbackInit = ____postPlayerChangeHealth.postPlayerChangeHealthCallbackInit
|
|
64
|
-
local ____postPlayerChangeType = require("
|
|
64
|
+
local ____postPlayerChangeType = require("callbacks.postPlayerChangeType")
|
|
65
65
|
local postPlayerChangeTypeCallbackInit = ____postPlayerChangeType.postPlayerChangeTypeCallbackInit
|
|
66
|
-
local ____postPlayerFatalDamage = require("
|
|
66
|
+
local ____postPlayerFatalDamage = require("callbacks.postPlayerFatalDamage")
|
|
67
67
|
local postPlayerFatalDamageCallbackInit = ____postPlayerFatalDamage.postPlayerFatalDamageCallbackInit
|
|
68
|
-
local ____postPlayerInitLate = require("
|
|
68
|
+
local ____postPlayerInitLate = require("callbacks.postPlayerInitLate")
|
|
69
69
|
local postPlayerInitLateCallbackInit = ____postPlayerInitLate.postPlayerInitLateCallbackInit
|
|
70
|
-
local ____postPlayerReordered = require("
|
|
70
|
+
local ____postPlayerReordered = require("callbacks.postPlayerReordered")
|
|
71
71
|
local postPlayerReorderedCallbacksInit = ____postPlayerReordered.postPlayerReorderedCallbacksInit
|
|
72
|
-
local ____postPoopRender = require("
|
|
72
|
+
local ____postPoopRender = require("callbacks.postPoopRender")
|
|
73
73
|
local postPoopRenderInit = ____postPoopRender.postPoopRenderInit
|
|
74
|
-
local ____postPoopUpdate = require("
|
|
74
|
+
local ____postPoopUpdate = require("callbacks.postPoopUpdate")
|
|
75
75
|
local postPoopUpdateInit = ____postPoopUpdate.postPoopUpdateInit
|
|
76
|
-
local ____postPressurePlateRender = require("
|
|
76
|
+
local ____postPressurePlateRender = require("callbacks.postPressurePlateRender")
|
|
77
77
|
local postPressurePlateRenderInit = ____postPressurePlateRender.postPressurePlateRenderInit
|
|
78
|
-
local ____postPressurePlateUpdate = require("
|
|
78
|
+
local ____postPressurePlateUpdate = require("callbacks.postPressurePlateUpdate")
|
|
79
79
|
local postPressurePlateUpdateInit = ____postPressurePlateUpdate.postPressurePlateUpdateInit
|
|
80
|
-
local ____postProjectileInitLate = require("
|
|
80
|
+
local ____postProjectileInitLate = require("callbacks.postProjectileInitLate")
|
|
81
81
|
local postProjectileInitLateCallbackInit = ____postProjectileInitLate.postProjectileInitLateCallbackInit
|
|
82
|
-
local ____postPurchase = require("
|
|
82
|
+
local ____postPurchase = require("callbacks.postPurchase")
|
|
83
83
|
local postPurchaseCallbackInit = ____postPurchase.postPurchaseCallbackInit
|
|
84
|
-
local ____postRockRender = require("
|
|
84
|
+
local ____postRockRender = require("callbacks.postRockRender")
|
|
85
85
|
local postRockRenderInit = ____postRockRender.postRockRenderInit
|
|
86
|
-
local ____postRockUpdate = require("
|
|
86
|
+
local ____postRockUpdate = require("callbacks.postRockUpdate")
|
|
87
87
|
local postRockUpdateInit = ____postRockUpdate.postRockUpdateInit
|
|
88
|
-
local ____postRoomClearChanged = require("
|
|
88
|
+
local ____postRoomClearChanged = require("callbacks.postRoomClearChanged")
|
|
89
89
|
local postRoomClearChangedCallbackInit = ____postRoomClearChanged.postRoomClearChangedCallbackInit
|
|
90
|
-
local ____postSacrifice = require("
|
|
90
|
+
local ____postSacrifice = require("callbacks.postSacrifice")
|
|
91
91
|
local postSacrificeCallbackInit = ____postSacrifice.postSacrificeCallbackInit
|
|
92
|
-
local ____postSlotInitUpdate = require("
|
|
92
|
+
local ____postSlotInitUpdate = require("callbacks.postSlotInitUpdate")
|
|
93
93
|
local postSlotInitUpdateCallbacksInit = ____postSlotInitUpdate.postSlotInitUpdateCallbacksInit
|
|
94
|
-
local ____postSlotRender = require("
|
|
94
|
+
local ____postSlotRender = require("callbacks.postSlotRender")
|
|
95
95
|
local postSlotRenderCallbacksInit = ____postSlotRender.postSlotRenderCallbacksInit
|
|
96
|
-
local ____postSpikesRender = require("
|
|
96
|
+
local ____postSpikesRender = require("callbacks.postSpikesRender")
|
|
97
97
|
local postSpikesRenderInit = ____postSpikesRender.postSpikesRenderInit
|
|
98
|
-
local ____postSpikesUpdate = require("
|
|
98
|
+
local ____postSpikesUpdate = require("callbacks.postSpikesUpdate")
|
|
99
99
|
local postSpikesUpdateInit = ____postSpikesUpdate.postSpikesUpdateInit
|
|
100
|
-
local ____postTearInitLate = require("
|
|
100
|
+
local ____postTearInitLate = require("callbacks.postTearInitLate")
|
|
101
101
|
local postTearInitLateCallbackInit = ____postTearInitLate.postTearInitLateCallbackInit
|
|
102
|
-
local ____postTearInitVeryLate = require("
|
|
102
|
+
local ____postTearInitVeryLate = require("callbacks.postTearInitVeryLate")
|
|
103
103
|
local postTearInitVeryLateCallbackInit = ____postTearInitVeryLate.postTearInitVeryLateCallbackInit
|
|
104
|
-
local ____postTNTRender = require("
|
|
104
|
+
local ____postTNTRender = require("callbacks.postTNTRender")
|
|
105
105
|
local postTNTRenderInit = ____postTNTRender.postTNTRenderInit
|
|
106
|
-
local ____postTNTUpdate = require("
|
|
106
|
+
local ____postTNTUpdate = require("callbacks.postTNTUpdate")
|
|
107
107
|
local postTNTUpdateInit = ____postTNTUpdate.postTNTUpdateInit
|
|
108
|
-
local ____postTransformation = require("
|
|
108
|
+
local ____postTransformation = require("callbacks.postTransformation")
|
|
109
109
|
local postTransformationCallbackInit = ____postTransformation.postTransformationCallbackInit
|
|
110
|
-
local ____postTrinketBreak = require("
|
|
110
|
+
local ____postTrinketBreak = require("callbacks.postTrinketBreak")
|
|
111
111
|
local postTrinketBreakCallbackInit = ____postTrinketBreak.postTrinketBreakCallbackInit
|
|
112
|
-
local ____preBerserkDeath = require("
|
|
112
|
+
local ____preBerserkDeath = require("callbacks.preBerserkDeath")
|
|
113
113
|
local preBerserkDeathCallbackInit = ____preBerserkDeath.preBerserkDeathCallbackInit
|
|
114
|
-
local ____preNewLevel = require("
|
|
114
|
+
local ____preNewLevel = require("callbacks.preNewLevel")
|
|
115
115
|
local preNewLevelCallbackInit = ____preNewLevel.preNewLevelCallbackInit
|
|
116
|
-
local ____reorderedCallbacks = require("
|
|
116
|
+
local ____reorderedCallbacks = require("callbacks.reorderedCallbacks")
|
|
117
117
|
local reorderedCallbacksInit = ____reorderedCallbacks.reorderedCallbacksInit
|
|
118
118
|
function ____exports.initCustomCallbacks(self, mod)
|
|
119
119
|
customReviveCallbacksInit(nil, mod)
|
package/initFeatures.lua
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____characterHealthConversion = require("
|
|
2
|
+
local ____characterHealthConversion = require("features.characterHealthConversion")
|
|
3
3
|
local characterHealthConversionInit = ____characterHealthConversion.characterHealthConversionInit
|
|
4
|
-
local ____characterStats = require("
|
|
4
|
+
local ____characterStats = require("features.characterStats")
|
|
5
5
|
local characterStatsInit = ____characterStats.characterStatsInit
|
|
6
|
-
local ____deployJSONRoom = require("
|
|
6
|
+
local ____deployJSONRoom = require("features.deployJSONRoom")
|
|
7
7
|
local deployJSONRoomInit = ____deployJSONRoom.deployJSONRoomInit
|
|
8
|
-
local ____disableInputs = require("
|
|
8
|
+
local ____disableInputs = require("features.disableInputs")
|
|
9
9
|
local disableInputsInit = ____disableInputs.disableInputsInit
|
|
10
|
-
local ____disableSound = require("
|
|
10
|
+
local ____disableSound = require("features.disableSound")
|
|
11
11
|
local disableSoundsInit = ____disableSound.disableSoundsInit
|
|
12
|
-
local ____fadeInRemover = require("
|
|
12
|
+
local ____fadeInRemover = require("features.fadeInRemover")
|
|
13
13
|
local fadeInRemoverInit = ____fadeInRemover.fadeInRemoverInit
|
|
14
|
-
local ____fastReset = require("
|
|
14
|
+
local ____fastReset = require("features.fastReset")
|
|
15
15
|
local fastResetInit = ____fastReset.fastResetInit
|
|
16
|
-
local ____forgottenSwitch = require("
|
|
16
|
+
local ____forgottenSwitch = require("features.forgottenSwitch")
|
|
17
17
|
local forgottenSwitchInit = ____forgottenSwitch.forgottenSwitchInit
|
|
18
|
-
local ____getCollectibleItemPoolType = require("
|
|
18
|
+
local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolType")
|
|
19
19
|
local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
|
|
20
|
-
local
|
|
21
|
-
local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
|
|
22
|
-
local ____playerInventory = require("packages.isaacscript-common.src.features.playerInventory")
|
|
20
|
+
local ____playerInventory = require("features.playerInventory")
|
|
23
21
|
local playerInventoryInit = ____playerInventory.playerInventoryInit
|
|
24
|
-
local
|
|
25
|
-
local
|
|
26
|
-
local
|
|
22
|
+
local ____ponyDetection = require("features.ponyDetection")
|
|
23
|
+
local ponyDetectionInit = ____ponyDetection.ponyDetectionInit
|
|
24
|
+
local ____preventCollectibleRotation = require("features.preventCollectibleRotation")
|
|
25
|
+
local preventCollectibleRotationInit = ____preventCollectibleRotation.preventCollectibleRotationInit
|
|
26
|
+
local ____runInNFrames = require("features.runInNFrames")
|
|
27
27
|
local runInNFramesInit = ____runInNFrames.runInNFramesInit
|
|
28
|
-
local ____sirenHelpers = require("
|
|
28
|
+
local ____sirenHelpers = require("features.sirenHelpers")
|
|
29
29
|
local sirenHelpersInit = ____sirenHelpers.sirenHelpersInit
|
|
30
|
-
local ____taintedLazarusPlayers = require("
|
|
30
|
+
local ____taintedLazarusPlayers = require("features.taintedLazarusPlayers")
|
|
31
31
|
local taintedLazarusPlayersInit = ____taintedLazarusPlayers.taintedLazarusPlayersInit
|
|
32
32
|
function ____exports.initFeaturesMajor(self, mod)
|
|
33
33
|
deployJSONRoomInit(nil, mod)
|
|
@@ -42,9 +42,9 @@ function ____exports.initFeaturesMinor(self, mod)
|
|
|
42
42
|
fastResetInit(nil, mod)
|
|
43
43
|
forgottenSwitchInit(nil, mod)
|
|
44
44
|
getCollectibleItemPoolTypeInit(nil, mod)
|
|
45
|
-
isPonyActiveInit(nil, mod)
|
|
46
45
|
playerInventoryInit(nil, mod)
|
|
47
|
-
|
|
46
|
+
ponyDetectionInit(nil, mod)
|
|
47
|
+
preventCollectibleRotationInit(nil, mod)
|
|
48
48
|
sirenHelpersInit(nil, mod)
|
|
49
49
|
taintedLazarusPlayersInit(nil, mod)
|
|
50
50
|
end
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
|
-
local ____ModCallbackCustom = require("
|
|
2
|
+
local ____ModCallbackCustom = require("enums.ModCallbackCustom")
|
|
3
3
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
4
4
|
return ____exports
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/**
|
|
3
|
+
* A collection of the four sprites necessary in order to render a charge bar.
|
|
4
|
+
*
|
|
5
|
+
* Used in the `newChargeBarSprites` and related helper functions.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChargeBarSprites {
|
|
8
|
+
back: Sprite;
|
|
9
|
+
meter: Sprite;
|
|
10
|
+
meterBattery: Sprite;
|
|
11
|
+
lines: Sprite;
|
|
12
|
+
maxCharges: int;
|
|
13
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { JSONDoor } from "./JSONDoor";
|
|
2
2
|
import { JSONSpawn } from "./JSONSpawn";
|
|
3
|
-
/**
|
|
4
|
-
* Custom rooms are created with the Basement Renovator program, which outputs XML files and STB
|
|
5
|
-
* files. A `JSONRoom` is simply an XML room converted to JSON. You can convert your XML files using
|
|
6
|
-
* the following command: `npx convert-xml-to-json foo.xml foo.json`
|
|
7
|
-
*/
|
|
3
|
+
/** Part of {@link JSONRooms}. */
|
|
8
4
|
export interface JSONRoom {
|
|
9
5
|
$: {
|
|
10
6
|
/** Needs to be converted to an int. */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PocketItemSlot } from "isaac-typescript-definitions";
|
|
2
2
|
import { PocketItemType } from "../enums/PocketItemType";
|
|
3
|
+
/** Used by the `getPocketItems` and related helper functions. */
|
|
3
4
|
export interface PocketItemDescription {
|
|
4
5
|
slot: PocketItemSlot;
|
|
5
6
|
type: PocketItemType;
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is the format of the object that you give to the save data manager. It will contains all of
|
|
3
|
+
* the variables for the particular mod feature.
|
|
4
|
+
*
|
|
5
|
+
* Depending on which object keys you use, the variables will be automatically reset at certain
|
|
6
|
+
* times and automatically saved to disk.
|
|
7
|
+
*
|
|
8
|
+
* Each sub-object of save data has a string as a key and arbitrary data as a value. However, the
|
|
9
|
+
* data has to be serializable. Specifically, this means that you can only use the following types:
|
|
10
|
+
*
|
|
11
|
+
* - `boolean`
|
|
12
|
+
* - `number`
|
|
13
|
+
* - `string`
|
|
14
|
+
* - `Map` / `DefaultMap`
|
|
15
|
+
* - `Set`
|
|
16
|
+
* - serializable Isaac API classes (such as `Color`)
|
|
17
|
+
* - TSTL classes (i.e. classes that you made yourself)
|
|
18
|
+
* - sub-objects or a `LuaTable` that contains the above values
|
|
19
|
+
*
|
|
20
|
+
* (Unfortunately, it is not possible to create a recursive type definition that matches these
|
|
21
|
+
* properties. This means that the TypeScript compiler will not be able to validate that you are
|
|
22
|
+
* passing in serializable data.)
|
|
23
|
+
*/
|
|
24
|
+
export interface SaveData {
|
|
25
|
+
persistent?: Record<string, unknown>;
|
|
26
|
+
run?: Record<string, unknown>;
|
|
27
|
+
level?: Record<string, unknown>;
|
|
28
|
+
room?: Record<string, unknown>;
|
|
29
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|