isaacscript-common 1.2.289 → 1.2.292
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.lua +4 -4
- package/dist/callbacks/postGridEntity.lua +5 -5
- package/dist/callbacks/postHolyMantleRemoved.d.ts +1 -0
- package/dist/callbacks/postHolyMantleRemoved.lua +37 -0
- package/dist/callbacks/postItemDischarged.d.ts +2 -0
- package/dist/callbacks/postItemDischarged.lua +99 -0
- package/dist/callbacks/postRoomClearChanged.d.ts +1 -0
- package/dist/callbacks/postRoomClearChanged.lua +39 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +2 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +23 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +2 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +16 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +2 -0
- package/dist/callbacks/subscriptions/postItemDischarged.lua +23 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.lua +6 -2
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.lua +16 -0
- package/dist/enums/ModCallbacksCustom.d.ts +80 -57
- package/dist/enums/ModCallbacksCustom.lua +107 -103
- package/dist/functions/pocketItems.d.ts +5 -0
- package/dist/functions/pocketItems.lua +9 -0
- package/dist/initCustomCallbacks.d.ts +2 -0
- package/dist/initCustomCallbacks.lua +131 -0
- package/dist/initFeatures.d.ts +3 -0
- package/dist/initFeatures.lua +55 -0
- package/dist/objects/callbackRegisterFunctions.lua +56 -50
- package/dist/types/AddCallbackParametersCustom.d.ts +149 -137
- package/dist/upgradeMod.lua +5 -175
- package/package.json +5 -3
|
@@ -18,8 +18,10 @@ import { PostGridEntityBrokenCallbackType } from "../callbacks/subscriptions/pos
|
|
|
18
18
|
import { PostGridEntityCollisionCallbackType } from "../callbacks/subscriptions/postGridEntityCollision";
|
|
19
19
|
import { PostGridEntityInitCallbackType } from "../callbacks/subscriptions/postGridEntityInit";
|
|
20
20
|
import { PostGridEntityRemoveCallbackType } from "../callbacks/subscriptions/postGridEntityRemove";
|
|
21
|
-
import {
|
|
21
|
+
import { PostGridEntityStateChangedCallbackType } from "../callbacks/subscriptions/postGridEntityStateChanged";
|
|
22
22
|
import { PostGridEntityUpdateCallbackType } from "../callbacks/subscriptions/postGridEntityUpdate";
|
|
23
|
+
import { PostHolyMantleRemovedCallbackType } from "../callbacks/subscriptions/postHolyMantleRemoved";
|
|
24
|
+
import { PostItemDischargedCallbackType } from "../callbacks/subscriptions/postItemDischarged";
|
|
23
25
|
import { PostItemPickupCallbackType } from "../callbacks/subscriptions/postItemPickup";
|
|
24
26
|
import { PostKnifeInitLateCallbackType } from "../callbacks/subscriptions/postKnifeInitLate";
|
|
25
27
|
import { PostLaserInitLateCallbackType } from "../callbacks/subscriptions/postLaserInitLate";
|
|
@@ -41,6 +43,7 @@ import { PostPlayerRenderReorderedCallbackType } from "../callbacks/subscription
|
|
|
41
43
|
import { PostPlayerUpdateReorderedCallbackType } from "../callbacks/subscriptions/postPlayerUpdateReordered";
|
|
42
44
|
import { PostProjectileInitLateCallbackType } from "../callbacks/subscriptions/postProjectileInitLate";
|
|
43
45
|
import { PostPurchaseCallbackType } from "../callbacks/subscriptions/postPurchase";
|
|
46
|
+
import { PostRoomClearChangedCallbackType } from "../callbacks/subscriptions/postRoomClearChanged";
|
|
44
47
|
import { PostSacrificeCallbackType } from "../callbacks/subscriptions/postSacrifice";
|
|
45
48
|
import { PostSlotAnimationChangedCallbackType } from "../callbacks/subscriptions/postSlotAnimationChanged";
|
|
46
49
|
import { PostSlotDestroyedCallbackType } from "../callbacks/subscriptions/postSlotDestroyed";
|
|
@@ -55,214 +58,223 @@ import { PreBerserkDeathCallbackType } from "../callbacks/subscriptions/preBerse
|
|
|
55
58
|
import { PreCustomReviveCallbackType } from "../callbacks/subscriptions/preCustomRevive";
|
|
56
59
|
import { PreItemPickupCallbackType } from "../callbacks/subscriptions/preItemPickup";
|
|
57
60
|
import { PreNewLevelCallbackType } from "../callbacks/subscriptions/preNewLevel";
|
|
58
|
-
import { RoomClearChangeCallbackType } from "../callbacks/subscriptions/roomClearChange";
|
|
59
61
|
import { ModCallbacksCustom } from "../enums/ModCallbacksCustom";
|
|
60
62
|
export interface AddCallbackParametersCustom {
|
|
61
|
-
[ModCallbacksCustom.
|
|
62
|
-
callback:
|
|
63
|
+
[ModCallbacksCustom.MC_POST_BOMB_INIT_LATE]: [
|
|
64
|
+
callback: PostBombInitLateCallbackType,
|
|
65
|
+
bombVariant?: BombVariant | int
|
|
63
66
|
];
|
|
64
|
-
[ModCallbacksCustom.
|
|
65
|
-
callback:
|
|
67
|
+
[ModCallbacksCustom.MC_POST_BONE_SWING]: [
|
|
68
|
+
callback: PostBoneSwingCallbackType
|
|
66
69
|
];
|
|
67
|
-
[ModCallbacksCustom.
|
|
68
|
-
callback:
|
|
70
|
+
[ModCallbacksCustom.MC_POST_COLLECTIBLE_INIT_FIRST]: [
|
|
71
|
+
callback: PostCollectibleInitFirstCallbackType,
|
|
72
|
+
collectibleType?: CollectibleType | int
|
|
69
73
|
];
|
|
70
|
-
[ModCallbacksCustom.
|
|
71
|
-
callback:
|
|
72
|
-
playerVariant?: PlayerVariant
|
|
74
|
+
[ModCallbacksCustom.MC_POST_CURSED_TELEPORT]: [
|
|
75
|
+
callback: PostCursedTeleportCallbackType
|
|
73
76
|
];
|
|
74
|
-
[ModCallbacksCustom.
|
|
75
|
-
callback:
|
|
76
|
-
|
|
77
|
+
[ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER]: [
|
|
78
|
+
callback: PostCustomDoorEnterCallbackType,
|
|
79
|
+
effectVariant?: int
|
|
77
80
|
];
|
|
78
|
-
[ModCallbacksCustom.
|
|
79
|
-
callback:
|
|
80
|
-
|
|
81
|
+
[ModCallbacksCustom.MC_POST_CUSTOM_REVIVE]: [
|
|
82
|
+
callback: PostCustomReviveCallbackType,
|
|
83
|
+
revivalType?: int
|
|
81
84
|
];
|
|
82
|
-
[ModCallbacksCustom.
|
|
83
|
-
callback:
|
|
84
|
-
|
|
85
|
+
[ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE]: [
|
|
86
|
+
callback: PostEffectInitLateCallbackType,
|
|
87
|
+
effectVariant?: EffectVariant | int
|
|
85
88
|
];
|
|
86
|
-
[ModCallbacksCustom.
|
|
87
|
-
callback:
|
|
89
|
+
[ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED]: [
|
|
90
|
+
callback: PostEffectStateChangedCallbackType,
|
|
91
|
+
effectVariant?: EffectVariant
|
|
88
92
|
];
|
|
89
|
-
[ModCallbacksCustom.
|
|
90
|
-
[ModCallbacksCustom.
|
|
91
|
-
callback:
|
|
93
|
+
[ModCallbacksCustom.MC_POST_ESAU_JR]: [callback: PostEsauJrCallbackType];
|
|
94
|
+
[ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE]: [
|
|
95
|
+
callback: PostFamiliarInitLateCallbackType,
|
|
96
|
+
familiarVariant?: FamiliarVariant | int
|
|
92
97
|
];
|
|
93
|
-
[ModCallbacksCustom.
|
|
94
|
-
callback:
|
|
95
|
-
|
|
98
|
+
[ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED]: [
|
|
99
|
+
callback: PostFamiliarStateChangedCallbackType,
|
|
100
|
+
familiarVariant?: FamiliarVariant
|
|
96
101
|
];
|
|
97
|
-
[ModCallbacksCustom.
|
|
98
|
-
callback:
|
|
99
|
-
tearVariant?: TearVariant | int
|
|
102
|
+
[ModCallbacksCustom.MC_POST_FIRST_ESAU_JR]: [
|
|
103
|
+
callback: PostFirstEsauJrCallbackType
|
|
100
104
|
];
|
|
101
|
-
[ModCallbacksCustom.
|
|
102
|
-
callback:
|
|
103
|
-
tearVariant?: TearVariant | int
|
|
105
|
+
[ModCallbacksCustom.MC_POST_FIRST_FLIP]: [
|
|
106
|
+
callback: PostFirstFlipCallbackType
|
|
104
107
|
];
|
|
105
|
-
[ModCallbacksCustom.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
[ModCallbacksCustom.MC_POST_FLIP]: [callback: PostFlipCallbackType];
|
|
109
|
+
[ModCallbacksCustom.MC_POST_GAME_STARTED_REORDERED]: [
|
|
110
|
+
callback: PostGameStartedReorderedCallbackType
|
|
108
111
|
];
|
|
109
|
-
[ModCallbacksCustom.
|
|
110
|
-
callback:
|
|
111
|
-
|
|
112
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN]: [
|
|
113
|
+
callback: PostGridEntityBrokenCallbackType,
|
|
114
|
+
gridEntityType?: GridEntityType
|
|
112
115
|
];
|
|
113
|
-
[ModCallbacksCustom.
|
|
114
|
-
callback:
|
|
115
|
-
|
|
116
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION]: [
|
|
117
|
+
callback: PostGridEntityCollisionCallbackType,
|
|
118
|
+
gridEntityType?: GridEntityType
|
|
116
119
|
];
|
|
117
|
-
[ModCallbacksCustom.
|
|
118
|
-
callback:
|
|
119
|
-
|
|
120
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT]: [
|
|
121
|
+
callback: PostGridEntityInitCallbackType,
|
|
122
|
+
gridEntityType?: GridEntityType
|
|
123
|
+
];
|
|
124
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE]: [
|
|
125
|
+
callback: PostGridEntityRemoveCallbackType,
|
|
126
|
+
gridEntityType?: GridEntityType
|
|
127
|
+
];
|
|
128
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGED]: [
|
|
129
|
+
callback: PostGridEntityStateChangedCallbackType,
|
|
130
|
+
gridEntityType?: GridEntityType
|
|
131
|
+
];
|
|
132
|
+
[ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE]: [
|
|
133
|
+
callback: PostGridEntityUpdateCallbackType,
|
|
134
|
+
gridEntityType?: GridEntityType
|
|
135
|
+
];
|
|
136
|
+
[ModCallbacksCustom.MC_POST_HOLY_MANTLE_REMOVED]: [
|
|
137
|
+
callback: PostHolyMantleRemovedCallbackType,
|
|
138
|
+
playerVariant?: PlayerVariant | int,
|
|
139
|
+
character?: PlayerType | int
|
|
140
|
+
];
|
|
141
|
+
[ModCallbacksCustom.MC_POST_ITEM_DISCHARGE]: [
|
|
142
|
+
callback: PostItemDischargedCallbackType,
|
|
143
|
+
collectibleType?: CollectibleType | int
|
|
144
|
+
];
|
|
145
|
+
[ModCallbacksCustom.MC_POST_ITEM_PICKUP]: [
|
|
146
|
+
callback: PostItemPickupCallbackType,
|
|
147
|
+
itemType?: ItemType,
|
|
148
|
+
itemID?: CollectibleType | TrinketType | int
|
|
120
149
|
];
|
|
121
150
|
[ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE]: [
|
|
122
151
|
callback: PostKnifeInitLateCallbackType,
|
|
123
152
|
knifeVariant?: KnifeVariant | int
|
|
124
153
|
];
|
|
125
|
-
[ModCallbacksCustom.
|
|
126
|
-
callback:
|
|
127
|
-
|
|
154
|
+
[ModCallbacksCustom.MC_POST_LASER_INIT_LATE]: [
|
|
155
|
+
callback: PostLaserInitLateCallbackType,
|
|
156
|
+
laserVariant?: LaserVariant | int
|
|
157
|
+
];
|
|
158
|
+
[ModCallbacksCustom.MC_POST_NEW_LEVEL_REORDERED]: [
|
|
159
|
+
callback: PostNewLevelReorderedCallbackType
|
|
160
|
+
];
|
|
161
|
+
[ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY]: [
|
|
162
|
+
callback: PostNewRoomEarlyCallbackType
|
|
163
|
+
];
|
|
164
|
+
[ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED]: [
|
|
165
|
+
callback: PostNewRoomReorderedCallbackType
|
|
128
166
|
];
|
|
129
167
|
[ModCallbacksCustom.MC_POST_NPC_INIT_LATE]: [
|
|
130
168
|
callback: PostNPCInitLateCallbackType,
|
|
131
169
|
entityType?: EntityType | int
|
|
132
170
|
];
|
|
133
|
-
[ModCallbacksCustom.
|
|
134
|
-
callback:
|
|
135
|
-
|
|
171
|
+
[ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED]: [
|
|
172
|
+
callback: PostNPCStateChangedCallbackType,
|
|
173
|
+
entityType?: EntityType | int,
|
|
174
|
+
variant?: int
|
|
136
175
|
];
|
|
137
|
-
[ModCallbacksCustom.
|
|
138
|
-
callback:
|
|
139
|
-
|
|
176
|
+
[ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED]: [
|
|
177
|
+
callback: PostPEffectUpdateReorderedCallbackType,
|
|
178
|
+
character?: PlayerType | int
|
|
140
179
|
];
|
|
141
180
|
[ModCallbacksCustom.MC_POST_PICKUP_COLLECT]: [
|
|
142
181
|
callback: PostPickupCollectCallbackType,
|
|
143
182
|
pickupVariant?: PickupVariant | int
|
|
144
183
|
];
|
|
145
|
-
[ModCallbacksCustom.
|
|
146
|
-
callback:
|
|
147
|
-
|
|
148
|
-
itemID?: CollectibleType | TrinketType | int
|
|
149
|
-
];
|
|
150
|
-
[ModCallbacksCustom.MC_POST_ITEM_PICKUP]: [
|
|
151
|
-
callback: PostItemPickupCallbackType,
|
|
152
|
-
itemType?: ItemType,
|
|
153
|
-
itemID?: CollectibleType | TrinketType | int
|
|
184
|
+
[ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE]: [
|
|
185
|
+
callback: PostPickupInitLateCallbackType,
|
|
186
|
+
pickupVariant?: PickupVariant | int
|
|
154
187
|
];
|
|
155
|
-
[ModCallbacksCustom.
|
|
156
|
-
callback:
|
|
188
|
+
[ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED]: [
|
|
189
|
+
callback: PostPickupStateChangedCallbackType,
|
|
190
|
+
pickupVariant?: PickupVariant
|
|
157
191
|
];
|
|
158
192
|
[ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH]: [
|
|
159
193
|
callback: PostPlayerChangeHealthCallbackType,
|
|
160
194
|
playerVariant?: PlayerVariant
|
|
161
195
|
];
|
|
196
|
+
[ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE]: [
|
|
197
|
+
callback: PostPlayerChangeTypeCallbackType
|
|
198
|
+
];
|
|
162
199
|
[ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE]: [
|
|
163
200
|
callback: PostPlayerFatalDamageCallbackType,
|
|
164
201
|
playerVariant?: PlayerVariant
|
|
165
202
|
];
|
|
166
|
-
[ModCallbacksCustom.
|
|
167
|
-
callback:
|
|
203
|
+
[ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE]: [
|
|
204
|
+
callback: PostPlayerInitLateCallbackType,
|
|
168
205
|
playerVariant?: PlayerVariant
|
|
169
206
|
];
|
|
170
|
-
[ModCallbacksCustom.
|
|
171
|
-
callback:
|
|
172
|
-
|
|
173
|
-
[ModCallbacksCustom.MC_POST_CUSTOM_REVIVE]: [
|
|
174
|
-
callback: PostCustomReviveCallbackType,
|
|
175
|
-
revivalType?: int
|
|
207
|
+
[ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED]: [
|
|
208
|
+
callback: PostPlayerInitReorderedCallbackType,
|
|
209
|
+
playerVariant?: PlayerVariant
|
|
176
210
|
];
|
|
177
|
-
[ModCallbacksCustom.
|
|
178
|
-
|
|
179
|
-
|
|
211
|
+
[ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED]: [
|
|
212
|
+
callback: PostPlayerRenderReorderedCallbackType,
|
|
213
|
+
playerVariant?: PlayerVariant
|
|
180
214
|
];
|
|
181
|
-
[ModCallbacksCustom.
|
|
182
|
-
|
|
183
|
-
|
|
215
|
+
[ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED]: [
|
|
216
|
+
callback: PostPlayerUpdateReorderedCallbackType,
|
|
217
|
+
playerVariant?: PlayerVariant
|
|
184
218
|
];
|
|
185
|
-
[ModCallbacksCustom.
|
|
186
|
-
callback:
|
|
219
|
+
[ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE]: [
|
|
220
|
+
callback: PostProjectileInitLateCallbackType,
|
|
221
|
+
projectileVariant?: ProjectileVariant | int
|
|
187
222
|
];
|
|
188
223
|
[ModCallbacksCustom.MC_POST_PURCHASE]: [
|
|
189
224
|
callback: PostPurchaseCallbackType,
|
|
190
225
|
pickupVariant?: PickupVariant | int,
|
|
191
226
|
pickupSubType?: int
|
|
192
227
|
];
|
|
228
|
+
[ModCallbacksCustom.MC_POST_ROOM_CLEAR_CHANGED]: [
|
|
229
|
+
callback: PostRoomClearChangedCallbackType
|
|
230
|
+
];
|
|
193
231
|
[ModCallbacksCustom.MC_POST_SACRIFICE]: [callback: PostSacrificeCallbackType];
|
|
194
|
-
[ModCallbacksCustom.
|
|
195
|
-
callback:
|
|
232
|
+
[ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED]: [
|
|
233
|
+
callback: PostSlotAnimationChangedCallbackType,
|
|
234
|
+
slotVariant?: SlotVariant
|
|
196
235
|
];
|
|
197
|
-
[ModCallbacksCustom.
|
|
198
|
-
callback:
|
|
199
|
-
|
|
236
|
+
[ModCallbacksCustom.MC_POST_SLOT_DESTROYED]: [
|
|
237
|
+
callback: PostSlotDestroyedCallbackType,
|
|
238
|
+
slotVariant?: SlotVariant
|
|
200
239
|
];
|
|
201
240
|
[ModCallbacksCustom.MC_POST_SLOT_INIT]: [
|
|
202
241
|
callback: PostSlotInitCallbackType,
|
|
203
242
|
slotVariant?: SlotVariant
|
|
204
243
|
];
|
|
205
|
-
[ModCallbacksCustom.MC_POST_SLOT_UPDATE]: [
|
|
206
|
-
callback: PostSlotUpdateCallbackType,
|
|
207
|
-
slotVariant?: SlotVariant
|
|
208
|
-
];
|
|
209
244
|
[ModCallbacksCustom.MC_POST_SLOT_RENDER]: [
|
|
210
245
|
callback: PostSlotRenderCallbackType,
|
|
211
246
|
slotVariant?: SlotVariant
|
|
212
247
|
];
|
|
213
|
-
[ModCallbacksCustom.
|
|
214
|
-
callback:
|
|
215
|
-
slotVariant?: SlotVariant
|
|
216
|
-
];
|
|
217
|
-
[ModCallbacksCustom.MC_POST_SLOT_DESTROYED]: [
|
|
218
|
-
callback: PostSlotDestroyedCallbackType,
|
|
248
|
+
[ModCallbacksCustom.MC_POST_SLOT_UPDATE]: [
|
|
249
|
+
callback: PostSlotUpdateCallbackType,
|
|
219
250
|
slotVariant?: SlotVariant
|
|
220
251
|
];
|
|
221
|
-
[ModCallbacksCustom.
|
|
222
|
-
callback:
|
|
223
|
-
|
|
224
|
-
];
|
|
225
|
-
[ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED]: [
|
|
226
|
-
callback: PostPickupStateChangedCallbackType,
|
|
227
|
-
pickupVariant?: PickupVariant
|
|
228
|
-
];
|
|
229
|
-
[ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED]: [
|
|
230
|
-
callback: PostEffectStateChangedCallbackType,
|
|
231
|
-
effectVariant?: EffectVariant
|
|
232
|
-
];
|
|
233
|
-
[ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED]: [
|
|
234
|
-
callback: PostNPCStateChangedCallbackType,
|
|
235
|
-
entityType?: EntityType
|
|
236
|
-
];
|
|
237
|
-
[ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT]: [
|
|
238
|
-
callback: PostGridEntityInitCallbackType,
|
|
239
|
-
gridEntityType?: GridEntityType
|
|
240
|
-
];
|
|
241
|
-
[ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE]: [
|
|
242
|
-
callback: PostGridEntityUpdateCallbackType,
|
|
243
|
-
gridEntityType?: GridEntityType
|
|
252
|
+
[ModCallbacksCustom.MC_POST_TEAR_INIT_LATE]: [
|
|
253
|
+
callback: PostTearInitLateCallbackType,
|
|
254
|
+
tearVariant?: TearVariant | int
|
|
244
255
|
];
|
|
245
|
-
[ModCallbacksCustom.
|
|
246
|
-
callback:
|
|
247
|
-
|
|
256
|
+
[ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE]: [
|
|
257
|
+
callback: PostTearInitVeryLateCallbackType,
|
|
258
|
+
tearVariant?: TearVariant | int
|
|
248
259
|
];
|
|
249
|
-
[ModCallbacksCustom.
|
|
250
|
-
callback:
|
|
251
|
-
gridEntityType?: GridEntityType
|
|
260
|
+
[ModCallbacksCustom.MC_POST_TRANSFORMATION]: [
|
|
261
|
+
callback: PostTransformationCallbackType
|
|
252
262
|
];
|
|
253
|
-
[ModCallbacksCustom.
|
|
254
|
-
callback:
|
|
255
|
-
|
|
263
|
+
[ModCallbacksCustom.MC_POST_TRINKET_BREAK]: [
|
|
264
|
+
callback: PostTrinketBreakCallbackType,
|
|
265
|
+
trinketType?: TrinketType | int
|
|
256
266
|
];
|
|
257
|
-
[ModCallbacksCustom.
|
|
258
|
-
callback:
|
|
259
|
-
|
|
267
|
+
[ModCallbacksCustom.MC_PRE_BERSERK_DEATH]: [
|
|
268
|
+
callback: PreBerserkDeathCallbackType,
|
|
269
|
+
playerVariant?: PlayerVariant
|
|
260
270
|
];
|
|
261
|
-
[ModCallbacksCustom.
|
|
262
|
-
callback:
|
|
271
|
+
[ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE]: [
|
|
272
|
+
callback: PreCustomReviveCallbackType
|
|
263
273
|
];
|
|
264
|
-
[ModCallbacksCustom.
|
|
265
|
-
callback:
|
|
266
|
-
|
|
274
|
+
[ModCallbacksCustom.MC_PRE_ITEM_PICKUP]: [
|
|
275
|
+
callback: PreItemPickupCallbackType,
|
|
276
|
+
itemType?: ItemType,
|
|
277
|
+
itemID?: CollectibleType | TrinketType | int
|
|
267
278
|
];
|
|
279
|
+
[ModCallbacksCustom.MC_PRE_NEW_LEVEL]: [callback: PreNewLevelCallbackType];
|
|
268
280
|
}
|
package/dist/upgradeMod.lua
CHANGED
|
@@ -1,192 +1,22 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__New = ____lualib.__TS__New
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local initCustomCallbacks, initFeaturesMajor, initFeaturesMinor
|
|
5
|
-
local ____customRevive = require("callbacks.customRevive")
|
|
6
|
-
local customReviveCallbacksInit = ____customRevive.customReviveCallbacksInit
|
|
7
|
-
local ____itemPickup = require("callbacks.itemPickup")
|
|
8
|
-
local itemPickupCallbacksInit = ____itemPickup.itemPickupCallbacksInit
|
|
9
|
-
local ____postBombInitLate = require("callbacks.postBombInitLate")
|
|
10
|
-
local postBombInitLateCallbackInit = ____postBombInitLate.postBombInitLateCallbackInit
|
|
11
|
-
local ____postBoneSwing = require("callbacks.postBoneSwing")
|
|
12
|
-
local postBoneSwingCallbackInit = ____postBoneSwing.postBoneSwingCallbackInit
|
|
13
|
-
local ____postCollectibleInitFirst = require("callbacks.postCollectibleInitFirst")
|
|
14
|
-
local postCollectibleInitFirstCallbackInit = ____postCollectibleInitFirst.postCollectibleInitFirstCallbackInit
|
|
15
|
-
local ____postCursedTeleport = require("callbacks.postCursedTeleport")
|
|
16
|
-
local postCursedTeleportCallbackInit = ____postCursedTeleport.postCursedTeleportCallbackInit
|
|
17
|
-
local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
|
|
18
|
-
local postCustomDoorEnterCallbackInit = ____postCustomDoorEnter.postCustomDoorEnterCallbackInit
|
|
19
|
-
local ____postEffectInitLate = require("callbacks.postEffectInitLate")
|
|
20
|
-
local postEffectInitLateCallbackInit = ____postEffectInitLate.postEffectInitLateCallbackInit
|
|
21
|
-
local ____postEffectStateChanged = require("callbacks.postEffectStateChanged")
|
|
22
|
-
local postEffectStateChangedCallbackInit = ____postEffectStateChanged.postEffectStateChangedCallbackInit
|
|
23
|
-
local ____postEsauJr = require("callbacks.postEsauJr")
|
|
24
|
-
local postEsauJrCallbacksInit = ____postEsauJr.postEsauJrCallbacksInit
|
|
25
|
-
local ____postFamiliarInitLate = require("callbacks.postFamiliarInitLate")
|
|
26
|
-
local postFamiliarInitLateCallbackInit = ____postFamiliarInitLate.postFamiliarInitLateCallbackInit
|
|
27
|
-
local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged")
|
|
28
|
-
local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
|
|
29
|
-
local ____postFlip = require("callbacks.postFlip")
|
|
30
|
-
local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
|
|
31
|
-
local ____postGridEntity = require("callbacks.postGridEntity")
|
|
32
|
-
local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
|
|
33
|
-
local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
|
|
34
|
-
local postGridEntityCollisionInit = ____postGridEntityCollision.postGridEntityCollisionInit
|
|
35
|
-
local ____postKnifeInitLate = require("callbacks.postKnifeInitLate")
|
|
36
|
-
local postKnifeInitLateCallbackInit = ____postKnifeInitLate.postKnifeInitLateCallbackInit
|
|
37
|
-
local ____postLaserInitLate = require("callbacks.postLaserInitLate")
|
|
38
|
-
local postLaserInitLateCallbackInit = ____postLaserInitLate.postLaserInitLateCallbackInit
|
|
39
4
|
local ____postNewRoomEarly = require("callbacks.postNewRoomEarly")
|
|
40
5
|
local postNewRoomEarlyCallbackInit = ____postNewRoomEarly.postNewRoomEarlyCallbackInit
|
|
41
|
-
local ____postNPCInitLate = require("callbacks.postNPCInitLate")
|
|
42
|
-
local postNPCInitLateCallbackInit = ____postNPCInitLate.postNPCInitLateCallbackInit
|
|
43
|
-
local ____postNPCStateChanged = require("callbacks.postNPCStateChanged")
|
|
44
|
-
local postNPCStateChangedCallbackInit = ____postNPCStateChanged.postNPCStateChangedCallbackInit
|
|
45
|
-
local ____postPickupCollect = require("callbacks.postPickupCollect")
|
|
46
|
-
local postPickupCollectCallbackInit = ____postPickupCollect.postPickupCollectCallbackInit
|
|
47
|
-
local ____postPickupInitLate = require("callbacks.postPickupInitLate")
|
|
48
|
-
local postPickupInitLateCallbackInit = ____postPickupInitLate.postPickupInitLateCallbackInit
|
|
49
|
-
local ____postPickupStateChanged = require("callbacks.postPickupStateChanged")
|
|
50
|
-
local postPickupStateChangedCallbackInit = ____postPickupStateChanged.postPickupStateChangedCallbackInit
|
|
51
|
-
local ____postPlayerChangeHealth = require("callbacks.postPlayerChangeHealth")
|
|
52
|
-
local postPlayerChangeHealthCallbackInit = ____postPlayerChangeHealth.postPlayerChangeHealthCallbackInit
|
|
53
|
-
local ____postPlayerChangeType = require("callbacks.postPlayerChangeType")
|
|
54
|
-
local postPlayerChangeTypeCallbackInit = ____postPlayerChangeType.postPlayerChangeTypeCallbackInit
|
|
55
|
-
local ____postPlayerFatalDamage = require("callbacks.postPlayerFatalDamage")
|
|
56
|
-
local postPlayerFatalDamageCallbackInit = ____postPlayerFatalDamage.postPlayerFatalDamageCallbackInit
|
|
57
|
-
local ____postPlayerInitLate = require("callbacks.postPlayerInitLate")
|
|
58
|
-
local postPlayerInitLateCallbackInit = ____postPlayerInitLate.postPlayerInitLateCallbackInit
|
|
59
|
-
local ____postPlayerReordered = require("callbacks.postPlayerReordered")
|
|
60
|
-
local postPlayerReorderedCallbacksInit = ____postPlayerReordered.postPlayerReorderedCallbacksInit
|
|
61
|
-
local ____postProjectileInitLate = require("callbacks.postProjectileInitLate")
|
|
62
|
-
local postProjectileInitLateCallbackInit = ____postProjectileInitLate.postProjectileInitLateCallbackInit
|
|
63
|
-
local ____postPurchase = require("callbacks.postPurchase")
|
|
64
|
-
local postPurchaseCallbackInit = ____postPurchase.postPurchaseCallbackInit
|
|
65
|
-
local ____postSacrifice = require("callbacks.postSacrifice")
|
|
66
|
-
local postSacrificeCallbackInit = ____postSacrifice.postSacrificeCallbackInit
|
|
67
|
-
local ____postSlotInitUpdate = require("callbacks.postSlotInitUpdate")
|
|
68
|
-
local postSlotInitUpdateCallbacksInit = ____postSlotInitUpdate.postSlotInitUpdateCallbacksInit
|
|
69
|
-
local ____postSlotRender = require("callbacks.postSlotRender")
|
|
70
|
-
local postSlotRenderCallbacksInit = ____postSlotRender.postSlotRenderCallbacksInit
|
|
71
|
-
local ____postTearInitLate = require("callbacks.postTearInitLate")
|
|
72
|
-
local postTearInitLateCallbackInit = ____postTearInitLate.postTearInitLateCallbackInit
|
|
73
|
-
local ____postTearInitVeryLate = require("callbacks.postTearInitVeryLate")
|
|
74
|
-
local postTearInitVeryLateCallbackInit = ____postTearInitVeryLate.postTearInitVeryLateCallbackInit
|
|
75
|
-
local ____postTransformation = require("callbacks.postTransformation")
|
|
76
|
-
local postTransformationCallbackInit = ____postTransformation.postTransformationCallbackInit
|
|
77
|
-
local ____postTrinketBreak = require("callbacks.postTrinketBreak")
|
|
78
|
-
local postTrinketBreakCallbackInit = ____postTrinketBreak.postTrinketBreakCallbackInit
|
|
79
|
-
local ____preBerserkDeath = require("callbacks.preBerserkDeath")
|
|
80
|
-
local preBerserkDeathCallbackInit = ____preBerserkDeath.preBerserkDeathCallbackInit
|
|
81
|
-
local ____preNewLevel = require("callbacks.preNewLevel")
|
|
82
|
-
local preNewLevelCallbackInit = ____preNewLevel.preNewLevelCallbackInit
|
|
83
|
-
local ____reorderedCallbacks = require("callbacks.reorderedCallbacks")
|
|
84
|
-
local reorderedCallbacksInit = ____reorderedCallbacks.reorderedCallbacksInit
|
|
85
|
-
local ____roomClearChange = require("callbacks.roomClearChange")
|
|
86
|
-
local roomClearChangeCallbackInit = ____roomClearChange.roomClearChangeCallbackInit
|
|
87
6
|
local ____ModUpgraded = require("classes.ModUpgraded")
|
|
88
7
|
local ModUpgraded = ____ModUpgraded.ModUpgraded
|
|
89
|
-
local ____characterHealthConversion = require("features.characterHealthConversion")
|
|
90
|
-
local characterHealthConversionInit = ____characterHealthConversion.characterHealthConversionInit
|
|
91
|
-
local ____characterStats = require("features.characterStats")
|
|
92
|
-
local characterStatsInit = ____characterStats.characterStatsInit
|
|
93
|
-
local ____debugDisplay = require("features.debugDisplay")
|
|
94
|
-
local debugDisplayInit = ____debugDisplay.debugDisplayInit
|
|
95
|
-
local ____deployJSONRoom = require("features.deployJSONRoom")
|
|
96
|
-
local deployJSONRoomInit = ____deployJSONRoom.deployJSONRoomInit
|
|
97
|
-
local ____disableInputs = require("features.disableInputs")
|
|
98
|
-
local disableInputsInit = ____disableInputs.disableInputsInit
|
|
99
|
-
local ____disableSound = require("features.disableSound")
|
|
100
|
-
local disableSoundsInit = ____disableSound.disableSoundsInit
|
|
101
|
-
local ____fadeInRemover = require("features.fadeInRemover")
|
|
102
|
-
local fadeInRemoverInit = ____fadeInRemover.fadeInRemoverInit
|
|
103
|
-
local ____fastReset = require("features.fastReset")
|
|
104
|
-
local fastResetInit = ____fastReset.fastResetInit
|
|
105
|
-
local ____forgottenSwitch = require("features.forgottenSwitch")
|
|
106
|
-
local forgottenSwitchInit = ____forgottenSwitch.forgottenSwitchInit
|
|
107
|
-
local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolType")
|
|
108
|
-
local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
|
|
109
|
-
local ____isPonyActive = require("features.isPonyActive")
|
|
110
|
-
local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
|
|
111
|
-
local ____playerInventory = require("features.playerInventory")
|
|
112
|
-
local playerInventoryInit = ____playerInventory.playerInventoryInit
|
|
113
|
-
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
114
|
-
local preventCollectibleRotateInit = ____preventCollectibleRotate.preventCollectibleRotateInit
|
|
115
|
-
local ____runInNFrames = require("features.runInNFrames")
|
|
116
|
-
local runInNFramesInit = ____runInNFrames.runInNFramesInit
|
|
117
8
|
local ____main = require("features.saveDataManager.main")
|
|
118
9
|
local saveDataManagerInit = ____main.saveDataManagerInit
|
|
119
|
-
local ____sirenHelpers = require("features.sirenHelpers")
|
|
120
|
-
local sirenHelpersInit = ____sirenHelpers.sirenHelpersInit
|
|
121
|
-
local ____taintedLazarusPlayers = require("features.taintedLazarusPlayers")
|
|
122
|
-
local taintedLazarusPlayersInit = ____taintedLazarusPlayers.taintedLazarusPlayersInit
|
|
123
10
|
local ____featuresInitialized = require("featuresInitialized")
|
|
124
11
|
local areFeaturesInitialized = ____featuresInitialized.areFeaturesInitialized
|
|
125
12
|
local setFeaturesInitialized = ____featuresInitialized.setFeaturesInitialized
|
|
13
|
+
local ____initCustomCallbacks = require("initCustomCallbacks")
|
|
14
|
+
local initCustomCallbacks = ____initCustomCallbacks.initCustomCallbacks
|
|
15
|
+
local ____initFeatures = require("initFeatures")
|
|
16
|
+
local initFeaturesMajor = ____initFeatures.initFeaturesMajor
|
|
17
|
+
local initFeaturesMinor = ____initFeatures.initFeaturesMinor
|
|
126
18
|
local ____patchErrorFunctions = require("patchErrorFunctions")
|
|
127
19
|
local patchErrorFunction = ____patchErrorFunctions.patchErrorFunction
|
|
128
|
-
function initCustomCallbacks(self, mod)
|
|
129
|
-
reorderedCallbacksInit(nil, mod)
|
|
130
|
-
preNewLevelCallbackInit(nil, mod)
|
|
131
|
-
roomClearChangeCallbackInit(nil, mod)
|
|
132
|
-
postPlayerReorderedCallbacksInit(nil, mod)
|
|
133
|
-
postPlayerInitLateCallbackInit(nil, mod)
|
|
134
|
-
postTearInitLateCallbackInit(nil, mod)
|
|
135
|
-
postTearInitVeryLateCallbackInit(nil, mod)
|
|
136
|
-
postFamiliarInitLateCallbackInit(nil, mod)
|
|
137
|
-
postBombInitLateCallbackInit(nil, mod)
|
|
138
|
-
postPickupInitLateCallbackInit(nil, mod)
|
|
139
|
-
postLaserInitLateCallbackInit(nil, mod)
|
|
140
|
-
postKnifeInitLateCallbackInit(nil, mod)
|
|
141
|
-
postProjectileInitLateCallbackInit(nil, mod)
|
|
142
|
-
postNPCInitLateCallbackInit(nil, mod)
|
|
143
|
-
postEffectInitLateCallbackInit(nil, mod)
|
|
144
|
-
postCollectibleInitFirstCallbackInit(nil, mod)
|
|
145
|
-
postPickupCollectCallbackInit(nil, mod)
|
|
146
|
-
itemPickupCallbacksInit(nil, mod)
|
|
147
|
-
postPlayerChangeTypeCallbackInit(nil, mod)
|
|
148
|
-
postPlayerChangeHealthCallbackInit(nil, mod)
|
|
149
|
-
postPlayerFatalDamageCallbackInit(nil, mod)
|
|
150
|
-
preBerserkDeathCallbackInit(nil, mod)
|
|
151
|
-
customReviveCallbacksInit(nil, mod)
|
|
152
|
-
postFlipCallbacksInit(nil, mod)
|
|
153
|
-
postEsauJrCallbacksInit(nil, mod)
|
|
154
|
-
postTransformationCallbackInit(nil, mod)
|
|
155
|
-
postPurchaseCallbackInit(nil, mod)
|
|
156
|
-
postSacrificeCallbackInit(nil, mod)
|
|
157
|
-
postTrinketBreakCallbackInit(nil, mod)
|
|
158
|
-
postCursedTeleportCallbackInit(nil, mod)
|
|
159
|
-
postSlotInitUpdateCallbacksInit(nil, mod)
|
|
160
|
-
postSlotRenderCallbacksInit(nil, mod)
|
|
161
|
-
postFamiliarStateChangedCallbackInit(nil, mod)
|
|
162
|
-
postPickupStateChangedCallbackInit(nil, mod)
|
|
163
|
-
postEffectStateChangedCallbackInit(nil, mod)
|
|
164
|
-
postNPCStateChangedCallbackInit(nil, mod)
|
|
165
|
-
postGridEntityCallbacksInit(nil, mod)
|
|
166
|
-
postGridEntityCollisionInit(nil, mod)
|
|
167
|
-
postBoneSwingCallbackInit(nil, mod)
|
|
168
|
-
postCustomDoorEnterCallbackInit(nil)
|
|
169
|
-
end
|
|
170
|
-
function initFeaturesMajor(self, mod)
|
|
171
|
-
deployJSONRoomInit(nil, mod)
|
|
172
|
-
runInNFramesInit(nil, mod)
|
|
173
|
-
characterStatsInit(nil, mod)
|
|
174
|
-
characterHealthConversionInit(nil, mod)
|
|
175
|
-
end
|
|
176
|
-
function initFeaturesMinor(self, mod)
|
|
177
|
-
disableInputsInit(nil, mod)
|
|
178
|
-
disableSoundsInit(nil, mod)
|
|
179
|
-
fadeInRemoverInit(nil, mod)
|
|
180
|
-
fastResetInit(nil, mod)
|
|
181
|
-
debugDisplayInit(nil, mod)
|
|
182
|
-
forgottenSwitchInit(nil, mod)
|
|
183
|
-
getCollectibleItemPoolTypeInit(nil, mod)
|
|
184
|
-
isPonyActiveInit(nil, mod)
|
|
185
|
-
playerInventoryInit(nil, mod)
|
|
186
|
-
preventCollectibleRotateInit(nil, mod)
|
|
187
|
-
sirenHelpersInit(nil, mod)
|
|
188
|
-
taintedLazarusPlayersInit(nil, mod)
|
|
189
|
-
end
|
|
190
20
|
function ____exports.upgradeMod(self, modVanilla)
|
|
191
21
|
patchErrorFunction(nil)
|
|
192
22
|
local mod = __TS__New(ModUpgraded, modVanilla)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.292",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,11 +25,13 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"docusaurus-plugin-typedoc": "^0.17.4",
|
|
28
29
|
"isaac-typescript-definitions": "^1.0.395",
|
|
29
|
-
"isaacscript-lint": "^1.0.
|
|
30
|
+
"isaacscript-lint": "^1.0.100",
|
|
30
31
|
"isaacscript-tsconfig": "^1.1.9",
|
|
31
32
|
"typedoc": "^0.22.15",
|
|
32
|
-
"
|
|
33
|
+
"typedoc-plugin-markdown": "^3.12.1",
|
|
34
|
+
"typescript": "4.6.4",
|
|
33
35
|
"typescript-to-lua": "^1.4.3"
|
|
34
36
|
}
|
|
35
37
|
}
|