isaacscript-common 1.2.140 → 1.2.143
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/postSlotRender.d.ts +1 -0
- package/dist/callbacks/postSlotRender.lua +73 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +2 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +25 -0
- package/dist/features/playerInventory.d.ts +6 -0
- package/dist/features/playerInventory.lua +76 -0
- package/dist/functions/playerHealth.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.lua +5 -0
- package/dist/types/CallbackParametersCustom.d.ts +5 -0
- package/dist/types/ModCallbacksCustom.d.ts +10 -9
- package/dist/types/ModCallbacksCustom.lua +11 -9
- package/dist/types/ModUpgraded.lua +8 -0
- package/dist/upgradeMod.lua +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local hasSubscriptions, postRender, checkSlotAnimationChanged, checkSlotBroken, BROKEN_ANIMATIONS, v
|
|
7
|
+
local ____exports = require("features.saveDataManager.exports")
|
|
8
|
+
local saveDataManager = ____exports.saveDataManager
|
|
9
|
+
local ____entitySpecific = require("functions.entitySpecific")
|
|
10
|
+
local getSlots = ____entitySpecific.getSlots
|
|
11
|
+
local ____DefaultMap = require("types.DefaultMap")
|
|
12
|
+
local DefaultMap = ____DefaultMap.DefaultMap
|
|
13
|
+
local ____postSlotAnimationChanged = require("callbacks.subscriptions.postSlotAnimationChanged")
|
|
14
|
+
local postSlotAnimationChangedFire = ____postSlotAnimationChanged.postSlotAnimationChangedFire
|
|
15
|
+
local postSlotAnimationChangedHasSubscriptions = ____postSlotAnimationChanged.postSlotAnimationChangedHasSubscriptions
|
|
16
|
+
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
17
|
+
local postSlotDestroyedFire = ____postSlotDestroyed.postSlotDestroyedFire
|
|
18
|
+
local postSlotDestroyedHasSubscriptions = ____postSlotDestroyed.postSlotDestroyedHasSubscriptions
|
|
19
|
+
local ____postSlotRender = require("callbacks.subscriptions.postSlotRender")
|
|
20
|
+
local postSlotRenderFire = ____postSlotRender.postSlotRenderFire
|
|
21
|
+
local postSlotRenderHasSubscriptions = ____postSlotRender.postSlotRenderHasSubscriptions
|
|
22
|
+
function hasSubscriptions(self)
|
|
23
|
+
return postSlotRenderHasSubscriptions(nil) or postSlotDestroyedHasSubscriptions(nil) or postSlotAnimationChangedHasSubscriptions(nil)
|
|
24
|
+
end
|
|
25
|
+
function postRender(self)
|
|
26
|
+
if not hasSubscriptions(nil) then
|
|
27
|
+
return
|
|
28
|
+
end
|
|
29
|
+
for ____, slot in ipairs(getSlots(nil)) do
|
|
30
|
+
postSlotRenderFire(nil, slot)
|
|
31
|
+
checkSlotAnimationChanged(nil, slot)
|
|
32
|
+
checkSlotBroken(nil, slot)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
function checkSlotAnimationChanged(self, slot)
|
|
36
|
+
local sprite = slot:GetSprite()
|
|
37
|
+
local currentAnimation = sprite:GetAnimation()
|
|
38
|
+
local ptrHash = GetPtrHash(slot)
|
|
39
|
+
local previousAnimation = v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
|
|
40
|
+
v.room.slotAnimations:set(ptrHash, currentAnimation)
|
|
41
|
+
if currentAnimation ~= previousAnimation then
|
|
42
|
+
postSlotAnimationChangedFire(nil, slot, previousAnimation, currentAnimation)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
function checkSlotBroken(self, slot)
|
|
46
|
+
local ptrHash = GetPtrHash(slot)
|
|
47
|
+
local alreadyBroken = v.room.brokenSlots:has(ptrHash)
|
|
48
|
+
if alreadyBroken then
|
|
49
|
+
return
|
|
50
|
+
end
|
|
51
|
+
local sprite = slot:GetSprite()
|
|
52
|
+
local animation = sprite:GetAnimation()
|
|
53
|
+
if BROKEN_ANIMATIONS:has(animation) then
|
|
54
|
+
v.room.brokenSlots:add(ptrHash)
|
|
55
|
+
postSlotDestroyedFire(nil, slot)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
BROKEN_ANIMATIONS = __TS__New(Set, {"Broken", "Death"})
|
|
59
|
+
v = {room = {
|
|
60
|
+
slotAnimations = __TS__New(
|
|
61
|
+
DefaultMap,
|
|
62
|
+
function(____, _key, slot)
|
|
63
|
+
local sprite = slot:GetSprite()
|
|
64
|
+
return sprite:GetAnimation()
|
|
65
|
+
end
|
|
66
|
+
),
|
|
67
|
+
brokenSlots = __TS__New(Set)
|
|
68
|
+
}}
|
|
69
|
+
function ____exports.postSlotRenderCallbacksInit(self, mod)
|
|
70
|
+
saveDataManager(nil, "postSlotRender", v, hasSubscriptions)
|
|
71
|
+
mod:AddCallback(ModCallbacks.MC_POST_RENDER, postRender)
|
|
72
|
+
end
|
|
73
|
+
return ____exports
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local subscriptions = {}
|
|
6
|
+
function ____exports.postSlotAnimationChangedHasSubscriptions(self)
|
|
7
|
+
return #subscriptions > 0
|
|
8
|
+
end
|
|
9
|
+
function ____exports.postSlotAnimationChangedRegister(self, callback, slotVariant)
|
|
10
|
+
__TS__ArrayPush(subscriptions, {callback, slotVariant})
|
|
11
|
+
end
|
|
12
|
+
function ____exports.postSlotAnimationChangedFire(self, slot, previousAnimation, currentAnimation)
|
|
13
|
+
for ____, ____value in ipairs(subscriptions) do
|
|
14
|
+
local callback = ____value[1]
|
|
15
|
+
local slotVariant = ____value[2]
|
|
16
|
+
do
|
|
17
|
+
if slotVariant ~= nil and slotVariant ~= slot.Variant then
|
|
18
|
+
goto __continue5
|
|
19
|
+
end
|
|
20
|
+
callback(nil, slot, previousAnimation, currentAnimation)
|
|
21
|
+
end
|
|
22
|
+
::__continue5::
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
return ____exports
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to get all of the collectibles that the player has gotten so far on this run, in
|
|
4
|
+
* order. This does not include active items.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPlayerInventory(player: EntityPlayer): CollectibleType[];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local Set = ____lualib.Set
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
6
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
|
+
local ____exports = {}
|
|
8
|
+
local newPlayerInventory, useItemD4, postPlayerInit, postItemPickup, v
|
|
9
|
+
local ____featuresInitialized = require("featuresInitialized")
|
|
10
|
+
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
11
|
+
local ____array = require("functions.array")
|
|
12
|
+
local copyArray = ____array.copyArray
|
|
13
|
+
local ____collectibleSet = require("functions.collectibleSet")
|
|
14
|
+
local getCollectibleSet = ____collectibleSet.getCollectibleSet
|
|
15
|
+
local ____player = require("functions.player")
|
|
16
|
+
local getPlayerIndex = ____player.getPlayerIndex
|
|
17
|
+
local ____utils = require("functions.utils")
|
|
18
|
+
local ____repeat = ____utils["repeat"]
|
|
19
|
+
local ____DefaultMap = require("types.DefaultMap")
|
|
20
|
+
local DefaultMap = ____DefaultMap.DefaultMap
|
|
21
|
+
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
22
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
23
|
+
local ____exports = require("features.saveDataManager.exports")
|
|
24
|
+
local saveDataManager = ____exports.saveDataManager
|
|
25
|
+
function newPlayerInventory(self, player)
|
|
26
|
+
local inventory = {}
|
|
27
|
+
local collectibleSet = getCollectibleSet(nil)
|
|
28
|
+
for ____, collectibleType in __TS__Iterator(collectibleSet:values()) do
|
|
29
|
+
local numCollectibles = player:GetCollectibleNum(collectibleType, true)
|
|
30
|
+
____repeat(
|
|
31
|
+
nil,
|
|
32
|
+
numCollectibles,
|
|
33
|
+
function()
|
|
34
|
+
__TS__ArrayPush(inventory, collectibleType)
|
|
35
|
+
end
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
return inventory
|
|
39
|
+
end
|
|
40
|
+
function useItemD4(self, _collectibleType, _rng, player)
|
|
41
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
42
|
+
local inventory = newPlayerInventory(nil, player)
|
|
43
|
+
v.run.playersInventory:set(playerIndex, inventory)
|
|
44
|
+
end
|
|
45
|
+
function postPlayerInit(self, player)
|
|
46
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
47
|
+
if not v.run.playersInventory:has(playerIndex) then
|
|
48
|
+
local inventory = newPlayerInventory(nil, player)
|
|
49
|
+
v.run.playersInventory:set(playerIndex, inventory)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
function postItemPickup(self, player, pickingUpItem)
|
|
53
|
+
if pickingUpItem.itemType == ItemType.ITEM_PASSIVE or pickingUpItem.itemType == ItemType.ITEM_FAMILIAR then
|
|
54
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
55
|
+
local inventory = v.run.playersInventory:getAndSetDefault(playerIndex, player)
|
|
56
|
+
__TS__ArrayPush(inventory, pickingUpItem.subType)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
local FEATURE_NAME = "player inventory tracker"
|
|
60
|
+
v = {run = {playersInventory = __TS__New(
|
|
61
|
+
DefaultMap,
|
|
62
|
+
function(____, _key, player) return newPlayerInventory(nil, player) end
|
|
63
|
+
)}}
|
|
64
|
+
function ____exports.playerInventoryInit(self, mod)
|
|
65
|
+
saveDataManager(nil, "playerInventory", v)
|
|
66
|
+
mod:AddCallback(ModCallbacks.MC_USE_ITEM, useItemD4, CollectibleType.COLLECTIBLE_D4)
|
|
67
|
+
mod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, postPlayerInit)
|
|
68
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_ITEM_PICKUP, postItemPickup)
|
|
69
|
+
end
|
|
70
|
+
function ____exports.getPlayerInventory(self, player)
|
|
71
|
+
errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
|
|
72
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
73
|
+
local inventory = v.run.playersInventory:getAndSetDefault(playerIndex, player)
|
|
74
|
+
return copyArray(nil, inventory)
|
|
75
|
+
end
|
|
76
|
+
return ____exports
|
|
@@ -3,9 +3,9 @@ import { HealthType } from "../types/HealthType";
|
|
|
3
3
|
import { PlayerHealth } from "../types/PlayerHealth";
|
|
4
4
|
export declare function addPlayerHealthType(player: EntityPlayer, healthType: HealthType, numHearts: int): void;
|
|
5
5
|
/**
|
|
6
|
-
* Helper function to get an
|
|
7
|
-
* `setPlayerHealth` function to restore the player's health back to a certain
|
|
8
|
-
* later time.
|
|
6
|
+
* Helper function to get an object representing the player's health. You can use this in
|
|
7
|
+
* combination with the `setPlayerHealth` function to restore the player's health back to a certain
|
|
8
|
+
* configuration at a later time.
|
|
9
9
|
*
|
|
10
10
|
* This is based on the `REVEL.StoreHealth` function in the Revelations mod.
|
|
11
11
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { addConsoleCommand, enableExtraConsoleCommands, removeConsoleCommand, }
|
|
|
9
9
|
export { forgottenSwitch } from "./features/forgottenSwitch";
|
|
10
10
|
export { getCollectibleItemPoolType } from "./features/getCollectibleItemPoolType";
|
|
11
11
|
export * from "./features/isPonyActive";
|
|
12
|
+
export { getPlayerInventory } from "./features/playerInventory";
|
|
12
13
|
export { preventCollectibleRotate } from "./features/preventCollectibleRotate";
|
|
13
14
|
export { runInNGameFrames, runInNRenderFrames, runNextGameFrame, runNextRenderFrame, } from "./features/runInNFrames";
|
|
14
15
|
export * from "./features/saveDataManager/exports";
|
package/dist/index.lua
CHANGED
|
@@ -86,6 +86,11 @@ do
|
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
|
+
do
|
|
90
|
+
local ____playerInventory = require("features.playerInventory")
|
|
91
|
+
local getPlayerInventory = ____playerInventory.getPlayerInventory
|
|
92
|
+
____exports.getPlayerInventory = getPlayerInventory
|
|
93
|
+
end
|
|
89
94
|
do
|
|
90
95
|
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
91
96
|
local preventCollectibleRotate = ____preventCollectibleRotate.preventCollectibleRotate
|
|
@@ -37,6 +37,7 @@ import { PostPlayerUpdateReorderedCallbackType } from "../callbacks/subscription
|
|
|
37
37
|
import { PostProjectileInitLateCallbackType } from "../callbacks/subscriptions/postProjectileInitLate";
|
|
38
38
|
import { PostPurchaseCallbackType } from "../callbacks/subscriptions/postPurchase";
|
|
39
39
|
import { PostSacrificeCallbackType } from "../callbacks/subscriptions/postSacrifice";
|
|
40
|
+
import { PostSlotAnimationChangedCallbackType } from "../callbacks/subscriptions/postSlotAnimationChanged";
|
|
40
41
|
import { PostSlotDestroyedCallbackType } from "../callbacks/subscriptions/postSlotDestroyed";
|
|
41
42
|
import { PostSlotInitCallbackType } from "../callbacks/subscriptions/postSlotInit";
|
|
42
43
|
import { PostSlotRenderCallbackType } from "../callbacks/subscriptions/postSlotRender";
|
|
@@ -196,6 +197,10 @@ export interface CallbackParametersCustom {
|
|
|
196
197
|
callback: PostSlotRenderCallbackType,
|
|
197
198
|
slotVariant?: SlotVariant
|
|
198
199
|
];
|
|
200
|
+
[ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED]: [
|
|
201
|
+
callback: PostSlotAnimationChangedCallbackType,
|
|
202
|
+
slotVariant?: SlotVariant
|
|
203
|
+
];
|
|
199
204
|
[ModCallbacksCustom.MC_POST_SLOT_DESTROYED]: [
|
|
200
205
|
callback: PostSlotDestroyedCallbackType,
|
|
201
206
|
slotVariant?: SlotVariant
|
|
@@ -47,13 +47,14 @@ export declare enum ModCallbacksCustom {
|
|
|
47
47
|
MC_POST_SLOT_INIT = 38,
|
|
48
48
|
MC_POST_SLOT_UPDATE = 39,
|
|
49
49
|
MC_POST_SLOT_RENDER = 40,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
MC_POST_SLOT_ANIMATION_CHANGED = 41,
|
|
51
|
+
MC_POST_SLOT_DESTROYED = 42,
|
|
52
|
+
MC_POST_GRID_ENTITY_INIT = 43,
|
|
53
|
+
MC_POST_GRID_ENTITY_UPDATE = 44,
|
|
54
|
+
MC_POST_GRID_ENTITY_REMOVE = 45,
|
|
55
|
+
MC_POST_GRID_ENTITY_STATE_CHANGE = 46,
|
|
56
|
+
MC_POST_GRID_ENTITY_BROKEN = 47,
|
|
57
|
+
MC_POST_GRID_ENTITY_COLLISION = 48,
|
|
58
|
+
MC_POST_BONE_SWING = 49,
|
|
59
|
+
MC_POST_CUSTOM_DOOR_ENTER = 50
|
|
59
60
|
}
|
|
@@ -83,22 +83,24 @@ ____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 39
|
|
|
83
83
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE] = "MC_POST_SLOT_UPDATE"
|
|
84
84
|
____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 40
|
|
85
85
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER] = "MC_POST_SLOT_RENDER"
|
|
86
|
-
____exports.ModCallbacksCustom.
|
|
86
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 41
|
|
87
|
+
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = "MC_POST_SLOT_ANIMATION_CHANGED"
|
|
88
|
+
____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 42
|
|
87
89
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
|
|
88
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT =
|
|
90
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 43
|
|
89
91
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
|
|
90
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE =
|
|
92
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 44
|
|
91
93
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
|
|
92
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE =
|
|
94
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 45
|
|
93
95
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
|
|
94
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE =
|
|
96
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 46
|
|
95
97
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE] = "MC_POST_GRID_ENTITY_STATE_CHANGE"
|
|
96
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN =
|
|
98
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 47
|
|
97
99
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN] = "MC_POST_GRID_ENTITY_BROKEN"
|
|
98
|
-
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION =
|
|
100
|
+
____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 48
|
|
99
101
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
|
|
100
|
-
____exports.ModCallbacksCustom.MC_POST_BONE_SWING =
|
|
102
|
+
____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 49
|
|
101
103
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
|
|
102
|
-
____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER =
|
|
104
|
+
____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 50
|
|
103
105
|
____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
|
|
104
106
|
return ____exports
|
|
@@ -81,6 +81,8 @@ local ____postPurchase = require("callbacks.subscriptions.postPurchase")
|
|
|
81
81
|
local postPurchaseRegister = ____postPurchase.postPurchaseRegister
|
|
82
82
|
local ____postSacrifice = require("callbacks.subscriptions.postSacrifice")
|
|
83
83
|
local postSacrificeRegister = ____postSacrifice.postSacrificeRegister
|
|
84
|
+
local ____postSlotAnimationChanged = require("callbacks.subscriptions.postSlotAnimationChanged")
|
|
85
|
+
local postSlotAnimationChangedRegister = ____postSlotAnimationChanged.postSlotAnimationChangedRegister
|
|
84
86
|
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
85
87
|
local postSlotDestroyedRegister = ____postSlotDestroyed.postSlotDestroyedRegister
|
|
86
88
|
local ____postSlotInit = require("callbacks.subscriptions.postSlotInit")
|
|
@@ -370,6 +372,12 @@ function getCallbackRegisterFunction(self, callbackID)
|
|
|
370
372
|
return postSlotRenderRegister
|
|
371
373
|
end
|
|
372
374
|
end
|
|
375
|
+
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED
|
|
376
|
+
if ____cond19 then
|
|
377
|
+
do
|
|
378
|
+
return postSlotAnimationChangedRegister
|
|
379
|
+
end
|
|
380
|
+
end
|
|
373
381
|
____cond19 = ____cond19 or ____switch19 == ModCallbacksCustom.MC_POST_SLOT_DESTROYED
|
|
374
382
|
if ____cond19 then
|
|
375
383
|
do
|
package/dist/upgradeMod.lua
CHANGED
|
@@ -57,8 +57,8 @@ local ____postSacrifice = require("callbacks.postSacrifice")
|
|
|
57
57
|
local postSacrificeCallbackInit = ____postSacrifice.postSacrificeCallbackInit
|
|
58
58
|
local ____postSlotInitUpdate = require("callbacks.postSlotInitUpdate")
|
|
59
59
|
local postSlotInitUpdateCallbacksInit = ____postSlotInitUpdate.postSlotInitUpdateCallbacksInit
|
|
60
|
-
local
|
|
61
|
-
local
|
|
60
|
+
local ____postSlotRender = require("callbacks.postSlotRender")
|
|
61
|
+
local postSlotRenderCallbacksInit = ____postSlotRender.postSlotRenderCallbacksInit
|
|
62
62
|
local ____postTearInitLate = require("callbacks.postTearInitLate")
|
|
63
63
|
local postTearInitLateCallbackInit = ____postTearInitLate.postTearInitLateCallbackInit
|
|
64
64
|
local ____postTearInitVeryLate = require("callbacks.postTearInitVeryLate")
|
|
@@ -85,6 +85,8 @@ local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolT
|
|
|
85
85
|
local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
|
|
86
86
|
local ____isPonyActive = require("features.isPonyActive")
|
|
87
87
|
local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
|
|
88
|
+
local ____playerInventory = require("features.playerInventory")
|
|
89
|
+
local playerInventoryInit = ____playerInventory.playerInventoryInit
|
|
88
90
|
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
89
91
|
local preventCollectibleRotateInit = ____preventCollectibleRotate.preventCollectibleRotateInit
|
|
90
92
|
local ____runInNFrames = require("features.runInNFrames")
|
|
@@ -130,7 +132,7 @@ function initCustomCallbacks(self, mod)
|
|
|
130
132
|
postTrinketBreakCallbackInit(nil, mod)
|
|
131
133
|
postCursedTeleportCallbackInit(nil, mod)
|
|
132
134
|
postSlotInitUpdateCallbacksInit(nil, mod)
|
|
133
|
-
|
|
135
|
+
postSlotRenderCallbacksInit(nil, mod)
|
|
134
136
|
postGridEntityCallbacksInit(nil, mod)
|
|
135
137
|
postGridEntityCollisionInit(nil, mod)
|
|
136
138
|
postBoneSwingCallbackInit(nil, mod)
|
|
@@ -146,6 +148,7 @@ function initFeatures(self, mod)
|
|
|
146
148
|
runInNFramesInit(nil, mod)
|
|
147
149
|
sirenHelpersInit(nil, mod)
|
|
148
150
|
isPonyActiveInit(nil, mod)
|
|
151
|
+
playerInventoryInit(nil, mod)
|
|
149
152
|
end
|
|
150
153
|
function ____exports.upgradeMod(self, modVanilla, verbose)
|
|
151
154
|
if verbose == nil then
|