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