fix D4 transformation progress in AB+

This commit is contained in:
Buurazu authored and GitHub committed 2022-06-16 15:37:17 -04:00
1 parent 7da3ded473
commit ee707bbb7a
1 file changed
+2 -1
+2 -1
View File
@@ -1570,7 +1570,8 @@ EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStartGeneral)
-- Add currently held active items after D4 was used. Used for Transformation Progress
local function OnUseD4(_, _, _, player)
AddActiveItemProgress(player, true)
-- in AB+, USE_ITEM doesn't provide a player
AddActiveItemProgress(player or EID.player, true)
end
EID:AddCallback(ModCallbacks.MC_USE_ITEM, OnUseD4, CollectibleType.COLLECTIBLE_D4)