isaacscript-common 1.0.560 → 1.0.564
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/customRevive.lua +3 -3
- package/dist/callbacks/itemPickup.lua +3 -3
- package/dist/callbacks/postPlayerChangeHealth.lua +3 -3
- package/dist/callbacks/postPlayerChangeType.lua +3 -3
- package/dist/callbacks/postPlayerReordered.lua +20 -5
- package/dist/callbacks/postTransformation.lua +3 -3
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +2 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +27 -0
- package/dist/functions/input.lua +7 -1
- package/dist/functions/log.d.ts +5 -0
- package/dist/functions/log.lua +51 -3
- package/dist/types/CallbackParametersCustom.d.ts +5 -0
- package/dist/types/ModCallbacksCustom.d.ts +40 -39
- package/dist/types/ModCallbacksCustom.lua +41 -39
- package/dist/types/ModUpgraded.lua +8 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
local ____exports = {}
|
|
3
|
-
local hasSubscriptions, postRender, postNewRoom,
|
|
3
|
+
local hasSubscriptions, postRender, postNewRoom, postPEffectUpdateReordered, postPlayerFatalDamage, CustomReviveState, v
|
|
4
4
|
local ____exports = require("features.saveDataManager.exports")
|
|
5
5
|
local saveDataManager = ____exports.saveDataManager
|
|
6
6
|
local ____collectibles = require("functions.collectibles")
|
|
@@ -36,7 +36,7 @@ function postNewRoom(self)
|
|
|
36
36
|
v.run.dyingPlayerIndex = nil
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
|
-
function
|
|
39
|
+
function postPEffectUpdateReordered(self, player)
|
|
40
40
|
if v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
|
|
41
41
|
return
|
|
42
42
|
end
|
|
@@ -92,7 +92,7 @@ function ____exports.customReviveCallbacksInit(self, mod)
|
|
|
92
92
|
saveDataManager(nil, "customRevive", v, hasSubscriptions)
|
|
93
93
|
mod:AddCallback(ModCallbacks.MC_POST_RENDER, postRender)
|
|
94
94
|
mod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, postNewRoom)
|
|
95
|
-
mod:AddCallbackCustom(ModCallbacksCustom.
|
|
95
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
96
96
|
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE, postPlayerFatalDamage)
|
|
97
97
|
end
|
|
98
98
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions,
|
|
4
|
+
local hasSubscriptions, postPEffectUpdateReordered, queueEmpty, queueNotEmpty, getPickingUpItemForPlayer, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____player = require("functions.player")
|
|
@@ -17,7 +17,7 @@ local preItemPickupHasSubscriptions = ____preItemPickup.preItemPickupHasSubscrip
|
|
|
17
17
|
function hasSubscriptions(self)
|
|
18
18
|
return preItemPickupHasSubscriptions(nil) or postItemPickupHasSubscriptions(nil)
|
|
19
19
|
end
|
|
20
|
-
function
|
|
20
|
+
function postPEffectUpdateReordered(self, player)
|
|
21
21
|
if not hasSubscriptions(nil) then
|
|
22
22
|
return
|
|
23
23
|
end
|
|
@@ -62,6 +62,6 @@ v = {
|
|
|
62
62
|
}
|
|
63
63
|
function ____exports.itemPickupCallbacksInit(self, mod)
|
|
64
64
|
saveDataManager(nil, "itemPickup", v, hasSubscriptions)
|
|
65
|
-
mod:AddCallbackCustom(ModCallbacksCustom.
|
|
65
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
66
66
|
end
|
|
67
67
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions,
|
|
4
|
+
local hasSubscriptions, postPEffectUpdateReordered, getCurrentHealthValue, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____player = require("functions.player")
|
|
@@ -19,7 +19,7 @@ local postPlayerChangeHealthHasSubscriptions = ____postPlayerChangeHealth.postPl
|
|
|
19
19
|
function hasSubscriptions(self)
|
|
20
20
|
return postPlayerChangeHealthHasSubscriptions(nil)
|
|
21
21
|
end
|
|
22
|
-
function
|
|
22
|
+
function postPEffectUpdateReordered(self, player)
|
|
23
23
|
if not hasSubscriptions(nil) then
|
|
24
24
|
return
|
|
25
25
|
end
|
|
@@ -104,6 +104,6 @@ v = {
|
|
|
104
104
|
}
|
|
105
105
|
function ____exports.postPlayerChangeHealthCallbackInit(self, mod)
|
|
106
106
|
saveDataManager(nil, "postPlayerChangeHealth", v, hasSubscriptions)
|
|
107
|
-
mod:AddCallbackCustom(ModCallbacksCustom.
|
|
107
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
108
108
|
end
|
|
109
109
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions,
|
|
4
|
+
local hasSubscriptions, postPEffectUpdateReordered, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____player = require("functions.player")
|
|
@@ -14,7 +14,7 @@ local postPlayerChangeTypeHasSubscriptions = ____postPlayerChangeType.postPlayer
|
|
|
14
14
|
function hasSubscriptions(self)
|
|
15
15
|
return postPlayerChangeTypeHasSubscriptions(nil)
|
|
16
16
|
end
|
|
17
|
-
function
|
|
17
|
+
function postPEffectUpdateReordered(self, player)
|
|
18
18
|
if not hasSubscriptions(nil) then
|
|
19
19
|
return
|
|
20
20
|
end
|
|
@@ -37,6 +37,6 @@ v = {
|
|
|
37
37
|
}
|
|
38
38
|
function ____exports.postPlayerChangeTypeCallbackInit(self, mod)
|
|
39
39
|
saveDataManager(nil, "postPlayerChangeType", v, hasSubscriptions)
|
|
40
|
-
mod:AddCallbackCustom(ModCallbacksCustom.
|
|
40
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
41
41
|
end
|
|
42
42
|
return ____exports
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions, postPlayerInit, postPlayerUpdate, postPlayerRender, postGameStarted, dequeue, v
|
|
4
|
+
local hasSubscriptions, postPEffectUpdate, postPlayerInit, postPlayerUpdate, postPlayerRender, postGameStarted, dequeue, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____array = require("functions.array")
|
|
@@ -9,6 +9,9 @@ local arrayEmpty = ____array.arrayEmpty
|
|
|
9
9
|
local ____player = require("functions.player")
|
|
10
10
|
local getPlayerFromIndex = ____player.getPlayerFromIndex
|
|
11
11
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
12
|
+
local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
|
|
13
|
+
local postPEffectUpdateReorderedFire = ____postPEffectUpdateReordered.postPEffectUpdateReorderedFire
|
|
14
|
+
local postPEffectUpdateReorderedHasSubscriptions = ____postPEffectUpdateReordered.postPEffectUpdateReorderedHasSubscriptions
|
|
12
15
|
local ____postPlayerInitReordered = require("callbacks.subscriptions.postPlayerInitReordered")
|
|
13
16
|
local postPlayerInitReorderedFire = ____postPlayerInitReordered.postPlayerInitReorderedFire
|
|
14
17
|
local postPlayerInitReorderedHasSubscriptions = ____postPlayerInitReordered.postPlayerInitReorderedHasSubscriptions
|
|
@@ -19,7 +22,18 @@ local ____postPlayerUpdateReordered = require("callbacks.subscriptions.postPlaye
|
|
|
19
22
|
local postPlayerUpdateReorderedFire = ____postPlayerUpdateReordered.postPlayerUpdateReorderedFire
|
|
20
23
|
local postPlayerUpdateReorderedHasSubscriptions = ____postPlayerUpdateReordered.postPlayerUpdateReorderedHasSubscriptions
|
|
21
24
|
function hasSubscriptions(self)
|
|
22
|
-
return (postPlayerInitReorderedHasSubscriptions(nil) or postPlayerUpdateReorderedHasSubscriptions(nil)) or postPlayerRenderReorderedHasSubscriptions(nil)
|
|
25
|
+
return ((postPlayerInitReorderedHasSubscriptions(nil) or postPEffectUpdateReorderedHasSubscriptions(nil)) or postPlayerUpdateReorderedHasSubscriptions(nil)) or postPlayerRenderReorderedHasSubscriptions(nil)
|
|
26
|
+
end
|
|
27
|
+
function postPEffectUpdate(self, player)
|
|
28
|
+
if not hasSubscriptions(nil) then
|
|
29
|
+
return
|
|
30
|
+
end
|
|
31
|
+
if v.run.postGameStartedFiredOnThisRun then
|
|
32
|
+
postPEffectUpdateReorderedFire(nil, player)
|
|
33
|
+
else
|
|
34
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
35
|
+
__TS__ArrayPush(v.run.postPEffectUpdateQueue, playerIndex)
|
|
36
|
+
end
|
|
23
37
|
end
|
|
24
38
|
function postPlayerInit(self, player)
|
|
25
39
|
if not hasSubscriptions(nil) then
|
|
@@ -68,17 +82,18 @@ function dequeue(self, playerIndexes, fireFunction)
|
|
|
68
82
|
do
|
|
69
83
|
local player = getPlayerFromIndex(nil, playerIndex)
|
|
70
84
|
if player == nil then
|
|
71
|
-
goto
|
|
85
|
+
goto __continue23
|
|
72
86
|
end
|
|
73
87
|
fireFunction(nil, player)
|
|
74
88
|
end
|
|
75
|
-
::
|
|
89
|
+
::__continue23::
|
|
76
90
|
end
|
|
77
91
|
arrayEmpty(nil, playerIndexes)
|
|
78
92
|
end
|
|
79
|
-
v = {run = {postGameStartedFiredOnThisRun = false, postPlayerInitQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
|
|
93
|
+
v = {run = {postGameStartedFiredOnThisRun = false, postPlayerInitQueue = {}, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
|
|
80
94
|
function ____exports.postPlayerReorderedCallbacksInit(self, mod)
|
|
81
95
|
saveDataManager(nil, "postPlayerReordered", v, hasSubscriptions)
|
|
96
|
+
mod:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, postPEffectUpdate)
|
|
82
97
|
mod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, postPlayerInit)
|
|
83
98
|
mod:AddCallback(ModCallbacks.MC_POST_PLAYER_UPDATE, postPlayerUpdate)
|
|
84
99
|
mod:AddCallback(ModCallbacks.MC_POST_PLAYER_RENDER, postPlayerRender)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions,
|
|
4
|
+
local hasSubscriptions, postPEffectUpdateReordered, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____array = require("functions.array")
|
|
@@ -16,7 +16,7 @@ local postTransformationHasSubscriptions = ____postTransformation.postTransforma
|
|
|
16
16
|
function hasSubscriptions(self)
|
|
17
17
|
return postTransformationHasSubscriptions(nil)
|
|
18
18
|
end
|
|
19
|
-
function
|
|
19
|
+
function postPEffectUpdateReordered(self, player)
|
|
20
20
|
if not hasSubscriptions(nil) then
|
|
21
21
|
return
|
|
22
22
|
end
|
|
@@ -46,6 +46,6 @@ v = {
|
|
|
46
46
|
}
|
|
47
47
|
function ____exports.postTransformationCallbackInit(self, mod)
|
|
48
48
|
saveDataManager(nil, "postTransformation", v, hasSubscriptions)
|
|
49
|
-
mod:AddCallbackCustom(ModCallbacksCustom.
|
|
49
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
50
50
|
end
|
|
51
51
|
return ____exports
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
require("lualib_bundle");
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local subscriptions = {}
|
|
5
|
+
function ____exports.postPEffectUpdateReorderedHasSubscriptions(self)
|
|
6
|
+
return #subscriptions > 0
|
|
7
|
+
end
|
|
8
|
+
function ____exports.postPEffectUpdateReorderedRegister(self, callback, character)
|
|
9
|
+
__TS__ArrayPush(subscriptions, {callback, character})
|
|
10
|
+
end
|
|
11
|
+
function ____exports.postPEffectUpdateReorderedFire(self, player)
|
|
12
|
+
local character = player:GetPlayerType()
|
|
13
|
+
for ____, ____value in ipairs(subscriptions) do
|
|
14
|
+
local callback
|
|
15
|
+
callback = ____value[1]
|
|
16
|
+
local callbackCharacter
|
|
17
|
+
callbackCharacter = ____value[2]
|
|
18
|
+
do
|
|
19
|
+
if (callbackCharacter ~= nil) and (callbackCharacter ~= character) then
|
|
20
|
+
goto __continue5
|
|
21
|
+
end
|
|
22
|
+
callback(nil, player)
|
|
23
|
+
end
|
|
24
|
+
::__continue5::
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
return ____exports
|
package/dist/functions/input.lua
CHANGED
|
@@ -132,7 +132,13 @@ function ____exports.isShootActionTriggeredOnAnyInput(self)
|
|
|
132
132
|
return false
|
|
133
133
|
end
|
|
134
134
|
function ____exports.keyboardToString(self, keyboard)
|
|
135
|
-
for
|
|
135
|
+
for ____, ____value in ipairs(
|
|
136
|
+
__TS__ObjectEntries(Keyboard)
|
|
137
|
+
) do
|
|
138
|
+
local keyName
|
|
139
|
+
keyName = ____value[1]
|
|
140
|
+
local keyCode
|
|
141
|
+
keyCode = ____value[2]
|
|
136
142
|
if keyCode == keyboard then
|
|
137
143
|
local withoutPrefix = __TS__StringSlice(keyName, #"KEY_")
|
|
138
144
|
local withoutUnderscores = string.gsub(withoutPrefix, "_", " ")
|
package/dist/functions/log.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export declare function logAllProjectileFlags(this: void, flags: int): void;
|
|
|
28
28
|
export declare function logAllTearFlags(this: void, flags: int): void;
|
|
29
29
|
/** Helper function for printing out every use flag that is turned on. Helpful when debugging. */
|
|
30
30
|
export declare function logAllUseFlags(this: void, flags: int): void;
|
|
31
|
+
/**
|
|
32
|
+
* Helper function for printing out every seed effect (i.e. Easter Egg) that is turned on for the
|
|
33
|
+
* particular run.
|
|
34
|
+
*/
|
|
35
|
+
export declare function logAllSeedEffects(this: void): void;
|
|
31
36
|
export declare function logArray<T>(this: void, array: T[]): void;
|
|
32
37
|
export declare function logColor(this: void, color: Color): void;
|
|
33
38
|
export declare function logEntity(this: void, entity: Entity): void;
|
package/dist/functions/log.lua
CHANGED
|
@@ -34,12 +34,25 @@ function ____exports.logAllFlags(flags, flagEnum, description)
|
|
|
34
34
|
description = description .. " "
|
|
35
35
|
end
|
|
36
36
|
____exports.log(("Logging all " .. description) .. "flags:")
|
|
37
|
-
|
|
37
|
+
local hasNoFlags = true
|
|
38
|
+
local i = 1
|
|
39
|
+
for ____, ____value in ipairs(
|
|
40
|
+
__TS__ObjectEntries(flagEnum)
|
|
41
|
+
) do
|
|
42
|
+
local key
|
|
43
|
+
key = ____value[1]
|
|
44
|
+
local value
|
|
45
|
+
value = ____value[2]
|
|
38
46
|
if hasFlag(nil, flags, value) then
|
|
39
47
|
____exports.log(
|
|
40
|
-
"
|
|
48
|
+
(((((" " .. tostring(i)) .. ") Has flag: ") .. key) .. " (") .. tostring(value)) .. ")"
|
|
41
49
|
)
|
|
50
|
+
hasNoFlags = false
|
|
42
51
|
end
|
|
52
|
+
i = i + 1
|
|
53
|
+
end
|
|
54
|
+
if hasNoFlags then
|
|
55
|
+
____exports.log(" n/a (no flags)")
|
|
43
56
|
end
|
|
44
57
|
end
|
|
45
58
|
function ____exports.logAllDamageFlags(flags)
|
|
@@ -51,6 +64,8 @@ end
|
|
|
51
64
|
function ____exports.logAllGameStateFlags()
|
|
52
65
|
local game = Game()
|
|
53
66
|
____exports.log("Logging all game state flags:")
|
|
67
|
+
local hasNoFlags = true
|
|
68
|
+
local i = 1
|
|
54
69
|
for ____, ____value in ipairs(
|
|
55
70
|
__TS__ObjectEntries(GameStateFlag)
|
|
56
71
|
) do
|
|
@@ -61,8 +76,15 @@ function ____exports.logAllGameStateFlags()
|
|
|
61
76
|
local gameStateFlag = value
|
|
62
77
|
local flagValue = game:GetStateFlag(gameStateFlag)
|
|
63
78
|
if flagValue then
|
|
64
|
-
____exports.log(
|
|
79
|
+
____exports.log(
|
|
80
|
+
(((((" " .. tostring(i)) .. ") Has flag: ") .. key) .. " (") .. tostring(value)) .. ")"
|
|
81
|
+
)
|
|
82
|
+
hasNoFlags = false
|
|
65
83
|
end
|
|
84
|
+
i = i + 1
|
|
85
|
+
end
|
|
86
|
+
if hasNoFlags then
|
|
87
|
+
____exports.log(" n/a (no flags)")
|
|
66
88
|
end
|
|
67
89
|
end
|
|
68
90
|
function ____exports.logAllProjectileFlags(flags)
|
|
@@ -74,6 +96,32 @@ end
|
|
|
74
96
|
function ____exports.logAllUseFlags(flags)
|
|
75
97
|
____exports.logAllFlags(flags, UseFlag, "use")
|
|
76
98
|
end
|
|
99
|
+
function ____exports.logAllSeedEffects()
|
|
100
|
+
local game = Game()
|
|
101
|
+
local seeds = game:GetSeeds()
|
|
102
|
+
____exports.log("Logging all seed effects:")
|
|
103
|
+
local hasNoSeedEffects = true
|
|
104
|
+
local i = 1
|
|
105
|
+
for ____, ____value in ipairs(
|
|
106
|
+
__TS__ObjectEntries(SeedEffect)
|
|
107
|
+
) do
|
|
108
|
+
local key
|
|
109
|
+
key = ____value[1]
|
|
110
|
+
local value
|
|
111
|
+
value = ____value[2]
|
|
112
|
+
local seedEffect = value
|
|
113
|
+
if seeds:HasSeedEffect(seedEffect) then
|
|
114
|
+
____exports.log(
|
|
115
|
+
(((((" " .. tostring(i)) .. ") ") .. key) .. " (") .. tostring(value)) .. ")"
|
|
116
|
+
)
|
|
117
|
+
hasNoSeedEffects = false
|
|
118
|
+
end
|
|
119
|
+
i = i + 1
|
|
120
|
+
end
|
|
121
|
+
if hasNoSeedEffects then
|
|
122
|
+
____exports.log(" n/a (no seed effects)")
|
|
123
|
+
end
|
|
124
|
+
end
|
|
77
125
|
function ____exports.logArray(array)
|
|
78
126
|
local arrayString = arrayToString(nil, array)
|
|
79
127
|
____exports.log("Array: " .. arrayString)
|
|
@@ -19,6 +19,7 @@ import { PostNewLevelReorderedCallbackType } from "../callbacks/subscriptions/po
|
|
|
19
19
|
import { PostNewRoomEarlyCallbackType } from "../callbacks/subscriptions/postNewRoomEarly";
|
|
20
20
|
import { PostNewRoomReorderedCallbackType } from "../callbacks/subscriptions/postNewRoomReordered";
|
|
21
21
|
import { PostNPCInitLateCallbackType } from "../callbacks/subscriptions/postNPCInitLate";
|
|
22
|
+
import { PostPEffectUpdateReorderedCallbackType } from "../callbacks/subscriptions/postPEffectUpdateReordered";
|
|
22
23
|
import { PostPickupCollectCallbackType } from "../callbacks/subscriptions/postPickupCollect";
|
|
23
24
|
import { PostPickupInitLateCallbackType } from "../callbacks/subscriptions/postPickupInitLate";
|
|
24
25
|
import { PostPlayerChangeHealthCallbackType } from "../callbacks/subscriptions/postPlayerChangeHealth";
|
|
@@ -57,6 +58,10 @@ export interface CallbackParametersCustom {
|
|
|
57
58
|
callback: PostPlayerInitReorderedCallbackType,
|
|
58
59
|
playerVariant?: PlayerVariant
|
|
59
60
|
];
|
|
61
|
+
[ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED]: [
|
|
62
|
+
callback: PostPEffectUpdateReorderedCallbackType,
|
|
63
|
+
character?: PlayerType
|
|
64
|
+
];
|
|
60
65
|
[ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED]: [
|
|
61
66
|
callback: PostPlayerUpdateReorderedCallbackType,
|
|
62
67
|
playerVariant?: PlayerVariant
|
|
@@ -10,43 +10,44 @@ export declare enum ModCallbacksCustom {
|
|
|
10
10
|
MC_POST_NEW_LEVEL_REORDERED = 1,
|
|
11
11
|
MC_POST_NEW_ROOM_REORDERED = 2,
|
|
12
12
|
MC_POST_PLAYER_INIT_REORDERED = 3,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
13
|
+
MC_POST_PEFFECT_UPDATE_REORDERED = 4,
|
|
14
|
+
MC_POST_PLAYER_UPDATE_REORDERED = 5,
|
|
15
|
+
MC_POST_PLAYER_RENDER_REORDERED = 6,
|
|
16
|
+
MC_POST_NEW_ROOM_EARLY = 7,
|
|
17
|
+
MC_PRE_NEW_LEVEL = 8,
|
|
18
|
+
MC_POST_PLAYER_INIT_LATE = 9,
|
|
19
|
+
MC_POST_TEAR_INIT_LATE = 10,
|
|
20
|
+
MC_POST_TEAR_INIT_VERY_LATE = 11,
|
|
21
|
+
MC_POST_FAMILIAR_INIT_LATE = 12,
|
|
22
|
+
MC_POST_BOMB_INIT_LATE = 13,
|
|
23
|
+
MC_POST_PICKUP_INIT_LATE = 14,
|
|
24
|
+
MC_POST_LASER_INIT_LATE = 15,
|
|
25
|
+
MC_POST_KNIFE_INIT_LATE = 16,
|
|
26
|
+
MC_POST_PROJECTILE_INIT_LATE = 17,
|
|
27
|
+
MC_POST_NPC_INIT_LATE = 18,
|
|
28
|
+
MC_POST_EFFECT_INIT_LATE = 19,
|
|
29
|
+
MC_POST_PICKUP_COLLECT = 20,
|
|
30
|
+
MC_PRE_ITEM_PICKUP = 21,
|
|
31
|
+
MC_POST_ITEM_PICKUP = 22,
|
|
32
|
+
MC_POST_PLAYER_CHANGE_TYPE = 23,
|
|
33
|
+
MC_POST_PLAYER_CHANGE_HEALTH = 24,
|
|
34
|
+
MC_POST_PLAYER_FATAL_DAMAGE = 25,
|
|
35
|
+
MC_PRE_CUSTOM_REVIVE = 26,
|
|
36
|
+
MC_POST_CUSTOM_REVIVE = 27,
|
|
37
|
+
MC_POST_FLIP = 28,
|
|
38
|
+
MC_POST_FIRST_FLIP = 29,
|
|
39
|
+
MC_POST_ESAU_JR = 30,
|
|
40
|
+
MC_POST_FIRST_ESAU_JR = 31,
|
|
41
|
+
MC_POST_TRANSFORMATION = 32,
|
|
42
|
+
MC_POST_PURCHASE = 33,
|
|
43
|
+
MC_POST_SACRIFICE = 34,
|
|
44
|
+
MC_POST_CURSED_TELEPORT = 35,
|
|
45
|
+
MC_POST_TRINKET_BREAK = 36,
|
|
46
|
+
MC_POST_SLOT_INIT = 37,
|
|
47
|
+
MC_POST_SLOT_UPDATE = 38,
|
|
48
|
+
MC_POST_SLOT_RENDER = 39,
|
|
49
|
+
MC_POST_SLOT_DESTROYED = 40,
|
|
50
|
+
MC_POST_GRID_ENTITY_INIT = 41,
|
|
51
|
+
MC_POST_GRID_ENTITY_UPDATE = 42,
|
|
52
|
+
MC_POST_GRID_ENTITY_REMOVE = 43
|
|
52
53
|
}
|
|
@@ -9,82 +9,84 @@ ____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED = 2
|
|
|
9
9
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_REORDERED] = "MC_POST_NEW_ROOM_REORDERED"
|
|
10
10
|
____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED = 3
|
|
11
11
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_REORDERED] = "MC_POST_PLAYER_INIT_REORDERED"
|
|
12
|
-
____exports.ModCallbacksCustom.
|
|
12
|
+
____exports.ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED = 4
|
|
13
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED] = "MC_POST_PEFFECT_UPDATE_REORDERED"
|
|
14
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED = 5
|
|
13
15
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED] = "MC_POST_PLAYER_UPDATE_REORDERED"
|
|
14
|
-
____exports.ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED =
|
|
16
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED = 6
|
|
15
17
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_RENDER_REORDERED] = "MC_POST_PLAYER_RENDER_REORDERED"
|
|
16
|
-
____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY =
|
|
18
|
+
____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY = 7
|
|
17
19
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY] = "MC_POST_NEW_ROOM_EARLY"
|
|
18
|
-
____exports.ModCallbacksCustom.MC_PRE_NEW_LEVEL =
|
|
20
|
+
____exports.ModCallbacksCustom.MC_PRE_NEW_LEVEL = 8
|
|
19
21
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_NEW_LEVEL] = "MC_PRE_NEW_LEVEL"
|
|
20
|
-
____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE =
|
|
22
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE = 9
|
|
21
23
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_INIT_LATE] = "MC_POST_PLAYER_INIT_LATE"
|
|
22
|
-
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_LATE =
|
|
24
|
+
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_LATE = 10
|
|
23
25
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_LATE] = "MC_POST_TEAR_INIT_LATE"
|
|
24
|
-
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE =
|
|
26
|
+
____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE = 11
|
|
25
27
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TEAR_INIT_VERY_LATE] = "MC_POST_TEAR_INIT_VERY_LATE"
|
|
26
|
-
____exports.ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE =
|
|
28
|
+
____exports.ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE = 12
|
|
27
29
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE] = "MC_POST_FAMILIAR_INIT_LATE"
|
|
28
|
-
____exports.ModCallbacksCustom.MC_POST_BOMB_INIT_LATE =
|
|
30
|
+
____exports.ModCallbacksCustom.MC_POST_BOMB_INIT_LATE = 13
|
|
29
31
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BOMB_INIT_LATE] = "MC_POST_BOMB_INIT_LATE"
|
|
30
|
-
____exports.ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE =
|
|
32
|
+
____exports.ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE = 14
|
|
31
33
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE] = "MC_POST_PICKUP_INIT_LATE"
|
|
32
|
-
____exports.ModCallbacksCustom.MC_POST_LASER_INIT_LATE =
|
|
34
|
+
____exports.ModCallbacksCustom.MC_POST_LASER_INIT_LATE = 15
|
|
33
35
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_LASER_INIT_LATE] = "MC_POST_LASER_INIT_LATE"
|
|
34
|
-
____exports.ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE =
|
|
36
|
+
____exports.ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE = 16
|
|
35
37
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE] = "MC_POST_KNIFE_INIT_LATE"
|
|
36
|
-
____exports.ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE =
|
|
38
|
+
____exports.ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE = 17
|
|
37
39
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE] = "MC_POST_PROJECTILE_INIT_LATE"
|
|
38
|
-
____exports.ModCallbacksCustom.MC_POST_NPC_INIT_LATE =
|
|
40
|
+
____exports.ModCallbacksCustom.MC_POST_NPC_INIT_LATE = 18
|
|
39
41
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NPC_INIT_LATE] = "MC_POST_NPC_INIT_LATE"
|
|
40
|
-
____exports.ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE =
|
|
42
|
+
____exports.ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE = 19
|
|
41
43
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_EFFECT_INIT_LATE] = "MC_POST_EFFECT_INIT_LATE"
|
|
42
|
-
____exports.ModCallbacksCustom.MC_POST_PICKUP_COLLECT =
|
|
44
|
+
____exports.ModCallbacksCustom.MC_POST_PICKUP_COLLECT = 20
|
|
43
45
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_COLLECT] = "MC_POST_PICKUP_COLLECT"
|
|
44
|
-
____exports.ModCallbacksCustom.MC_PRE_ITEM_PICKUP =
|
|
46
|
+
____exports.ModCallbacksCustom.MC_PRE_ITEM_PICKUP = 21
|
|
45
47
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_ITEM_PICKUP] = "MC_PRE_ITEM_PICKUP"
|
|
46
|
-
____exports.ModCallbacksCustom.MC_POST_ITEM_PICKUP =
|
|
48
|
+
____exports.ModCallbacksCustom.MC_POST_ITEM_PICKUP = 22
|
|
47
49
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ITEM_PICKUP] = "MC_POST_ITEM_PICKUP"
|
|
48
|
-
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE =
|
|
50
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE = 23
|
|
49
51
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_TYPE] = "MC_POST_PLAYER_CHANGE_TYPE"
|
|
50
|
-
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH =
|
|
52
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH = 24
|
|
51
53
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_CHANGE_HEALTH] = "MC_POST_PLAYER_CHANGE_HEALTH"
|
|
52
|
-
____exports.ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE =
|
|
54
|
+
____exports.ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE = 25
|
|
53
55
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PLAYER_FATAL_DAMAGE] = "MC_POST_PLAYER_FATAL_DAMAGE"
|
|
54
|
-
____exports.ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE =
|
|
56
|
+
____exports.ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE = 26
|
|
55
57
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_PRE_CUSTOM_REVIVE] = "MC_PRE_CUSTOM_REVIVE"
|
|
56
|
-
____exports.ModCallbacksCustom.MC_POST_CUSTOM_REVIVE =
|
|
58
|
+
____exports.ModCallbacksCustom.MC_POST_CUSTOM_REVIVE = 27
|
|
57
59
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_REVIVE] = "MC_POST_CUSTOM_REVIVE"
|
|
58
|
-
____exports.ModCallbacksCustom.MC_POST_FLIP =
|
|
60
|
+
____exports.ModCallbacksCustom.MC_POST_FLIP = 28
|
|
59
61
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FLIP] = "MC_POST_FLIP"
|
|
60
|
-
____exports.ModCallbacksCustom.MC_POST_FIRST_FLIP =
|
|
62
|
+
____exports.ModCallbacksCustom.MC_POST_FIRST_FLIP = 29
|
|
61
63
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FIRST_FLIP] = "MC_POST_FIRST_FLIP"
|
|
62
|
-
____exports.ModCallbacksCustom.MC_POST_ESAU_JR =
|
|
64
|
+
____exports.ModCallbacksCustom.MC_POST_ESAU_JR = 30
|
|
63
65
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ESAU_JR] = "MC_POST_ESAU_JR"
|
|
64
|
-
____exports.ModCallbacksCustom.MC_POST_FIRST_ESAU_JR =
|
|
66
|
+
____exports.ModCallbacksCustom.MC_POST_FIRST_ESAU_JR = 31
|
|
65
67
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FIRST_ESAU_JR] = "MC_POST_FIRST_ESAU_JR"
|
|
66
|
-
____exports.ModCallbacksCustom.MC_POST_TRANSFORMATION =
|
|
68
|
+
____exports.ModCallbacksCustom.MC_POST_TRANSFORMATION = 32
|
|
67
69
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRANSFORMATION] = "MC_POST_TRANSFORMATION"
|
|
68
|
-
____exports.ModCallbacksCustom.MC_POST_PURCHASE =
|
|
70
|
+
____exports.ModCallbacksCustom.MC_POST_PURCHASE = 33
|
|
69
71
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PURCHASE] = "MC_POST_PURCHASE"
|
|
70
|
-
____exports.ModCallbacksCustom.MC_POST_SACRIFICE =
|
|
72
|
+
____exports.ModCallbacksCustom.MC_POST_SACRIFICE = 34
|
|
71
73
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SACRIFICE] = "MC_POST_SACRIFICE"
|
|
72
|
-
____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT =
|
|
74
|
+
____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT = 35
|
|
73
75
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT] = "MC_POST_CURSED_TELEPORT"
|
|
74
|
-
____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK =
|
|
76
|
+
____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK = 36
|
|
75
77
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK] = "MC_POST_TRINKET_BREAK"
|
|
76
|
-
____exports.ModCallbacksCustom.MC_POST_SLOT_INIT =
|
|
78
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 37
|
|
77
79
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_INIT] = "MC_POST_SLOT_INIT"
|
|
78
|
-
____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE =
|
|
80
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 38
|
|
79
81
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE] = "MC_POST_SLOT_UPDATE"
|
|
80
|
-
____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER =
|
|
82
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 39
|
|
81
83
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER] = "MC_POST_SLOT_RENDER"
|
|
82
|
-
____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED =
|
|
84
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 40
|
|
83
85
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
|
|
84
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT =
|
|
86
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 41
|
|
85
87
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
|
|
86
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE =
|
|
88
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 42
|
|
87
89
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
|
|
88
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE =
|
|
90
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 43
|
|
89
91
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
|
|
90
92
|
return ____exports
|
|
@@ -42,6 +42,8 @@ local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReo
|
|
|
42
42
|
local postNewRoomReorderedRegister = ____postNewRoomReordered.postNewRoomReorderedRegister
|
|
43
43
|
local ____postNPCInitLate = require("callbacks.subscriptions.postNPCInitLate")
|
|
44
44
|
local postNPCInitLateRegister = ____postNPCInitLate.postNPCInitLateRegister
|
|
45
|
+
local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
|
|
46
|
+
local postPEffectUpdateReorderedRegister = ____postPEffectUpdateReordered.postPEffectUpdateReorderedRegister
|
|
45
47
|
local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
|
|
46
48
|
local postPickupCollectRegister = ____postPickupCollect.postPickupCollectRegister
|
|
47
49
|
local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
|
|
@@ -135,6 +137,12 @@ function getCallbackRegisterFunction(self, callbackID)
|
|
|
135
137
|
return postPlayerInitReorderedRegister
|
|
136
138
|
end
|
|
137
139
|
end
|
|
140
|
+
____cond18 = ____cond18 or (____switch18 == ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED)
|
|
141
|
+
if ____cond18 then
|
|
142
|
+
do
|
|
143
|
+
return postPEffectUpdateReorderedRegister
|
|
144
|
+
end
|
|
145
|
+
end
|
|
138
146
|
____cond18 = ____cond18 or (____switch18 == ModCallbacksCustom.MC_POST_PLAYER_UPDATE_REORDERED)
|
|
139
147
|
if ____cond18 then
|
|
140
148
|
do
|