isaacscript-common 1.2.151 → 1.2.154
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/callbacks/postCustomDoorEnter.d.ts +27 -3
- package/dist/callbacks/postCustomDoorEnter.lua +133 -11
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +1 -1
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +12 -6
- package/dist/features/extraConsoleCommands/commands.lua +4 -4
- package/dist/features/runInNFrames.d.ts +2 -2
- package/dist/features/runInNFrames.lua +7 -7
- package/dist/features/saveDataManager/load.lua +2 -2
- package/dist/functions/cards.lua +12 -12
- package/dist/functions/challenges.lua +4 -4
- package/dist/functions/doors.d.ts +1 -0
- package/dist/functions/doors.lua +7 -2
- package/dist/functions/log.lua +4 -0
- package/dist/functions/math.lua +4 -44
- package/dist/functions/pills.lua +12 -12
- package/dist/functions/player.lua +4 -4
- package/dist/functions/stage.lua +3 -46
- package/dist/functions/transformations.lua +4 -4
- package/dist/functions/vector.lua +3 -40
- package/dist/index.d.ts +1 -16
- package/dist/index.lua +2 -120
- package/dist/objects/callbackRegisterFunctions.d.ts +4 -0
- package/dist/objects/callbackRegisterFunctions.lua +160 -0
- package/dist/objects/cardDescriptions.d.ts +5 -0
- package/dist/objects/cardDescriptions.lua +106 -0
- package/dist/objects/cardNames.d.ts +5 -0
- package/dist/objects/cardNames.lua +106 -0
- package/dist/objects/cardTypes.d.ts +6 -0
- package/dist/objects/cardTypes.lua +108 -0
- package/dist/objects/challengeNames.d.ts +5 -0
- package/dist/objects/challengeNames.lua +53 -0
- package/dist/objects/characterNames.d.ts +5 -0
- package/dist/objects/characterNames.lua +49 -0
- package/dist/objects/directionToVector.d.ts +4 -0
- package/dist/objects/directionToVector.lua +10 -0
- package/dist/objects/doorSlotToDirection.d.ts +4 -0
- package/dist/objects/doorSlotToDirection.lua +15 -0
- package/dist/objects/pillEffectClasses.d.ts +6 -0
- package/dist/objects/pillEffectClasses.lua +61 -0
- package/dist/objects/pillEffectNames.d.ts +5 -0
- package/dist/objects/pillEffectNames.lua +58 -0
- package/dist/objects/pillEffectTypes.d.ts +6 -0
- package/dist/objects/pillEffectTypes.lua +60 -0
- package/dist/objects/roomTypeNames.d.ts +5 -0
- package/dist/objects/roomTypeNames.lua +37 -0
- package/dist/objects/stageTypeToLetter.d.ts +4 -0
- package/dist/objects/stageTypeToLetter.lua +11 -0
- package/dist/objects/transformationNames.d.ts +5 -0
- package/dist/objects/transformationNames.lua +22 -0
- package/dist/types/ModUpgraded.d.ts +2 -2
- package/dist/types/ModUpgraded.lua +5 -425
- package/dist/upgradeMod.lua +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
____exports.DEFAULT_TRANSFORMATION_NAME = "Unknown"
|
|
4
|
+
____exports.TRANSFORMATION_NAMES = {
|
|
5
|
+
[PlayerForm.PLAYERFORM_GUPPY] = "Guppy",
|
|
6
|
+
[PlayerForm.PLAYERFORM_LORD_OF_THE_FLIES] = "Beelzebub",
|
|
7
|
+
[PlayerForm.PLAYERFORM_MUSHROOM] = "Fun Guy",
|
|
8
|
+
[PlayerForm.PLAYERFORM_ANGEL] = "Seraphim",
|
|
9
|
+
[PlayerForm.PLAYERFORM_BOB] = "Bob",
|
|
10
|
+
[PlayerForm.PLAYERFORM_DRUGS] = "Spun",
|
|
11
|
+
[PlayerForm.PLAYERFORM_MOM] = "Yes Mother?",
|
|
12
|
+
[PlayerForm.PLAYERFORM_BABY] = "Conjoined",
|
|
13
|
+
[PlayerForm.PLAYERFORM_EVIL_ANGEL] = "Leviathan",
|
|
14
|
+
[PlayerForm.PLAYERFORM_POOP] = "Oh Crap",
|
|
15
|
+
[PlayerForm.PLAYERFORM_BOOK_WORM] = "Bookworm",
|
|
16
|
+
[PlayerForm.PLAYERFORM_ADULTHOOD] = "Adult",
|
|
17
|
+
[PlayerForm.PLAYERFORM_SPIDERBABY] = "Spider Baby",
|
|
18
|
+
[PlayerForm.PLAYERFORM_STOMPY] = "Stompy",
|
|
19
|
+
[PlayerForm.PLAYERFORM_FLIGHT] = "Flight",
|
|
20
|
+
[PlayerForm.NUM_PLAYER_FORMS] = ____exports.DEFAULT_TRANSFORMATION_NAME
|
|
21
|
+
}
|
|
22
|
+
return ____exports
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { CallbackParametersCustom } from "./CallbackParametersCustom";
|
|
3
3
|
/** `isaacscript-common` allows for custom callbacks, so it provides an upgraded Mod object. */
|
|
4
4
|
export declare class ModUpgraded implements Mod {
|
|
5
|
+
Name: string;
|
|
5
6
|
/** We store a copy of the original mod object so that we can re-implement its functions. */
|
|
6
7
|
Mod: Mod;
|
|
7
8
|
/** End-users can optionally enable verbose-mode, which helps troubleshoot crashes. */
|
|
8
9
|
Verbose: boolean;
|
|
10
|
+
constructor(mod: Mod, verbose: boolean);
|
|
9
11
|
AddCallback<T extends keyof CallbackParameters>(callbackID: T, ...args: CallbackParameters[T]): void;
|
|
10
12
|
HasData(): boolean;
|
|
11
13
|
LoadData(): string;
|
|
12
14
|
RemoveCallback(callbackID: ModCallbacks, callback: () => void): void;
|
|
13
15
|
RemoveData(): void;
|
|
14
16
|
SaveData(data: string): void;
|
|
15
|
-
Name: string;
|
|
16
17
|
AddCallbackCustom<T extends keyof CallbackParametersCustom>(callbackID: T, ...args: CallbackParametersCustom[T]): void;
|
|
17
|
-
constructor(mod: Mod, verbose: boolean);
|
|
18
18
|
}
|
|
@@ -4,115 +4,11 @@ local __TS__Class = ____lualib.__TS__Class
|
|
|
4
4
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
5
5
|
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
6
6
|
local ____exports = {}
|
|
7
|
-
local getCallbackName
|
|
8
|
-
local ____postBombInitLate = require("callbacks.subscriptions.postBombInitLate")
|
|
9
|
-
local postBombInitLateRegister = ____postBombInitLate.postBombInitLateRegister
|
|
10
|
-
local ____postBoneSwing = require("callbacks.subscriptions.postBoneSwing")
|
|
11
|
-
local postBoneSwingRegister = ____postBoneSwing.postBoneSwingRegister
|
|
12
|
-
local ____postCursedTeleport = require("callbacks.subscriptions.postCursedTeleport")
|
|
13
|
-
local postCursedTeleportRegister = ____postCursedTeleport.postCursedTeleportRegister
|
|
14
|
-
local ____postCustomDoorEnter = require("callbacks.subscriptions.postCustomDoorEnter")
|
|
15
|
-
local postCustomDoorEnterRegister = ____postCustomDoorEnter.postCustomDoorEnterRegister
|
|
16
|
-
local ____postCustomRevive = require("callbacks.subscriptions.postCustomRevive")
|
|
17
|
-
local postCustomReviveRegister = ____postCustomRevive.postCustomReviveRegister
|
|
18
|
-
local ____postEffectInitLate = require("callbacks.subscriptions.postEffectInitLate")
|
|
19
|
-
local postEffectInitLateRegister = ____postEffectInitLate.postEffectInitLateRegister
|
|
20
|
-
local ____postEsauJr = require("callbacks.subscriptions.postEsauJr")
|
|
21
|
-
local postEsauJrRegister = ____postEsauJr.postEsauJrRegister
|
|
22
|
-
local ____postFamiliarInitLate = require("callbacks.subscriptions.postFamiliarInitLate")
|
|
23
|
-
local postFamiliarInitLateRegister = ____postFamiliarInitLate.postFamiliarInitLateRegister
|
|
24
|
-
local ____postFirstEsauJr = require("callbacks.subscriptions.postFirstEsauJr")
|
|
25
|
-
local postFirstEsauJrRegister = ____postFirstEsauJr.postFirstEsauJrRegister
|
|
26
|
-
local ____postFirstFlip = require("callbacks.subscriptions.postFirstFlip")
|
|
27
|
-
local postFirstFlipRegister = ____postFirstFlip.postFirstFlipRegister
|
|
28
|
-
local ____postFlip = require("callbacks.subscriptions.postFlip")
|
|
29
|
-
local postFlipRegister = ____postFlip.postFlipRegister
|
|
30
|
-
local ____postGameStartedReordered = require("callbacks.subscriptions.postGameStartedReordered")
|
|
31
|
-
local postGameStartedReorderedRegister = ____postGameStartedReordered.postGameStartedReorderedRegister
|
|
32
|
-
local ____postGridEntityBroken = require("callbacks.subscriptions.postGridEntityBroken")
|
|
33
|
-
local postGridEntityBrokenRegister = ____postGridEntityBroken.postGridEntityBrokenRegister
|
|
34
|
-
local ____postGridEntityCollision = require("callbacks.subscriptions.postGridEntityCollision")
|
|
35
|
-
local postGridEntityCollisionRegister = ____postGridEntityCollision.postGridEntityCollisionRegister
|
|
36
|
-
local ____postGridEntityInit = require("callbacks.subscriptions.postGridEntityInit")
|
|
37
|
-
local postGridEntityInitRegister = ____postGridEntityInit.postGridEntityInitRegister
|
|
38
|
-
local ____postGridEntityRemove = require("callbacks.subscriptions.postGridEntityRemove")
|
|
39
|
-
local postGridEntityRemoveRegister = ____postGridEntityRemove.postGridEntityRemoveRegister
|
|
40
|
-
local ____postGridEntityStateChange = require("callbacks.subscriptions.postGridEntityStateChange")
|
|
41
|
-
local postGridEntityStateChangeRegister = ____postGridEntityStateChange.postGridEntityStateChangeRegister
|
|
42
|
-
local ____postGridEntityUpdate = require("callbacks.subscriptions.postGridEntityUpdate")
|
|
43
|
-
local postGridEntityUpdateRegister = ____postGridEntityUpdate.postGridEntityUpdateRegister
|
|
44
|
-
local ____postItemPickup = require("callbacks.subscriptions.postItemPickup")
|
|
45
|
-
local postItemPickupRegister = ____postItemPickup.postItemPickupRegister
|
|
46
|
-
local ____postKnifeInitLate = require("callbacks.subscriptions.postKnifeInitLate")
|
|
47
|
-
local postKnifeInitLateRegister = ____postKnifeInitLate.postKnifeInitLateRegister
|
|
48
|
-
local ____postLaserInitLate = require("callbacks.subscriptions.postLaserInitLate")
|
|
49
|
-
local postLaserInitLateRegister = ____postLaserInitLate.postLaserInitLateRegister
|
|
50
|
-
local ____postNewLevelReordered = require("callbacks.subscriptions.postNewLevelReordered")
|
|
51
|
-
local postNewLevelReorderedRegister = ____postNewLevelReordered.postNewLevelReorderedRegister
|
|
52
|
-
local ____postNewRoomEarly = require("callbacks.subscriptions.postNewRoomEarly")
|
|
53
|
-
local postNewRoomEarlyRegister = ____postNewRoomEarly.postNewRoomEarlyRegister
|
|
54
|
-
local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReordered")
|
|
55
|
-
local postNewRoomReorderedRegister = ____postNewRoomReordered.postNewRoomReorderedRegister
|
|
56
|
-
local ____postNPCInitLate = require("callbacks.subscriptions.postNPCInitLate")
|
|
57
|
-
local postNPCInitLateRegister = ____postNPCInitLate.postNPCInitLateRegister
|
|
58
|
-
local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
|
|
59
|
-
local postPEffectUpdateReorderedRegister = ____postPEffectUpdateReordered.postPEffectUpdateReorderedRegister
|
|
60
|
-
local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
|
|
61
|
-
local postPickupCollectRegister = ____postPickupCollect.postPickupCollectRegister
|
|
62
|
-
local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
|
|
63
|
-
local postPickupInitLateRegister = ____postPickupInitLate.postPickupInitLateRegister
|
|
64
|
-
local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerChangeHealth")
|
|
65
|
-
local postPlayerChangeHealthRegister = ____postPlayerChangeHealth.postPlayerChangeHealthRegister
|
|
66
|
-
local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
|
|
67
|
-
local postPlayerChangeTypeRegister = ____postPlayerChangeType.postPlayerChangeTypeRegister
|
|
68
|
-
local ____postPlayerFatalDamage = require("callbacks.subscriptions.postPlayerFatalDamage")
|
|
69
|
-
local postPlayerFatalDamageRegister = ____postPlayerFatalDamage.postPlayerFatalDamageRegister
|
|
70
|
-
local ____postPlayerInitLate = require("callbacks.subscriptions.postPlayerInitLate")
|
|
71
|
-
local postPlayerInitLateRegister = ____postPlayerInitLate.postPlayerInitLateRegister
|
|
72
|
-
local ____postPlayerInitReordered = require("callbacks.subscriptions.postPlayerInitReordered")
|
|
73
|
-
local postPlayerInitReorderedRegister = ____postPlayerInitReordered.postPlayerInitReorderedRegister
|
|
74
|
-
local ____postPlayerRenderReordered = require("callbacks.subscriptions.postPlayerRenderReordered")
|
|
75
|
-
local postPlayerRenderReorderedRegister = ____postPlayerRenderReordered.postPlayerRenderReorderedRegister
|
|
76
|
-
local ____postPlayerUpdateReordered = require("callbacks.subscriptions.postPlayerUpdateReordered")
|
|
77
|
-
local postPlayerUpdateReorderedRegister = ____postPlayerUpdateReordered.postPlayerUpdateReorderedRegister
|
|
78
|
-
local ____postProjectileInitLate = require("callbacks.subscriptions.postProjectileInitLate")
|
|
79
|
-
local postProjectileInitLateRegister = ____postProjectileInitLate.postProjectileInitLateRegister
|
|
80
|
-
local ____postPurchase = require("callbacks.subscriptions.postPurchase")
|
|
81
|
-
local postPurchaseRegister = ____postPurchase.postPurchaseRegister
|
|
82
|
-
local ____postSacrifice = require("callbacks.subscriptions.postSacrifice")
|
|
83
|
-
local postSacrificeRegister = ____postSacrifice.postSacrificeRegister
|
|
84
|
-
local ____postSlotAnimationChanged = require("callbacks.subscriptions.postSlotAnimationChanged")
|
|
85
|
-
local postSlotAnimationChangedRegister = ____postSlotAnimationChanged.postSlotAnimationChangedRegister
|
|
86
|
-
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
87
|
-
local postSlotDestroyedRegister = ____postSlotDestroyed.postSlotDestroyedRegister
|
|
88
|
-
local ____postSlotInit = require("callbacks.subscriptions.postSlotInit")
|
|
89
|
-
local postSlotInitRegister = ____postSlotInit.postSlotInitRegister
|
|
90
|
-
local ____postSlotRender = require("callbacks.subscriptions.postSlotRender")
|
|
91
|
-
local postSlotRenderRegister = ____postSlotRender.postSlotRenderRegister
|
|
92
|
-
local ____postSlotUpdate = require("callbacks.subscriptions.postSlotUpdate")
|
|
93
|
-
local postSlotUpdateRegister = ____postSlotUpdate.postSlotUpdateRegister
|
|
94
|
-
local ____postTearInitLate = require("callbacks.subscriptions.postTearInitLate")
|
|
95
|
-
local postTearInitLateRegister = ____postTearInitLate.postTearInitLateRegister
|
|
96
|
-
local ____postTearInitVeryLate = require("callbacks.subscriptions.postTearInitVeryLate")
|
|
97
|
-
local postTearInitVeryLateRegister = ____postTearInitVeryLate.postTearInitVeryLateRegister
|
|
98
|
-
local ____postTransformation = require("callbacks.subscriptions.postTransformation")
|
|
99
|
-
local postTransformationRegister = ____postTransformation.postTransformationRegister
|
|
100
|
-
local ____postTrinketBreak = require("callbacks.subscriptions.postTrinketBreak")
|
|
101
|
-
local postTrinketBreakRegister = ____postTrinketBreak.postTrinketBreakRegister
|
|
102
|
-
local ____preBerserkDeath = require("callbacks.subscriptions.preBerserkDeath")
|
|
103
|
-
local preBerserkDeathRegister = ____preBerserkDeath.preBerserkDeathRegister
|
|
104
|
-
local ____preCustomRevive = require("callbacks.subscriptions.preCustomRevive")
|
|
105
|
-
local preCustomReviveRegister = ____preCustomRevive.preCustomReviveRegister
|
|
106
|
-
local ____preItemPickup = require("callbacks.subscriptions.preItemPickup")
|
|
107
|
-
local preItemPickupRegister = ____preItemPickup.preItemPickupRegister
|
|
108
|
-
local ____preNewLevel = require("callbacks.subscriptions.preNewLevel")
|
|
109
|
-
local preNewLevelRegister = ____preNewLevel.preNewLevelRegister
|
|
7
|
+
local getCallbackName
|
|
110
8
|
local ____log = require("functions.log")
|
|
111
9
|
local getDebugPrependString = ____log.getDebugPrependString
|
|
112
|
-
local
|
|
113
|
-
local
|
|
114
|
-
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
115
|
-
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
10
|
+
local ____callbackRegisterFunctions = require("objects.callbackRegisterFunctions")
|
|
11
|
+
local CALLBACK_REGISTER_FUNCTIONS = ____callbackRegisterFunctions.CALLBACK_REGISTER_FUNCTIONS
|
|
116
12
|
function getCallbackName(self, callbackID)
|
|
117
13
|
for ____, ____value in ipairs(__TS__ObjectEntries(ModCallbacks)) do
|
|
118
14
|
local key = ____value[1]
|
|
@@ -123,329 +19,13 @@ function getCallbackName(self, callbackID)
|
|
|
123
19
|
end
|
|
124
20
|
return "MC_UNKNOWN"
|
|
125
21
|
end
|
|
126
|
-
function getCallbackRegisterFunction(self, callbackID)
|
|
127
|
-
repeat
|
|
128
|
-
local ____switch19 = callbackID
|
|
129
|
-
local ____cond19 = ____switch19 == ModCallbacksCustom.MC_POST_GAME_STARTED_REORDERED
|
|
130
|
-
if ____cond19 then
|
|
131
|
-
do
|
|
132
|
-
return postGameStartedReorderedRegister
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_NEW_LEVEL_REORDERED
|
|
136
|
-
if ____cond19 then
|
|
137
|
-
do
|
|
138
|
-
return postNewLevelReorderedRegister
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED
|
|
142
|
-
if ____cond19 then
|
|
143
|
-
do
|
|
144
|
-
return postNewRoomReorderedRegister
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED
|
|
148
|
-
if ____cond19 then
|
|
149
|
-
do
|
|
150
|
-
return postPlayerInitReorderedRegister
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED
|
|
154
|
-
if ____cond19 then
|
|
155
|
-
do
|
|
156
|
-
return postPEffectUpdateReorderedRegister
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED
|
|
160
|
-
if ____cond19 then
|
|
161
|
-
do
|
|
162
|
-
return postPlayerUpdateReorderedRegister
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED
|
|
166
|
-
if ____cond19 then
|
|
167
|
-
do
|
|
168
|
-
return postPlayerRenderReorderedRegister
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY
|
|
172
|
-
if ____cond19 then
|
|
173
|
-
do
|
|
174
|
-
return postNewRoomEarlyRegister
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_PRE_NEW_LEVEL
|
|
178
|
-
if ____cond19 then
|
|
179
|
-
do
|
|
180
|
-
return preNewLevelRegister
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE
|
|
184
|
-
if ____cond19 then
|
|
185
|
-
do
|
|
186
|
-
return postPlayerInitLateRegister
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_TEAR_INIT_LATE
|
|
190
|
-
if ____cond19 then
|
|
191
|
-
do
|
|
192
|
-
return postTearInitLateRegister
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE
|
|
196
|
-
if ____cond19 then
|
|
197
|
-
do
|
|
198
|
-
return postTearInitVeryLateRegister
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE
|
|
202
|
-
if ____cond19 then
|
|
203
|
-
do
|
|
204
|
-
return postFamiliarInitLateRegister
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_BOMB_INIT_LATE
|
|
208
|
-
if ____cond19 then
|
|
209
|
-
do
|
|
210
|
-
return postBombInitLateRegister
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE
|
|
214
|
-
if ____cond19 then
|
|
215
|
-
do
|
|
216
|
-
return postPickupInitLateRegister
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_LASER_INIT_LATE
|
|
220
|
-
if ____cond19 then
|
|
221
|
-
do
|
|
222
|
-
return postLaserInitLateRegister
|
|
223
|
-
end
|
|
224
|
-
end
|
|
225
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE
|
|
226
|
-
if ____cond19 then
|
|
227
|
-
do
|
|
228
|
-
return postKnifeInitLateRegister
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE
|
|
232
|
-
if ____cond19 then
|
|
233
|
-
do
|
|
234
|
-
return postProjectileInitLateRegister
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_NPC_INIT_LATE
|
|
238
|
-
if ____cond19 then
|
|
239
|
-
do
|
|
240
|
-
return postNPCInitLateRegister
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE
|
|
244
|
-
if ____cond19 then
|
|
245
|
-
do
|
|
246
|
-
return postEffectInitLateRegister
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PICKUP_COLLECT
|
|
250
|
-
if ____cond19 then
|
|
251
|
-
do
|
|
252
|
-
return postPickupCollectRegister
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_PRE_ITEM_PICKUP
|
|
256
|
-
if ____cond19 then
|
|
257
|
-
do
|
|
258
|
-
return preItemPickupRegister
|
|
259
|
-
end
|
|
260
|
-
end
|
|
261
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_ITEM_PICKUP
|
|
262
|
-
if ____cond19 then
|
|
263
|
-
do
|
|
264
|
-
return postItemPickupRegister
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE
|
|
268
|
-
if ____cond19 then
|
|
269
|
-
do
|
|
270
|
-
return postPlayerChangeTypeRegister
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH
|
|
274
|
-
if ____cond19 then
|
|
275
|
-
do
|
|
276
|
-
return postPlayerChangeHealthRegister
|
|
277
|
-
end
|
|
278
|
-
end
|
|
279
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE
|
|
280
|
-
if ____cond19 then
|
|
281
|
-
do
|
|
282
|
-
return postPlayerFatalDamageRegister
|
|
283
|
-
end
|
|
284
|
-
end
|
|
285
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_PRE_BERSERK_DEATH
|
|
286
|
-
if ____cond19 then
|
|
287
|
-
do
|
|
288
|
-
return preBerserkDeathRegister
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE
|
|
292
|
-
if ____cond19 then
|
|
293
|
-
do
|
|
294
|
-
return preCustomReviveRegister
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_CUSTOM_REVIVE
|
|
298
|
-
if ____cond19 then
|
|
299
|
-
do
|
|
300
|
-
return postCustomReviveRegister
|
|
301
|
-
end
|
|
302
|
-
end
|
|
303
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_FLIP
|
|
304
|
-
if ____cond19 then
|
|
305
|
-
do
|
|
306
|
-
return postFlipRegister
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_FIRST_FLIP
|
|
310
|
-
if ____cond19 then
|
|
311
|
-
do
|
|
312
|
-
return postFirstFlipRegister
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_ESAU_JR
|
|
316
|
-
if ____cond19 then
|
|
317
|
-
do
|
|
318
|
-
return postEsauJrRegister
|
|
319
|
-
end
|
|
320
|
-
end
|
|
321
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_FIRST_ESAU_JR
|
|
322
|
-
if ____cond19 then
|
|
323
|
-
do
|
|
324
|
-
return postFirstEsauJrRegister
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_TRANSFORMATION
|
|
328
|
-
if ____cond19 then
|
|
329
|
-
do
|
|
330
|
-
return postTransformationRegister
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_PURCHASE
|
|
334
|
-
if ____cond19 then
|
|
335
|
-
do
|
|
336
|
-
return postPurchaseRegister
|
|
337
|
-
end
|
|
338
|
-
end
|
|
339
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SACRIFICE
|
|
340
|
-
if ____cond19 then
|
|
341
|
-
do
|
|
342
|
-
return postSacrificeRegister
|
|
343
|
-
end
|
|
344
|
-
end
|
|
345
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_CURSED_TELEPORT
|
|
346
|
-
if ____cond19 then
|
|
347
|
-
do
|
|
348
|
-
return postCursedTeleportRegister
|
|
349
|
-
end
|
|
350
|
-
end
|
|
351
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_TRINKET_BREAK
|
|
352
|
-
if ____cond19 then
|
|
353
|
-
do
|
|
354
|
-
return postTrinketBreakRegister
|
|
355
|
-
end
|
|
356
|
-
end
|
|
357
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_INIT
|
|
358
|
-
if ____cond19 then
|
|
359
|
-
do
|
|
360
|
-
return postSlotInitRegister
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_UPDATE
|
|
364
|
-
if ____cond19 then
|
|
365
|
-
do
|
|
366
|
-
return postSlotUpdateRegister
|
|
367
|
-
end
|
|
368
|
-
end
|
|
369
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_RENDER
|
|
370
|
-
if ____cond19 then
|
|
371
|
-
do
|
|
372
|
-
return postSlotRenderRegister
|
|
373
|
-
end
|
|
374
|
-
end
|
|
375
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED
|
|
376
|
-
if ____cond19 then
|
|
377
|
-
do
|
|
378
|
-
return postSlotAnimationChangedRegister
|
|
379
|
-
end
|
|
380
|
-
end
|
|
381
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_DESTROYED
|
|
382
|
-
if ____cond19 then
|
|
383
|
-
do
|
|
384
|
-
return postSlotDestroyedRegister
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT
|
|
388
|
-
if ____cond19 then
|
|
389
|
-
do
|
|
390
|
-
return postGridEntityInitRegister
|
|
391
|
-
end
|
|
392
|
-
end
|
|
393
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE
|
|
394
|
-
if ____cond19 then
|
|
395
|
-
do
|
|
396
|
-
return postGridEntityUpdateRegister
|
|
397
|
-
end
|
|
398
|
-
end
|
|
399
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE
|
|
400
|
-
if ____cond19 then
|
|
401
|
-
do
|
|
402
|
-
return postGridEntityRemoveRegister
|
|
403
|
-
end
|
|
404
|
-
end
|
|
405
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE
|
|
406
|
-
if ____cond19 then
|
|
407
|
-
do
|
|
408
|
-
return postGridEntityStateChangeRegister
|
|
409
|
-
end
|
|
410
|
-
end
|
|
411
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN
|
|
412
|
-
if ____cond19 then
|
|
413
|
-
do
|
|
414
|
-
return postGridEntityBrokenRegister
|
|
415
|
-
end
|
|
416
|
-
end
|
|
417
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION
|
|
418
|
-
if ____cond19 then
|
|
419
|
-
do
|
|
420
|
-
return postGridEntityCollisionRegister
|
|
421
|
-
end
|
|
422
|
-
end
|
|
423
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_BONE_SWING
|
|
424
|
-
if ____cond19 then
|
|
425
|
-
do
|
|
426
|
-
return postBoneSwingRegister
|
|
427
|
-
end
|
|
428
|
-
end
|
|
429
|
-
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER
|
|
430
|
-
if ____cond19 then
|
|
431
|
-
do
|
|
432
|
-
return postCustomDoorEnterRegister
|
|
433
|
-
end
|
|
434
|
-
end
|
|
435
|
-
do
|
|
436
|
-
do
|
|
437
|
-
return ensureAllCases(nil, callbackID)
|
|
438
|
-
end
|
|
439
|
-
end
|
|
440
|
-
until true
|
|
441
|
-
end
|
|
442
22
|
____exports.ModUpgraded = __TS__Class()
|
|
443
23
|
local ModUpgraded = ____exports.ModUpgraded
|
|
444
24
|
ModUpgraded.name = "ModUpgraded"
|
|
445
25
|
function ModUpgraded.prototype.____constructor(self, mod, verbose)
|
|
26
|
+
self.Name = mod.Name
|
|
446
27
|
self.Mod = mod
|
|
447
28
|
self.Verbose = verbose
|
|
448
|
-
self.Name = mod.Name
|
|
449
29
|
end
|
|
450
30
|
function ModUpgraded.prototype.AddCallback(self, callbackID, ...)
|
|
451
31
|
local args = {...}
|
|
@@ -484,7 +64,7 @@ function ModUpgraded.prototype.SaveData(self, data)
|
|
|
484
64
|
self.Mod:SaveData(data)
|
|
485
65
|
end
|
|
486
66
|
function ModUpgraded.prototype.AddCallbackCustom(self, callbackID, ...)
|
|
487
|
-
local callbackRegisterFunction =
|
|
67
|
+
local callbackRegisterFunction = CALLBACK_REGISTER_FUNCTIONS[callbackID]
|
|
488
68
|
if callbackRegisterFunction == nil then
|
|
489
69
|
error("Failed to find a callback registration function for custom callback: " .. tostring(callbackID))
|
|
490
70
|
end
|
package/dist/upgradeMod.lua
CHANGED
|
@@ -136,7 +136,7 @@ function initCustomCallbacks(self, mod)
|
|
|
136
136
|
postGridEntityCallbacksInit(nil, mod)
|
|
137
137
|
postGridEntityCollisionInit(nil, mod)
|
|
138
138
|
postBoneSwingCallbackInit(nil, mod)
|
|
139
|
-
postCustomDoorEnterCallbackInit(nil
|
|
139
|
+
postCustomDoorEnterCallbackInit(nil)
|
|
140
140
|
end
|
|
141
141
|
function initFeatures(self, mod)
|
|
142
142
|
deployJSONRoomInit(nil, mod)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.154",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@zamiell/typescript-to-lua": "^1.4.2",
|
|
29
|
-
"isaac-typescript-definitions": "^1.0.
|
|
29
|
+
"isaac-typescript-definitions": "^1.0.366",
|
|
30
30
|
"isaacscript-lint": "^1.0.89",
|
|
31
31
|
"isaacscript-tsconfig": "^1.1.8",
|
|
32
32
|
"typedoc": "^0.22.13",
|