isaacscript-common 1.2.288 → 1.2.291

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.
Files changed (28) hide show
  1. package/dist/callbacks/postEffectStateChanged.d.ts +1 -0
  2. package/dist/callbacks/postEffectStateChanged.lua +35 -0
  3. package/dist/callbacks/postFamiliarStateChanged.d.ts +1 -0
  4. package/dist/callbacks/postFamiliarStateChanged.lua +35 -0
  5. package/dist/callbacks/postItemDischarged.d.ts +2 -0
  6. package/dist/callbacks/postItemDischarged.lua +99 -0
  7. package/dist/callbacks/postNPCStateChanged.d.ts +1 -0
  8. package/dist/callbacks/postNPCStateChanged.lua +35 -0
  9. package/dist/callbacks/postPickupStateChanged.d.ts +1 -0
  10. package/dist/callbacks/postPickupStateChanged.lua +35 -0
  11. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +2 -0
  12. package/dist/callbacks/subscriptions/postEffectStateChanged.lua +23 -0
  13. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +2 -0
  14. package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +23 -0
  15. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +2 -0
  16. package/dist/callbacks/subscriptions/postItemDischarged.lua +23 -0
  17. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +2 -0
  18. package/dist/callbacks/subscriptions/postNPCStateChanged.lua +27 -0
  19. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +2 -0
  20. package/dist/callbacks/subscriptions/postPickupStateChanged.lua +23 -0
  21. package/dist/enums/ModCallbacksCustom.d.ts +18 -13
  22. package/dist/enums/ModCallbacksCustom.lua +23 -13
  23. package/dist/functions/pocketItems.d.ts +5 -0
  24. package/dist/functions/pocketItems.lua +9 -0
  25. package/dist/objects/callbackRegisterFunctions.lua +15 -0
  26. package/dist/types/AddCallbackParametersCustom.d.ts +26 -0
  27. package/dist/upgradeMod.lua +15 -0
  28. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postEffectUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postEffectStateChanged = require("callbacks.subscriptions.postEffectStateChanged")
10
+ local postEffectStateChangedFire = ____postEffectStateChanged.postEffectStateChangedFire
11
+ local postEffectStateChangedHasSubscriptions = ____postEffectStateChanged.postEffectStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postEffectStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postEffectUpdate(self, effect)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(effect)
20
+ local previousState = v.run.effectStateMap:getAndSetDefault(ptrHash, effect.State)
21
+ local currentState = effect.State
22
+ v.run.effectStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postEffectStateChangedFire(nil, effect, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {effectStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postEffectStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postEffectStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_POST_EFFECT_UPDATE, postEffectUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postFamiliarUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postFamiliarStateChanged = require("callbacks.subscriptions.postFamiliarStateChanged")
10
+ local postFamiliarStateChangedFire = ____postFamiliarStateChanged.postFamiliarStateChangedFire
11
+ local postFamiliarStateChangedHasSubscriptions = ____postFamiliarStateChanged.postFamiliarStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postFamiliarStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postFamiliarUpdate(self, familiar)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(familiar)
20
+ local previousState = v.run.familiarStateMap:getAndSetDefault(ptrHash, familiar.State)
21
+ local currentState = familiar.State
22
+ v.run.familiarStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postFamiliarStateChangedFire(nil, familiar, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {familiarStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _initSeed, state) return state end
30
+ )}}
31
+ function ____exports.postFamiliarStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postFamiliarStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_FAMILIAR_UPDATE, postFamiliarUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1,2 @@
1
+ import { ModUpgraded } from "../classes/ModUpgraded";
2
+ export declare function postItemDischargeCallbackInit(mod: ModUpgraded): void;
@@ -0,0 +1,99 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local Map = ____lualib.Map
4
+ local ____exports = {}
5
+ local hasSubscriptions, postPEffectUpdate, playerRecentlyCollidedWithBulb, preNPCCollision, v
6
+ local ____cachedClasses = require("cachedClasses")
7
+ local game = ____cachedClasses.game
8
+ local ____DefaultMap = require("classes.DefaultMap")
9
+ local DefaultMap = ____DefaultMap.DefaultMap
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____charge = require("functions.charge")
13
+ local getTotalCharge = ____charge.getTotalCharge
14
+ local ____playerDataStructures = require("functions.playerDataStructures")
15
+ local defaultMapGetPlayer = ____playerDataStructures.defaultMapGetPlayer
16
+ local mapGetPlayer = ____playerDataStructures.mapGetPlayer
17
+ local mapSetPlayer = ____playerDataStructures.mapSetPlayer
18
+ local ____utils = require("functions.utils")
19
+ local getEnumValues = ____utils.getEnumValues
20
+ local ____postItemDischarged = require("callbacks.subscriptions.postItemDischarged")
21
+ local postItemDischargeFire = ____postItemDischarged.postItemDischargeFire
22
+ local postItemDischargeHasSubscriptions = ____postItemDischarged.postItemDischargeHasSubscriptions
23
+ function hasSubscriptions(self)
24
+ return postItemDischargeHasSubscriptions(nil)
25
+ end
26
+ function postPEffectUpdate(self, player)
27
+ if not hasSubscriptions(nil) then
28
+ return
29
+ end
30
+ local activeItemMap = defaultMapGetPlayer(nil, v.run.playersActiveItemMap, player)
31
+ local chargeMap = defaultMapGetPlayer(nil, v.run.playersActiveChargeMap, player)
32
+ for ____, activeSlot in ipairs(getEnumValues(nil, ActiveSlot)) do
33
+ do
34
+ local currentActiveItem = player:GetActiveItem()
35
+ local previousActiveItem = activeItemMap:getAndSetDefault(activeSlot, currentActiveItem)
36
+ activeItemMap:set(activeSlot, currentActiveItem)
37
+ if currentActiveItem ~= previousActiveItem then
38
+ goto __continue10
39
+ end
40
+ local currentCharge = getTotalCharge(nil, player, activeSlot)
41
+ local previousCharge = chargeMap:getAndSetDefault(activeSlot, currentCharge)
42
+ chargeMap:set(activeSlot, currentCharge)
43
+ if playerRecentlyCollidedWithBulb(nil, player) then
44
+ goto __continue10
45
+ end
46
+ if currentCharge < previousCharge then
47
+ local collectibleType = player:GetActiveItem(activeSlot)
48
+ postItemDischargeFire(nil, player, collectibleType, activeSlot)
49
+ end
50
+ end
51
+ ::__continue10::
52
+ end
53
+ end
54
+ function playerRecentlyCollidedWithBulb(self, player)
55
+ local gameFrameCount = game:GetFrameCount()
56
+ local bulbLastCollisionFrame = mapGetPlayer(nil, v.room.playersBulbLastCollisionFrame, player)
57
+ local collidedOnThisFrame = gameFrameCount == bulbLastCollisionFrame
58
+ local collidedOnLastFrame = gameFrameCount - 1 == bulbLastCollisionFrame
59
+ return collidedOnThisFrame or collidedOnLastFrame
60
+ end
61
+ function preNPCCollision(self, npc, collider)
62
+ if not hasSubscriptions(nil) then
63
+ return
64
+ end
65
+ if npc.Variant ~= 5 then
66
+ return
67
+ end
68
+ local player = collider:ToPlayer()
69
+ if player == nil then
70
+ return
71
+ end
72
+ local gameFrameCount = game:GetFrameCount()
73
+ mapSetPlayer(nil, v.room.playersBulbLastCollisionFrame, player, gameFrameCount)
74
+ end
75
+ v = {
76
+ run = {
77
+ playersActiveItemMap = __TS__New(
78
+ DefaultMap,
79
+ function() return __TS__New(
80
+ DefaultMap,
81
+ function(____, _playerIndex, collectibleType) return collectibleType end
82
+ ) end
83
+ ),
84
+ playersActiveChargeMap = __TS__New(
85
+ DefaultMap,
86
+ function() return __TS__New(
87
+ DefaultMap,
88
+ function(____, _playerIndex, charge) return charge end
89
+ ) end
90
+ )
91
+ },
92
+ room = {playersBulbLastCollisionFrame = __TS__New(Map)}
93
+ }
94
+ function ____exports.postItemDischargeCallbackInit(self, mod)
95
+ saveDataManager(nil, "postItemDischarge", v, hasSubscriptions)
96
+ mod:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, postPEffectUpdate)
97
+ mod:AddCallback(ModCallbacks.MC_PRE_NPC_COLLISION, preNPCCollision, EntityType.ENTITY_SUCKER)
98
+ end
99
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postNPCUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postNPCStateChanged = require("callbacks.subscriptions.postNPCStateChanged")
10
+ local postNPCStateChangedFire = ____postNPCStateChanged.postNPCStateChangedFire
11
+ local postNPCStateChangedHasSubscriptions = ____postNPCStateChanged.postNPCStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postNPCStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postNPCUpdate(self, npc)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(npc)
20
+ local previousState = v.run.npcStateMap:getAndSetDefault(ptrHash, npc.State)
21
+ local currentState = npc.State
22
+ v.run.npcStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postNPCStateChangedFire(nil, npc, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {npcStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postNPCStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postNPCStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_NPC_UPDATE, postNPCUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,35 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
3
+ local ____exports = {}
4
+ local hasSubscriptions, postPickupUpdate, v
5
+ local ____DefaultMap = require("classes.DefaultMap")
6
+ local DefaultMap = ____DefaultMap.DefaultMap
7
+ local ____exports = require("features.saveDataManager.exports")
8
+ local saveDataManager = ____exports.saveDataManager
9
+ local ____postPickupStateChanged = require("callbacks.subscriptions.postPickupStateChanged")
10
+ local postPickupStateChangedFire = ____postPickupStateChanged.postPickupStateChangedFire
11
+ local postPickupStateChangedHasSubscriptions = ____postPickupStateChanged.postPickupStateChangedHasSubscriptions
12
+ function hasSubscriptions(self)
13
+ return postPickupStateChangedHasSubscriptions(nil)
14
+ end
15
+ function postPickupUpdate(self, pickup)
16
+ if not hasSubscriptions(nil) then
17
+ return
18
+ end
19
+ local ptrHash = GetPtrHash(pickup)
20
+ local previousState = v.run.pickupStateMap:getAndSetDefault(ptrHash, pickup.State)
21
+ local currentState = pickup.State
22
+ v.run.pickupStateMap:set(ptrHash, currentState)
23
+ if previousState ~= currentState then
24
+ postPickupStateChangedFire(nil, pickup, previousState, currentState)
25
+ end
26
+ end
27
+ v = {run = {pickupStateMap = __TS__New(
28
+ DefaultMap,
29
+ function(____, _ptrHash, state) return state end
30
+ )}}
31
+ function ____exports.postPickupStateChangedCallbackInit(self, mod)
32
+ saveDataManager(nil, "postPickupStateChanged", v, hasSubscriptions)
33
+ mod:AddCallback(ModCallbacks.MC_POST_PICKUP_UPDATE, postPickupUpdate)
34
+ end
35
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostEffectStateChangedCallbackType = (effect: EntityEffect, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postEffectStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postEffectStateChangedRegister(self, callback, effectVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, effectVariant}
9
+ end
10
+ function ____exports.postEffectStateChangedFire(self, effect, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local effectVariant = ____value[2]
14
+ do
15
+ if effectVariant ~= nil and effectVariant ~= effect.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, effect, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostFamiliarStateChangedCallbackType = (familiar: EntityFamiliar, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postFamiliarStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postFamiliarStateChangedRegister(self, callback, familiarVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, familiarVariant}
9
+ end
10
+ function ____exports.postFamiliarStateChangedFire(self, familiar, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local familiarVariant = ____value[2]
14
+ do
15
+ if familiarVariant ~= nil and familiarVariant ~= familiar.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, familiar, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostItemDischargedCallbackType = (player: EntityPlayer, collectibleType: CollectibleType | int, activeSlot: ActiveSlot) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postItemDischargeHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postItemDischargeRegister(self, callback, activeSlot)
8
+ subscriptions[#subscriptions + 1] = {callback, activeSlot}
9
+ end
10
+ function ____exports.postItemDischargeFire(self, player, collectibleType, activeSlot)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local callbackCollectibleType = ____value[2]
14
+ do
15
+ if callbackCollectibleType ~= nil and callbackCollectibleType ~= collectibleType then
16
+ goto __continue5
17
+ end
18
+ callback(nil, player, collectibleType, activeSlot)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostNPCStateChangedCallbackType = (npc: EntityNPC, previousState: int, currentState: int) => void;
@@ -0,0 +1,27 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postNPCStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postNPCStateChangedRegister(self, callback, entityType, variant)
8
+ subscriptions[#subscriptions + 1] = {callback, entityType, variant}
9
+ end
10
+ function ____exports.postNPCStateChangedFire(self, npc, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local entityType = ____value[2]
14
+ local variant = ____value[3]
15
+ do
16
+ if entityType ~= nil and entityType ~= npc.Type then
17
+ goto __continue5
18
+ end
19
+ if variant ~= nil and variant ~= npc.Variant then
20
+ goto __continue5
21
+ end
22
+ callback(nil, npc, previousState, currentState)
23
+ end
24
+ ::__continue5::
25
+ end
26
+ end
27
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare type PostPickupStateChangedCallbackType = (pickup: EntityPickup, previousState: int, currentState: int) => void;
@@ -0,0 +1,23 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local subscriptions = {}
4
+ function ____exports.postPickupStateChangedHasSubscriptions(self)
5
+ return #subscriptions > 0
6
+ end
7
+ function ____exports.postPickupStateChangedRegister(self, callback, pickupVariant)
8
+ subscriptions[#subscriptions + 1] = {callback, pickupVariant}
9
+ end
10
+ function ____exports.postPickupStateChangedFire(self, pickup, previousState, currentState)
11
+ for ____, ____value in ipairs(subscriptions) do
12
+ local callback = ____value[1]
13
+ local pickupVariant = ____value[2]
14
+ do
15
+ if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
16
+ goto __continue5
17
+ end
18
+ callback(nil, pickup, previousState, currentState)
19
+ end
20
+ ::__continue5::
21
+ end
22
+ end
23
+ return ____exports
@@ -46,17 +46,22 @@ export declare enum ModCallbacksCustom {
46
46
  MC_POST_SACRIFICE = 37,
47
47
  MC_POST_CURSED_TELEPORT = 38,
48
48
  MC_POST_TRINKET_BREAK = 39,
49
- MC_POST_SLOT_INIT = 40,
50
- MC_POST_SLOT_UPDATE = 41,
51
- MC_POST_SLOT_RENDER = 42,
52
- MC_POST_SLOT_ANIMATION_CHANGED = 43,
53
- MC_POST_SLOT_DESTROYED = 44,
54
- MC_POST_GRID_ENTITY_INIT = 45,
55
- MC_POST_GRID_ENTITY_UPDATE = 46,
56
- MC_POST_GRID_ENTITY_REMOVE = 47,
57
- MC_POST_GRID_ENTITY_STATE_CHANGE = 48,
58
- MC_POST_GRID_ENTITY_BROKEN = 49,
59
- MC_POST_GRID_ENTITY_COLLISION = 50,
60
- MC_POST_BONE_SWING = 51,
61
- MC_POST_CUSTOM_DOOR_ENTER = 52
49
+ MC_POST_ITEM_DISCHARGE = 40,
50
+ MC_POST_SLOT_INIT = 41,
51
+ MC_POST_SLOT_UPDATE = 42,
52
+ MC_POST_SLOT_RENDER = 43,
53
+ MC_POST_SLOT_ANIMATION_CHANGED = 44,
54
+ MC_POST_SLOT_DESTROYED = 45,
55
+ MC_POST_FAMILIAR_STATE_CHANGED = 46,
56
+ MC_POST_PICKUP_STATE_CHANGED = 47,
57
+ MC_POST_EFFECT_STATE_CHANGED = 48,
58
+ MC_POST_NPC_STATE_CHANGED = 49,
59
+ MC_POST_GRID_ENTITY_INIT = 50,
60
+ MC_POST_GRID_ENTITY_UPDATE = 51,
61
+ MC_POST_GRID_ENTITY_REMOVE = 52,
62
+ MC_POST_GRID_ENTITY_STATE_CHANGE = 53,
63
+ MC_POST_GRID_ENTITY_BROKEN = 54,
64
+ MC_POST_GRID_ENTITY_COLLISION = 55,
65
+ MC_POST_BONE_SWING = 56,
66
+ MC_POST_CUSTOM_DOOR_ENTER = 57
62
67
  }
@@ -81,30 +81,40 @@ ____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT = 38
81
81
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CURSED_TELEPORT] = "MC_POST_CURSED_TELEPORT"
82
82
  ____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK = 39
83
83
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_TRINKET_BREAK] = "MC_POST_TRINKET_BREAK"
84
- ____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 40
84
+ ____exports.ModCallbacksCustom.MC_POST_ITEM_DISCHARGE = 40
85
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_ITEM_DISCHARGE] = "MC_POST_ITEM_DISCHARGE"
86
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_INIT = 41
85
87
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_INIT] = "MC_POST_SLOT_INIT"
86
- ____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 41
88
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE = 42
87
89
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_UPDATE] = "MC_POST_SLOT_UPDATE"
88
- ____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 42
90
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER = 43
89
91
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_RENDER] = "MC_POST_SLOT_RENDER"
90
- ____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 43
92
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED = 44
91
93
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = "MC_POST_SLOT_ANIMATION_CHANGED"
92
- ____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 44
94
+ ____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED = 45
93
95
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = "MC_POST_SLOT_DESTROYED"
94
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 45
96
+ ____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED = 46
97
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED] = "MC_POST_FAMILIAR_STATE_CHANGED"
98
+ ____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED = 47
99
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED] = "MC_POST_PICKUP_STATE_CHANGED"
100
+ ____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED = 48
101
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED] = "MC_POST_EFFECT_STATE_CHANGED"
102
+ ____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED = 49
103
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED] = "MC_POST_NPC_STATE_CHANGED"
104
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT = 50
95
105
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = "MC_POST_GRID_ENTITY_INIT"
96
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 46
106
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE = 51
97
107
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = "MC_POST_GRID_ENTITY_UPDATE"
98
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 47
108
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE = 52
99
109
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = "MC_POST_GRID_ENTITY_REMOVE"
100
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 48
110
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE = 53
101
111
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_STATE_CHANGE] = "MC_POST_GRID_ENTITY_STATE_CHANGE"
102
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 49
112
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN = 54
103
113
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_BROKEN] = "MC_POST_GRID_ENTITY_BROKEN"
104
- ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 50
114
+ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 55
105
115
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
106
- ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 51
116
+ ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 56
107
117
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
108
- ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 52
118
+ ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 57
109
119
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
110
120
  return ____exports
@@ -1,5 +1,10 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  import { PocketItemDescription } from "../types/PocketItemDescription";
3
+ /**
4
+ * Helper function to get the `PocketItemSlot` that the player's pocket active item is in, if any.
5
+ * Returns undefined if the player does not have a pocket active item.
6
+ */
7
+ export declare function getActivePocketItemSlot(player: EntityPlayer): PocketItemSlot | undefined;
3
8
  export declare function getFirstCardOrPill(player: EntityPlayer): PocketItemDescription | undefined;
4
9
  /**
5
10
  * Use this helper function as a workaround for the `EntityPlayer.GetPocketItem` method not working
@@ -43,6 +43,15 @@ function ____exports.getPocketItems(self, player)
43
43
  end
44
44
  return pocketItems
45
45
  end
46
+ function ____exports.getActivePocketItemSlot(self, player)
47
+ local pocketItems = ____exports.getPocketItems(nil, player)
48
+ for ____, pocketItem in ipairs(pocketItems) do
49
+ if pocketItem.type == PocketItemType.ACTIVE_ITEM then
50
+ return pocketItem.slot
51
+ end
52
+ end
53
+ return nil
54
+ end
46
55
  function ____exports.getFirstCardOrPill(self, player)
47
56
  local pocketItems = ____exports.getPocketItems(nil, player)
48
57
  return __TS__ArrayFind(
@@ -14,10 +14,14 @@ local ____postCustomRevive = require("callbacks.subscriptions.postCustomRevive")
14
14
  local postCustomReviveRegister = ____postCustomRevive.postCustomReviveRegister
15
15
  local ____postEffectInitLate = require("callbacks.subscriptions.postEffectInitLate")
16
16
  local postEffectInitLateRegister = ____postEffectInitLate.postEffectInitLateRegister
17
+ local ____postEffectStateChanged = require("callbacks.subscriptions.postEffectStateChanged")
18
+ local postEffectStateChangedRegister = ____postEffectStateChanged.postEffectStateChangedRegister
17
19
  local ____postEsauJr = require("callbacks.subscriptions.postEsauJr")
18
20
  local postEsauJrRegister = ____postEsauJr.postEsauJrRegister
19
21
  local ____postFamiliarInitLate = require("callbacks.subscriptions.postFamiliarInitLate")
20
22
  local postFamiliarInitLateRegister = ____postFamiliarInitLate.postFamiliarInitLateRegister
23
+ local ____postFamiliarStateChanged = require("callbacks.subscriptions.postFamiliarStateChanged")
24
+ local postFamiliarStateChangedRegister = ____postFamiliarStateChanged.postFamiliarStateChangedRegister
21
25
  local ____postFirstEsauJr = require("callbacks.subscriptions.postFirstEsauJr")
22
26
  local postFirstEsauJrRegister = ____postFirstEsauJr.postFirstEsauJrRegister
23
27
  local ____postFirstFlip = require("callbacks.subscriptions.postFirstFlip")
@@ -38,6 +42,8 @@ local ____postGridEntityStateChange = require("callbacks.subscriptions.postGridE
38
42
  local postGridEntityStateChangeRegister = ____postGridEntityStateChange.postGridEntityStateChangeRegister
39
43
  local ____postGridEntityUpdate = require("callbacks.subscriptions.postGridEntityUpdate")
40
44
  local postGridEntityUpdateRegister = ____postGridEntityUpdate.postGridEntityUpdateRegister
45
+ local ____postItemDischarged = require("callbacks.subscriptions.postItemDischarged")
46
+ local postItemDischargeRegister = ____postItemDischarged.postItemDischargeRegister
41
47
  local ____postItemPickup = require("callbacks.subscriptions.postItemPickup")
42
48
  local postItemPickupRegister = ____postItemPickup.postItemPickupRegister
43
49
  local ____postKnifeInitLate = require("callbacks.subscriptions.postKnifeInitLate")
@@ -52,12 +58,16 @@ local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReo
52
58
  local postNewRoomReorderedRegister = ____postNewRoomReordered.postNewRoomReorderedRegister
53
59
  local ____postNPCInitLate = require("callbacks.subscriptions.postNPCInitLate")
54
60
  local postNPCInitLateRegister = ____postNPCInitLate.postNPCInitLateRegister
61
+ local ____postNPCStateChanged = require("callbacks.subscriptions.postNPCStateChanged")
62
+ local postNPCStateChangedRegister = ____postNPCStateChanged.postNPCStateChangedRegister
55
63
  local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
56
64
  local postPEffectUpdateReorderedRegister = ____postPEffectUpdateReordered.postPEffectUpdateReorderedRegister
57
65
  local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
58
66
  local postPickupCollectRegister = ____postPickupCollect.postPickupCollectRegister
59
67
  local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
60
68
  local postPickupInitLateRegister = ____postPickupInitLate.postPickupInitLateRegister
69
+ local ____postPickupStateChanged = require("callbacks.subscriptions.postPickupStateChanged")
70
+ local postPickupStateChangedRegister = ____postPickupStateChanged.postPickupStateChangedRegister
61
71
  local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerChangeHealth")
62
72
  local postPlayerChangeHealthRegister = ____postPlayerChangeHealth.postPlayerChangeHealthRegister
63
73
  local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
@@ -149,11 +159,16 @@ ____exports.CALLBACK_REGISTER_FUNCTIONS = {
149
159
  [ModCallbacksCustom.MC_POST_SACRIFICE] = postSacrificeRegister,
150
160
  [ModCallbacksCustom.MC_POST_CURSED_TELEPORT] = postCursedTeleportRegister,
151
161
  [ModCallbacksCustom.MC_POST_TRINKET_BREAK] = postTrinketBreakRegister,
162
+ [ModCallbacksCustom.MC_POST_ITEM_DISCHARGE] = postItemDischargeRegister,
152
163
  [ModCallbacksCustom.MC_POST_SLOT_INIT] = postSlotInitRegister,
153
164
  [ModCallbacksCustom.MC_POST_SLOT_UPDATE] = postSlotUpdateRegister,
154
165
  [ModCallbacksCustom.MC_POST_SLOT_RENDER] = postSlotRenderRegister,
155
166
  [ModCallbacksCustom.MC_POST_SLOT_ANIMATION_CHANGED] = postSlotAnimationChangedRegister,
156
167
  [ModCallbacksCustom.MC_POST_SLOT_DESTROYED] = postSlotDestroyedRegister,
168
+ [ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED] = postFamiliarStateChangedRegister,
169
+ [ModCallbacksCustom.MC_POST_PICKUP_STATE_CHANGED] = postPickupStateChangedRegister,
170
+ [ModCallbacksCustom.MC_POST_EFFECT_STATE_CHANGED] = postEffectStateChangedRegister,
171
+ [ModCallbacksCustom.MC_POST_NPC_STATE_CHANGED] = postNPCStateChangedRegister,
157
172
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT] = postGridEntityInitRegister,
158
173
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_UPDATE] = postGridEntityUpdateRegister,
159
174
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_REMOVE] = postGridEntityRemoveRegister,
@@ -6,8 +6,10 @@ import { PostCursedTeleportCallbackType } from "../callbacks/subscriptions/postC
6
6
  import { PostCustomDoorEnterCallbackType } from "../callbacks/subscriptions/postCustomDoorEnter";
7
7
  import { PostCustomReviveCallbackType } from "../callbacks/subscriptions/postCustomRevive";
8
8
  import { PostEffectInitLateCallbackType } from "../callbacks/subscriptions/postEffectInitLate";
9
+ import { PostEffectStateChangedCallbackType } from "../callbacks/subscriptions/postEffectStateChanged";
9
10
  import { PostEsauJrCallbackType } from "../callbacks/subscriptions/postEsauJr";
10
11
  import { PostFamiliarInitLateCallbackType } from "../callbacks/subscriptions/postFamiliarInitLate";
12
+ import { PostFamiliarStateChangedCallbackType } from "../callbacks/subscriptions/postFamiliarStateChanged";
11
13
  import { PostFirstEsauJrCallbackType } from "../callbacks/subscriptions/postFirstEsauJr";
12
14
  import { PostFirstFlipCallbackType } from "../callbacks/subscriptions/postFirstFlip";
13
15
  import { PostFlipCallbackType } from "../callbacks/subscriptions/postFlip";
@@ -18,6 +20,7 @@ import { PostGridEntityInitCallbackType } from "../callbacks/subscriptions/postG
18
20
  import { PostGridEntityRemoveCallbackType } from "../callbacks/subscriptions/postGridEntityRemove";
19
21
  import { PostGridEntityStateChangeCallbackType } from "../callbacks/subscriptions/postGridEntityStateChange";
20
22
  import { PostGridEntityUpdateCallbackType } from "../callbacks/subscriptions/postGridEntityUpdate";
23
+ import { PostItemDischargedCallbackType } from "../callbacks/subscriptions/postItemDischarged";
21
24
  import { PostItemPickupCallbackType } from "../callbacks/subscriptions/postItemPickup";
22
25
  import { PostKnifeInitLateCallbackType } from "../callbacks/subscriptions/postKnifeInitLate";
23
26
  import { PostLaserInitLateCallbackType } from "../callbacks/subscriptions/postLaserInitLate";
@@ -25,9 +28,11 @@ import { PostNewLevelReorderedCallbackType } from "../callbacks/subscriptions/po
25
28
  import { PostNewRoomEarlyCallbackType } from "../callbacks/subscriptions/postNewRoomEarly";
26
29
  import { PostNewRoomReorderedCallbackType } from "../callbacks/subscriptions/postNewRoomReordered";
27
30
  import { PostNPCInitLateCallbackType } from "../callbacks/subscriptions/postNPCInitLate";
31
+ import { PostNPCStateChangedCallbackType } from "../callbacks/subscriptions/postNPCStateChanged";
28
32
  import { PostPEffectUpdateReorderedCallbackType } from "../callbacks/subscriptions/postPEffectUpdateReordered";
29
33
  import { PostPickupCollectCallbackType } from "../callbacks/subscriptions/postPickupCollect";
30
34
  import { PostPickupInitLateCallbackType } from "../callbacks/subscriptions/postPickupInitLate";
35
+ import { PostPickupStateChangedCallbackType } from "../callbacks/subscriptions/postPickupStateChanged";
31
36
  import { PostPlayerChangeHealthCallbackType } from "../callbacks/subscriptions/postPlayerChangeHealth";
32
37
  import { PostPlayerChangeTypeCallbackType } from "../callbacks/subscriptions/postPlayerChangeType";
33
38
  import { PostPlayerFatalDamageCallbackType } from "../callbacks/subscriptions/postPlayerFatalDamage";
@@ -194,6 +199,10 @@ export interface AddCallbackParametersCustom {
194
199
  callback: PostTrinketBreakCallbackType,
195
200
  trinketType?: TrinketType | int
196
201
  ];
202
+ [ModCallbacksCustom.MC_POST_ITEM_DISCHARGE]: [
203
+ callback: PostItemDischargedCallbackType,
204
+ collectibleType?: CollectibleType | int
205
+ ];
197
206
  [ModCallbacksCustom.MC_POST_SLOT_INIT]: [
198
207
  callback: PostSlotInitCallbackType,
199
208
  slotVariant?: SlotVariant
@@ -214,6 +223,23 @@ export interface AddCallbackParametersCustom {
214
223
  callback: PostSlotDestroyedCallbackType,
215
224
  slotVariant?: SlotVariant
216
225
  ];
226
+ [ModCallbacksCustom.MC_POST_FAMILIAR_STATE_CHANGED]: [
227
+ callback: PostFamiliarStateChangedCallbackType,
228
+ familiarVariant?: FamiliarVariant
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
+ ];
217
243
  [ModCallbacksCustom.MC_POST_GRID_ENTITY_INIT]: [
218
244
  callback: PostGridEntityInitCallbackType,
219
245
  gridEntityType?: GridEntityType
@@ -18,16 +18,22 @@ local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
18
18
  local postCustomDoorEnterCallbackInit = ____postCustomDoorEnter.postCustomDoorEnterCallbackInit
19
19
  local ____postEffectInitLate = require("callbacks.postEffectInitLate")
20
20
  local postEffectInitLateCallbackInit = ____postEffectInitLate.postEffectInitLateCallbackInit
21
+ local ____postEffectStateChanged = require("callbacks.postEffectStateChanged")
22
+ local postEffectStateChangedCallbackInit = ____postEffectStateChanged.postEffectStateChangedCallbackInit
21
23
  local ____postEsauJr = require("callbacks.postEsauJr")
22
24
  local postEsauJrCallbacksInit = ____postEsauJr.postEsauJrCallbacksInit
23
25
  local ____postFamiliarInitLate = require("callbacks.postFamiliarInitLate")
24
26
  local postFamiliarInitLateCallbackInit = ____postFamiliarInitLate.postFamiliarInitLateCallbackInit
27
+ local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged")
28
+ local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
25
29
  local ____postFlip = require("callbacks.postFlip")
26
30
  local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
27
31
  local ____postGridEntity = require("callbacks.postGridEntity")
28
32
  local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
29
33
  local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
30
34
  local postGridEntityCollisionInit = ____postGridEntityCollision.postGridEntityCollisionInit
35
+ local ____postItemDischarged = require("callbacks.postItemDischarged")
36
+ local postItemDischargeCallbackInit = ____postItemDischarged.postItemDischargeCallbackInit
31
37
  local ____postKnifeInitLate = require("callbacks.postKnifeInitLate")
32
38
  local postKnifeInitLateCallbackInit = ____postKnifeInitLate.postKnifeInitLateCallbackInit
33
39
  local ____postLaserInitLate = require("callbacks.postLaserInitLate")
@@ -36,10 +42,14 @@ local ____postNewRoomEarly = require("callbacks.postNewRoomEarly")
36
42
  local postNewRoomEarlyCallbackInit = ____postNewRoomEarly.postNewRoomEarlyCallbackInit
37
43
  local ____postNPCInitLate = require("callbacks.postNPCInitLate")
38
44
  local postNPCInitLateCallbackInit = ____postNPCInitLate.postNPCInitLateCallbackInit
45
+ local ____postNPCStateChanged = require("callbacks.postNPCStateChanged")
46
+ local postNPCStateChangedCallbackInit = ____postNPCStateChanged.postNPCStateChangedCallbackInit
39
47
  local ____postPickupCollect = require("callbacks.postPickupCollect")
40
48
  local postPickupCollectCallbackInit = ____postPickupCollect.postPickupCollectCallbackInit
41
49
  local ____postPickupInitLate = require("callbacks.postPickupInitLate")
42
50
  local postPickupInitLateCallbackInit = ____postPickupInitLate.postPickupInitLateCallbackInit
51
+ local ____postPickupStateChanged = require("callbacks.postPickupStateChanged")
52
+ local postPickupStateChangedCallbackInit = ____postPickupStateChanged.postPickupStateChangedCallbackInit
43
53
  local ____postPlayerChangeHealth = require("callbacks.postPlayerChangeHealth")
44
54
  local postPlayerChangeHealthCallbackInit = ____postPlayerChangeHealth.postPlayerChangeHealthCallbackInit
45
55
  local ____postPlayerChangeType = require("callbacks.postPlayerChangeType")
@@ -147,9 +157,14 @@ function initCustomCallbacks(self, mod)
147
157
  postPurchaseCallbackInit(nil, mod)
148
158
  postSacrificeCallbackInit(nil, mod)
149
159
  postTrinketBreakCallbackInit(nil, mod)
160
+ postItemDischargeCallbackInit(nil, mod)
150
161
  postCursedTeleportCallbackInit(nil, mod)
151
162
  postSlotInitUpdateCallbacksInit(nil, mod)
152
163
  postSlotRenderCallbacksInit(nil, mod)
164
+ postFamiliarStateChangedCallbackInit(nil, mod)
165
+ postPickupStateChangedCallbackInit(nil, mod)
166
+ postEffectStateChangedCallbackInit(nil, mod)
167
+ postNPCStateChangedCallbackInit(nil, mod)
153
168
  postGridEntityCallbacksInit(nil, mod)
154
169
  postGridEntityCollisionInit(nil, mod)
155
170
  postBoneSwingCallbackInit(nil, mod)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.288",
3
+ "version": "1.2.291",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",