isaacscript-common 25.2.0 → 25.4.0
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/index.rollup.d.ts +27 -2
- package/dist/isaacscript-common.lua +803 -693
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/ModFeature.lua +12 -5
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
- package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
- package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
- package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
- package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
- package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
- package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
- package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +17 -26
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
- package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.lua +21 -20
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +20 -19
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
- package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
- package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
- package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/PonyDetection.lua +8 -7
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +7 -6
- package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
- package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
- package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +9 -8
- package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
- package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
- package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
- package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/StageHistory.lua +7 -6
- package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
- package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
- package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
- package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
- package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
- package/dist/src/classes/features/other/customStages/v.lua +16 -0
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
- package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/functions/decorators.d.ts +15 -0
- package/dist/src/functions/decorators.d.ts.map +1 -1
- package/dist/src/functions/decorators.lua +21 -5
- package/dist/src/interfaces/SaveData.d.ts.map +1 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -0
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/dist/src/shouldFire.lua +5 -0
- package/package.json +1 -1
- package/src/classes/ModFeature.ts +16 -4
- package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
- package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
- package/src/classes/callbacks/PostBombInitLate.ts +9 -7
- package/src/classes/callbacks/PostBoneSwing.ts +9 -7
- package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
- package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
- package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
- package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
- package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
- package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
- package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
- package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
- package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
- package/src/classes/callbacks/PostItemDischarge.ts +21 -27
- package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
- package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
- package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
- package/src/classes/callbacks/PostPickupCollect.ts +9 -7
- package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
- package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
- package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
- package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
- package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
- package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
- package/src/classes/callbacks/PostPurchase.ts +11 -9
- package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
- package/src/classes/callbacks/PostSacrifice.ts +9 -7
- package/src/classes/callbacks/PostTearInitLate.ts +9 -7
- package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
- package/src/classes/callbacks/PostTransformation.ts +12 -10
- package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
- package/src/classes/callbacks/PreNewLevel.ts +9 -7
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
- package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
- package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
- package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
- package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
- package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
- package/src/classes/features/other/CustomItemPools.ts +9 -7
- package/src/classes/features/other/CustomPickups.ts +0 -1
- package/src/classes/features/other/CustomStages.ts +16 -44
- package/src/classes/features/other/CustomTrapdoors.ts +53 -54
- package/src/classes/features/other/DisableAllSound.ts +13 -11
- package/src/classes/features/other/DisableInputs.ts +39 -37
- package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
- package/src/classes/features/other/NoSirenSteal.ts +11 -9
- package/src/classes/features/other/Pause.ts +21 -19
- package/src/classes/features/other/PersistentEntities.ts +33 -31
- package/src/classes/features/other/PickupIndexCreation.ts +35 -33
- package/src/classes/features/other/PlayerInventory.ts +14 -12
- package/src/classes/features/other/PonyDetection.ts +11 -9
- package/src/classes/features/other/PressInput.ts +11 -9
- package/src/classes/features/other/PreventChildEntities.ts +10 -8
- package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
- package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
- package/src/classes/features/other/RoomClearFrame.ts +12 -10
- package/src/classes/features/other/RoomHistory.ts +13 -11
- package/src/classes/features/other/RunInNFrames.ts +19 -17
- package/src/classes/features/other/RunNextRoom.ts +10 -8
- package/src/classes/features/other/SaveDataManager.ts +11 -0
- package/src/classes/features/other/StageHistory.ts +11 -9
- package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
- package/src/classes/features/other/customStages/streakText.ts +14 -44
- package/src/classes/features/other/customStages/v.ts +31 -0
- package/src/classes/features/other/customStages/versusScreen.ts +2 -10
- package/src/enums/ModCallbackCustom.ts +6 -0
- package/src/functions/decorators.ts +45 -4
- package/src/interfaces/SaveData.ts +0 -1
- package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
- package/src/shouldFire.ts +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 25.
|
|
3
|
+
isaacscript-common 25.4.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -15297,6 +15297,11 @@ function ____exports.shouldFireBomb(self, fireArgs, optionalArgs)
|
|
|
15297
15297
|
local callbackBombVariant, callbackSubType = table.unpack(optionalArgs)
|
|
15298
15298
|
return (callbackBombVariant == nil or callbackBombVariant == bomb.Variant) and (callbackSubType == nil or callbackSubType == bomb.SubType)
|
|
15299
15299
|
end
|
|
15300
|
+
function ____exports.shouldFireBoolean(self, fireArgs, optionalArgs)
|
|
15301
|
+
local fireArg = table.unpack(fireArgs)
|
|
15302
|
+
local optionalArg = table.unpack(optionalArgs)
|
|
15303
|
+
return optionalArg == nil or optionalArg == fireArg
|
|
15304
|
+
end
|
|
15300
15305
|
function ____exports.shouldFireCollectible(self, fireArgs, optionalArgs)
|
|
15301
15306
|
local collectible = table.unpack(fireArgs)
|
|
15302
15307
|
local callbackCollectibleType = table.unpack(optionalArgs)
|
|
@@ -17996,16 +18001,17 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
17996
18001
|
local shouldFireAmbush = ____shouldFire.shouldFireAmbush
|
|
17997
18002
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
17998
18003
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18004
|
+
local v = {room = {ambushDone = false}}
|
|
17999
18005
|
____exports.PostAmbushFinished = __TS__Class()
|
|
18000
18006
|
local PostAmbushFinished = ____exports.PostAmbushFinished
|
|
18001
18007
|
PostAmbushFinished.name = "PostAmbushFinished"
|
|
18002
18008
|
__TS__ClassExtends(PostAmbushFinished, CustomCallback)
|
|
18003
18009
|
function PostAmbushFinished.prototype.____constructor(self)
|
|
18004
18010
|
CustomCallback.prototype.____constructor(self)
|
|
18005
|
-
self.v =
|
|
18011
|
+
self.v = v
|
|
18006
18012
|
self.shouldFire = shouldFireAmbush
|
|
18007
18013
|
self.postUpdate = function()
|
|
18008
|
-
if
|
|
18014
|
+
if v.room.ambushDone then
|
|
18009
18015
|
return
|
|
18010
18016
|
end
|
|
18011
18017
|
local room = game:GetRoom()
|
|
@@ -18013,7 +18019,7 @@ function PostAmbushFinished.prototype.____constructor(self)
|
|
|
18013
18019
|
if not ambushDone then
|
|
18014
18020
|
return
|
|
18015
18021
|
end
|
|
18016
|
-
|
|
18022
|
+
v.room.ambushDone = true
|
|
18017
18023
|
local ambushType = getAmbushType(nil)
|
|
18018
18024
|
if ambushType ~= nil then
|
|
18019
18025
|
self:fire(ambushType)
|
|
@@ -18038,16 +18044,17 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
18038
18044
|
local shouldFireAmbush = ____shouldFire.shouldFireAmbush
|
|
18039
18045
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
18040
18046
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18047
|
+
local v = {room = {ambushActive = false}}
|
|
18041
18048
|
____exports.PostAmbushStarted = __TS__Class()
|
|
18042
18049
|
local PostAmbushStarted = ____exports.PostAmbushStarted
|
|
18043
18050
|
PostAmbushStarted.name = "PostAmbushStarted"
|
|
18044
18051
|
__TS__ClassExtends(PostAmbushStarted, CustomCallback)
|
|
18045
18052
|
function PostAmbushStarted.prototype.____constructor(self)
|
|
18046
18053
|
CustomCallback.prototype.____constructor(self)
|
|
18047
|
-
self.v =
|
|
18054
|
+
self.v = v
|
|
18048
18055
|
self.shouldFire = shouldFireAmbush
|
|
18049
18056
|
self.postUpdate = function()
|
|
18050
|
-
if
|
|
18057
|
+
if v.room.ambushActive then
|
|
18051
18058
|
return
|
|
18052
18059
|
end
|
|
18053
18060
|
local room = game:GetRoom()
|
|
@@ -18055,7 +18062,7 @@ function PostAmbushStarted.prototype.____constructor(self)
|
|
|
18055
18062
|
if not ambushActive then
|
|
18056
18063
|
return
|
|
18057
18064
|
end
|
|
18058
|
-
|
|
18065
|
+
v.room.ambushActive = true
|
|
18059
18066
|
local ambushType = getAmbushType(nil)
|
|
18060
18067
|
if ambushType ~= nil then
|
|
18061
18068
|
self:fire(ambushType)
|
|
@@ -18096,10 +18103,10 @@ return ____exports
|
|
|
18096
18103
|
end,
|
|
18097
18104
|
["src.classes.callbacks.PostBombInitLate"] = function(...)
|
|
18098
18105
|
local ____lualib = require("lualib_bundle")
|
|
18099
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
18100
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
18101
18106
|
local Set = ____lualib.Set
|
|
18102
18107
|
local __TS__New = ____lualib.__TS__New
|
|
18108
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
18109
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
18103
18110
|
local ____exports = {}
|
|
18104
18111
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
18105
18112
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -18107,18 +18114,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
18107
18114
|
local shouldFireBomb = ____shouldFire.shouldFireBomb
|
|
18108
18115
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
18109
18116
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18117
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
18110
18118
|
____exports.PostBombInitLate = __TS__Class()
|
|
18111
18119
|
local PostBombInitLate = ____exports.PostBombInitLate
|
|
18112
18120
|
PostBombInitLate.name = "PostBombInitLate"
|
|
18113
18121
|
__TS__ClassExtends(PostBombInitLate, CustomCallback)
|
|
18114
18122
|
function PostBombInitLate.prototype.____constructor(self)
|
|
18115
18123
|
CustomCallback.prototype.____constructor(self)
|
|
18116
|
-
self.v =
|
|
18124
|
+
self.v = v
|
|
18117
18125
|
self.shouldFire = shouldFireBomb
|
|
18118
18126
|
self.postBombUpdate = function(____, bomb)
|
|
18119
18127
|
local ptrHash = GetPtrHash(bomb)
|
|
18120
|
-
if not
|
|
18121
|
-
|
|
18128
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
18129
|
+
v.room.firedSet:add(ptrHash)
|
|
18122
18130
|
self:fire(bomb)
|
|
18123
18131
|
end
|
|
18124
18132
|
end
|
|
@@ -18129,9 +18137,9 @@ return ____exports
|
|
|
18129
18137
|
["src.classes.callbacks.PostBoneSwing"] = function(...)
|
|
18130
18138
|
local ____lualib = require("lualib_bundle")
|
|
18131
18139
|
local __TS__New = ____lualib.__TS__New
|
|
18140
|
+
local Map = ____lualib.Map
|
|
18132
18141
|
local __TS__Class = ____lualib.__TS__Class
|
|
18133
18142
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
18134
|
-
local Map = ____lualib.Map
|
|
18135
18143
|
local ____exports = {}
|
|
18136
18144
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
18137
18145
|
local KnifeVariant = ____isaac_2Dtypescript_2Ddefinitions.KnifeVariant
|
|
@@ -18141,13 +18149,14 @@ local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
|
18141
18149
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
18142
18150
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18143
18151
|
local BONE_SWING_ANIMATIONS = __TS__New(ReadonlySet, {"Swing", "Swing2", "Spin"})
|
|
18152
|
+
local v = {room = {boneClubAnimations = __TS__New(Map)}}
|
|
18144
18153
|
____exports.PostBoneSwing = __TS__Class()
|
|
18145
18154
|
local PostBoneSwing = ____exports.PostBoneSwing
|
|
18146
18155
|
PostBoneSwing.name = "PostBoneSwing"
|
|
18147
18156
|
__TS__ClassExtends(PostBoneSwing, CustomCallback)
|
|
18148
18157
|
function PostBoneSwing.prototype.____constructor(self)
|
|
18149
18158
|
CustomCallback.prototype.____constructor(self)
|
|
18150
|
-
self.v =
|
|
18159
|
+
self.v = v
|
|
18151
18160
|
self.postKnifeRender = function(____, knife)
|
|
18152
18161
|
if knife.Variant == KnifeVariant.BONE_CLUB then
|
|
18153
18162
|
self:postKnifeRenderBoneClub(knife)
|
|
@@ -18159,8 +18168,8 @@ function PostBoneSwing.prototype.postKnifeRenderBoneClub(self, knife)
|
|
|
18159
18168
|
local sprite = knife:GetSprite()
|
|
18160
18169
|
local animation = sprite:GetAnimation()
|
|
18161
18170
|
local ptrHash = GetPtrHash(knife)
|
|
18162
|
-
local animationOnLastFrame =
|
|
18163
|
-
|
|
18171
|
+
local animationOnLastFrame = v.room.boneClubAnimations:get(ptrHash)
|
|
18172
|
+
v.room.boneClubAnimations:set(ptrHash, animation)
|
|
18164
18173
|
if animationOnLastFrame ~= nil and animation ~= animationOnLastFrame then
|
|
18165
18174
|
self:boneClubAnimationChanged(knife, animation)
|
|
18166
18175
|
end
|
|
@@ -18174,10 +18183,10 @@ return ____exports
|
|
|
18174
18183
|
end,
|
|
18175
18184
|
["src.classes.callbacks.PostCollectibleEmpty"] = function(...)
|
|
18176
18185
|
local ____lualib = require("lualib_bundle")
|
|
18177
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
18178
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
18179
18186
|
local Map = ____lualib.Map
|
|
18180
18187
|
local __TS__New = ____lualib.__TS__New
|
|
18188
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
18189
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
18181
18190
|
local ____exports = {}
|
|
18182
18191
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
18183
18192
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -18185,13 +18194,14 @@ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
|
18185
18194
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
18186
18195
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
18187
18196
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18197
|
+
local v = {room = {collectibleTypeMap = __TS__New(Map)}}
|
|
18188
18198
|
____exports.PostCollectibleEmpty = __TS__Class()
|
|
18189
18199
|
local PostCollectibleEmpty = ____exports.PostCollectibleEmpty
|
|
18190
18200
|
PostCollectibleEmpty.name = "PostCollectibleEmpty"
|
|
18191
18201
|
__TS__ClassExtends(PostCollectibleEmpty, CustomCallback)
|
|
18192
18202
|
function PostCollectibleEmpty.prototype.____constructor(self)
|
|
18193
18203
|
CustomCallback.prototype.____constructor(self)
|
|
18194
|
-
self.v =
|
|
18204
|
+
self.v = v
|
|
18195
18205
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
18196
18206
|
local _collectible, oldCollectibleType = table.unpack(fireArgs)
|
|
18197
18207
|
local callbackCollectibleType = table.unpack(optionalArgs)
|
|
@@ -18200,11 +18210,11 @@ function PostCollectibleEmpty.prototype.____constructor(self)
|
|
|
18200
18210
|
self.postPickupUpdateCollectible = function(____, pickup)
|
|
18201
18211
|
local collectible = pickup
|
|
18202
18212
|
local ptrHash = GetPtrHash(collectible)
|
|
18203
|
-
local oldCollectibleType =
|
|
18213
|
+
local oldCollectibleType = v.room.collectibleTypeMap:get(ptrHash)
|
|
18204
18214
|
if oldCollectibleType == nil then
|
|
18205
18215
|
oldCollectibleType = collectible.SubType
|
|
18206
18216
|
end
|
|
18207
|
-
|
|
18217
|
+
v.room.collectibleTypeMap:set(ptrHash, collectible.SubType)
|
|
18208
18218
|
if oldCollectibleType ~= collectible.SubType then
|
|
18209
18219
|
self:collectibleTypeChanged(collectible, oldCollectibleType)
|
|
18210
18220
|
end
|
|
@@ -21465,10 +21475,10 @@ return ____exports
|
|
|
21465
21475
|
end,
|
|
21466
21476
|
["src.classes.callbacks.PostCollectibleInitFirst"] = function(...)
|
|
21467
21477
|
local ____lualib = require("lualib_bundle")
|
|
21468
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
21469
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
21470
21478
|
local Set = ____lualib.Set
|
|
21471
21479
|
local __TS__New = ____lualib.__TS__New
|
|
21480
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
21481
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
21472
21482
|
local ____exports = {}
|
|
21473
21483
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
21474
21484
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -21479,21 +21489,22 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
21479
21489
|
local shouldFireCollectible = ____shouldFire.shouldFireCollectible
|
|
21480
21490
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
21481
21491
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
21492
|
+
local v = {run = {seenCollectibles = __TS__New(Set)}}
|
|
21482
21493
|
____exports.PostCollectibleInitFirst = __TS__Class()
|
|
21483
21494
|
local PostCollectibleInitFirst = ____exports.PostCollectibleInitFirst
|
|
21484
21495
|
PostCollectibleInitFirst.name = "PostCollectibleInitFirst"
|
|
21485
21496
|
__TS__ClassExtends(PostCollectibleInitFirst, CustomCallback)
|
|
21486
21497
|
function PostCollectibleInitFirst.prototype.____constructor(self)
|
|
21487
21498
|
CustomCallback.prototype.____constructor(self)
|
|
21488
|
-
self.v =
|
|
21499
|
+
self.v = v
|
|
21489
21500
|
self.shouldFire = shouldFireCollectible
|
|
21490
21501
|
self.postPickupInitCollectible = function(____, pickup)
|
|
21491
21502
|
local collectible = pickup
|
|
21492
21503
|
local collectibleIndex = getCollectibleIndex(nil, collectible)
|
|
21493
|
-
if
|
|
21504
|
+
if v.run.seenCollectibles:has(collectibleIndex) then
|
|
21494
21505
|
return
|
|
21495
21506
|
end
|
|
21496
|
-
|
|
21507
|
+
v.run.seenCollectibles:add(collectibleIndex)
|
|
21497
21508
|
self:fire(collectible)
|
|
21498
21509
|
end
|
|
21499
21510
|
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
@@ -22596,10 +22607,10 @@ return ____exports
|
|
|
22596
22607
|
end,
|
|
22597
22608
|
["src.classes.callbacks.PostCursedTeleport"] = function(...)
|
|
22598
22609
|
local ____lualib = require("lualib_bundle")
|
|
22599
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
22600
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
22601
22610
|
local Map = ____lualib.Map
|
|
22602
22611
|
local __TS__New = ____lualib.__TS__New
|
|
22612
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
22613
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
22603
22614
|
local ____exports = {}
|
|
22604
22615
|
local playerIsTeleportingFromCursedTeleport
|
|
22605
22616
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -22642,19 +22653,20 @@ function playerIsTeleportingFromCursedTeleport(self, player, lastDamageFrame)
|
|
|
22642
22653
|
end
|
|
22643
22654
|
return false
|
|
22644
22655
|
end
|
|
22656
|
+
local v = {
|
|
22657
|
+
run = {playersDamageFrameMap = __TS__New(Map)},
|
|
22658
|
+
level = {numSacrifices = 0}
|
|
22659
|
+
}
|
|
22645
22660
|
____exports.PostCursedTeleport = __TS__Class()
|
|
22646
22661
|
local PostCursedTeleport = ____exports.PostCursedTeleport
|
|
22647
22662
|
PostCursedTeleport.name = "PostCursedTeleport"
|
|
22648
22663
|
__TS__ClassExtends(PostCursedTeleport, CustomCallback)
|
|
22649
22664
|
function PostCursedTeleport.prototype.____constructor(self)
|
|
22650
22665
|
CustomCallback.prototype.____constructor(self)
|
|
22651
|
-
self.v =
|
|
22652
|
-
run = {playersDamageFrameMap = __TS__New(Map)},
|
|
22653
|
-
level = {numSacrifices = 0}
|
|
22654
|
-
}
|
|
22666
|
+
self.v = v
|
|
22655
22667
|
self.shouldFire = shouldFirePlayer
|
|
22656
22668
|
self.postPlayerRenderPlayer = function(____, player, _renderOffset)
|
|
22657
|
-
local trackingArray = mapGetPlayer(nil,
|
|
22669
|
+
local trackingArray = mapGetPlayer(nil, v.run.playersDamageFrameMap, player)
|
|
22658
22670
|
if trackingArray == nil then
|
|
22659
22671
|
return
|
|
22660
22672
|
end
|
|
@@ -22667,7 +22679,7 @@ function PostCursedTeleport.prototype.____constructor(self)
|
|
|
22667
22679
|
end
|
|
22668
22680
|
local gameFrameCount = game:GetFrameCount()
|
|
22669
22681
|
local newTrackingArray = {gameFrameCount, true}
|
|
22670
|
-
mapSetPlayer(nil,
|
|
22682
|
+
mapSetPlayer(nil, v.run.playersDamageFrameMap, player, newTrackingArray)
|
|
22671
22683
|
self:fire(player)
|
|
22672
22684
|
end
|
|
22673
22685
|
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
@@ -22683,13 +22695,13 @@ function PostCursedTeleport.prototype.incrementNumSacrifices(self, damageFlags)
|
|
|
22683
22695
|
local roomType = room:GetType()
|
|
22684
22696
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
22685
22697
|
if roomType == RoomType.SACRIFICE and isSpikeDamage then
|
|
22686
|
-
local
|
|
22687
|
-
|
|
22698
|
+
local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
|
|
22699
|
+
____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
|
|
22688
22700
|
end
|
|
22689
22701
|
end
|
|
22690
22702
|
function PostCursedTeleport.prototype.setDamageFrame(self, player, damageFlags)
|
|
22691
22703
|
local gameFrameCount = game:GetFrameCount()
|
|
22692
|
-
local trackingArray = mapGetPlayer(nil,
|
|
22704
|
+
local trackingArray = mapGetPlayer(nil, v.run.playersDamageFrameMap, player)
|
|
22693
22705
|
if trackingArray ~= nil then
|
|
22694
22706
|
local lastDamageFrame, callbackFiredOnThisFrame = table.unpack(trackingArray)
|
|
22695
22707
|
if lastDamageFrame == gameFrameCount and callbackFiredOnThisFrame then
|
|
@@ -22700,13 +22712,13 @@ function PostCursedTeleport.prototype.setDamageFrame(self, player, damageFlags)
|
|
|
22700
22712
|
return
|
|
22701
22713
|
end
|
|
22702
22714
|
local newTrackingArray = {gameFrameCount, false}
|
|
22703
|
-
mapSetPlayer(nil,
|
|
22715
|
+
mapSetPlayer(nil, v.run.playersDamageFrameMap, player, newTrackingArray)
|
|
22704
22716
|
end
|
|
22705
22717
|
function PostCursedTeleport.prototype.isPotentialNaturalTeleportFromSacrificeRoom(self, damageFlags)
|
|
22706
22718
|
local room = game:GetRoom()
|
|
22707
22719
|
local roomType = room:GetType()
|
|
22708
22720
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
22709
|
-
return roomType == RoomType.SACRIFICE and isSpikeDamage and (
|
|
22721
|
+
return roomType == RoomType.SACRIFICE and isSpikeDamage and (v.level.numSacrifices == 6 or v.level.numSacrifices >= 12)
|
|
22710
22722
|
end
|
|
22711
22723
|
return ____exports
|
|
22712
22724
|
end,
|
|
@@ -22854,20 +22866,21 @@ local ____players = require("src.functions.players")
|
|
|
22854
22866
|
local getClosestPlayer = ____players.getClosestPlayer
|
|
22855
22867
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
22856
22868
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
22869
|
+
local v = {room = {diceRoomActivated = false}}
|
|
22857
22870
|
____exports.PostDiceRoomActivated = __TS__Class()
|
|
22858
22871
|
local PostDiceRoomActivated = ____exports.PostDiceRoomActivated
|
|
22859
22872
|
PostDiceRoomActivated.name = "PostDiceRoomActivated"
|
|
22860
22873
|
__TS__ClassExtends(PostDiceRoomActivated, CustomCallback)
|
|
22861
22874
|
function PostDiceRoomActivated.prototype.____constructor(self)
|
|
22862
22875
|
CustomCallback.prototype.____constructor(self)
|
|
22863
|
-
self.v =
|
|
22876
|
+
self.v = v
|
|
22864
22877
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
22865
22878
|
local _player, diceFloorSubType = table.unpack(fireArgs)
|
|
22866
22879
|
local callbackDiceFloorSubType = table.unpack(optionalArgs)
|
|
22867
22880
|
return callbackDiceFloorSubType == nil or diceFloorSubType == callbackDiceFloorSubType
|
|
22868
22881
|
end
|
|
22869
22882
|
self.postEffectUpdateDiceFloor = function(____, effect)
|
|
22870
|
-
if
|
|
22883
|
+
if v.room.diceRoomActivated then
|
|
22871
22884
|
return
|
|
22872
22885
|
end
|
|
22873
22886
|
if effect.FrameCount == 0 then
|
|
@@ -22875,7 +22888,7 @@ function PostDiceRoomActivated.prototype.____constructor(self)
|
|
|
22875
22888
|
end
|
|
22876
22889
|
local closestPlayer = getClosestPlayer(nil, effect.Position)
|
|
22877
22890
|
if isCloseEnoughToTriggerDiceFloor(nil, closestPlayer, effect) then
|
|
22878
|
-
|
|
22891
|
+
v.room.diceRoomActivated = true
|
|
22879
22892
|
self:fire(closestPlayer, effect.SubType)
|
|
22880
22893
|
end
|
|
22881
22894
|
end
|
|
@@ -22943,10 +22956,10 @@ return ____exports
|
|
|
22943
22956
|
end,
|
|
22944
22957
|
["src.classes.callbacks.PostEffectInitLate"] = function(...)
|
|
22945
22958
|
local ____lualib = require("lualib_bundle")
|
|
22946
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
22947
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
22948
22959
|
local Set = ____lualib.Set
|
|
22949
22960
|
local __TS__New = ____lualib.__TS__New
|
|
22961
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
22962
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
22950
22963
|
local ____exports = {}
|
|
22951
22964
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
22952
22965
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -22954,18 +22967,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
22954
22967
|
local shouldFireEffect = ____shouldFire.shouldFireEffect
|
|
22955
22968
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
22956
22969
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
22970
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
22957
22971
|
____exports.PostEffectInitLate = __TS__Class()
|
|
22958
22972
|
local PostEffectInitLate = ____exports.PostEffectInitLate
|
|
22959
22973
|
PostEffectInitLate.name = "PostEffectInitLate"
|
|
22960
22974
|
__TS__ClassExtends(PostEffectInitLate, CustomCallback)
|
|
22961
22975
|
function PostEffectInitLate.prototype.____constructor(self)
|
|
22962
22976
|
CustomCallback.prototype.____constructor(self)
|
|
22963
|
-
self.v =
|
|
22977
|
+
self.v = v
|
|
22964
22978
|
self.shouldFire = shouldFireEffect
|
|
22965
22979
|
self.postEffectUpdate = function(____, effect)
|
|
22966
22980
|
local index = GetPtrHash(effect)
|
|
22967
|
-
if not
|
|
22968
|
-
|
|
22981
|
+
if not v.room.firedSet:has(index) then
|
|
22982
|
+
v.room.firedSet:add(index)
|
|
22969
22983
|
self:fire(effect)
|
|
22970
22984
|
end
|
|
22971
22985
|
end
|
|
@@ -22975,9 +22989,9 @@ return ____exports
|
|
|
22975
22989
|
end,
|
|
22976
22990
|
["src.classes.callbacks.PostEffectStateChanged"] = function(...)
|
|
22977
22991
|
local ____lualib = require("lualib_bundle")
|
|
22992
|
+
local __TS__New = ____lualib.__TS__New
|
|
22978
22993
|
local __TS__Class = ____lualib.__TS__Class
|
|
22979
22994
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
22980
|
-
local __TS__New = ____lualib.__TS__New
|
|
22981
22995
|
local ____exports = {}
|
|
22982
22996
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
22983
22997
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -22987,22 +23001,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
22987
23001
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
22988
23002
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
22989
23003
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
23004
|
+
local v = {run = {stateMap = __TS__New(
|
|
23005
|
+
DefaultMap,
|
|
23006
|
+
function(____, state) return state end
|
|
23007
|
+
)}}
|
|
22990
23008
|
____exports.PostEffectStateChanged = __TS__Class()
|
|
22991
23009
|
local PostEffectStateChanged = ____exports.PostEffectStateChanged
|
|
22992
23010
|
PostEffectStateChanged.name = "PostEffectStateChanged"
|
|
22993
23011
|
__TS__ClassExtends(PostEffectStateChanged, CustomCallback)
|
|
22994
23012
|
function PostEffectStateChanged.prototype.____constructor(self)
|
|
22995
23013
|
CustomCallback.prototype.____constructor(self)
|
|
22996
|
-
self.v =
|
|
22997
|
-
DefaultMap,
|
|
22998
|
-
function(____, state) return state end
|
|
22999
|
-
)}}
|
|
23014
|
+
self.v = v
|
|
23000
23015
|
self.shouldFire = shouldFireEffect
|
|
23001
23016
|
self.postEffectUpdate = function(____, effect)
|
|
23002
23017
|
local ptrHash = GetPtrHash(effect)
|
|
23003
|
-
local previousState =
|
|
23018
|
+
local previousState = v.run.stateMap:getAndSetDefault(ptrHash, effect.State)
|
|
23004
23019
|
local currentState = effect.State
|
|
23005
|
-
|
|
23020
|
+
v.run.stateMap:set(ptrHash, currentState)
|
|
23006
23021
|
if previousState ~= currentState then
|
|
23007
23022
|
self:fire(effect, previousState, currentState)
|
|
23008
23023
|
end
|
|
@@ -23032,10 +23047,10 @@ return ____exports
|
|
|
23032
23047
|
end,
|
|
23033
23048
|
["src.classes.callbacks.PostFamiliarInitLate"] = function(...)
|
|
23034
23049
|
local ____lualib = require("lualib_bundle")
|
|
23035
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
23036
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
23037
23050
|
local Set = ____lualib.Set
|
|
23038
23051
|
local __TS__New = ____lualib.__TS__New
|
|
23052
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
23053
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
23039
23054
|
local ____exports = {}
|
|
23040
23055
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
23041
23056
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -23043,18 +23058,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
23043
23058
|
local shouldFireFamiliar = ____shouldFire.shouldFireFamiliar
|
|
23044
23059
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
23045
23060
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
23061
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
23046
23062
|
____exports.PostFamiliarInitLate = __TS__Class()
|
|
23047
23063
|
local PostFamiliarInitLate = ____exports.PostFamiliarInitLate
|
|
23048
23064
|
PostFamiliarInitLate.name = "PostFamiliarInitLate"
|
|
23049
23065
|
__TS__ClassExtends(PostFamiliarInitLate, CustomCallback)
|
|
23050
23066
|
function PostFamiliarInitLate.prototype.____constructor(self)
|
|
23051
23067
|
CustomCallback.prototype.____constructor(self)
|
|
23052
|
-
self.v =
|
|
23068
|
+
self.v = v
|
|
23053
23069
|
self.shouldFire = shouldFireFamiliar
|
|
23054
23070
|
self.postFamiliarUpdate = function(____, familiar)
|
|
23055
23071
|
local index = GetPtrHash(familiar)
|
|
23056
|
-
if not
|
|
23057
|
-
|
|
23072
|
+
if not v.room.firedSet:has(index) then
|
|
23073
|
+
v.room.firedSet:add(index)
|
|
23058
23074
|
self:fire(familiar)
|
|
23059
23075
|
end
|
|
23060
23076
|
end
|
|
@@ -23064,9 +23080,9 @@ return ____exports
|
|
|
23064
23080
|
end,
|
|
23065
23081
|
["src.classes.callbacks.PostFamiliarStateChanged"] = function(...)
|
|
23066
23082
|
local ____lualib = require("lualib_bundle")
|
|
23083
|
+
local __TS__New = ____lualib.__TS__New
|
|
23067
23084
|
local __TS__Class = ____lualib.__TS__Class
|
|
23068
23085
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
23069
|
-
local __TS__New = ____lualib.__TS__New
|
|
23070
23086
|
local ____exports = {}
|
|
23071
23087
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
23072
23088
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -23076,22 +23092,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
23076
23092
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
23077
23093
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
23078
23094
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
23095
|
+
local v = {run = {stateMap = __TS__New(
|
|
23096
|
+
DefaultMap,
|
|
23097
|
+
function(____, state) return state end
|
|
23098
|
+
)}}
|
|
23079
23099
|
____exports.PostFamiliarStateChanged = __TS__Class()
|
|
23080
23100
|
local PostFamiliarStateChanged = ____exports.PostFamiliarStateChanged
|
|
23081
23101
|
PostFamiliarStateChanged.name = "PostFamiliarStateChanged"
|
|
23082
23102
|
__TS__ClassExtends(PostFamiliarStateChanged, CustomCallback)
|
|
23083
23103
|
function PostFamiliarStateChanged.prototype.____constructor(self)
|
|
23084
23104
|
CustomCallback.prototype.____constructor(self)
|
|
23085
|
-
self.v =
|
|
23086
|
-
DefaultMap,
|
|
23087
|
-
function(____, state) return state end
|
|
23088
|
-
)}}
|
|
23105
|
+
self.v = v
|
|
23089
23106
|
self.shouldFire = shouldFireFamiliar
|
|
23090
23107
|
self.postFamiliarUpdate = function(____, familiar)
|
|
23091
23108
|
local ptrHash = GetPtrHash(familiar)
|
|
23092
|
-
local previousState =
|
|
23109
|
+
local previousState = v.run.stateMap:getAndSetDefault(ptrHash, familiar.State)
|
|
23093
23110
|
local currentState = familiar.State
|
|
23094
|
-
|
|
23111
|
+
v.run.stateMap:set(ptrHash, currentState)
|
|
23095
23112
|
if previousState ~= currentState then
|
|
23096
23113
|
self:fire(familiar, previousState, currentState)
|
|
23097
23114
|
end
|
|
@@ -23164,6 +23181,8 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
23164
23181
|
local ____exports = {}
|
|
23165
23182
|
local ____ISCFeature = require("src.enums.ISCFeature")
|
|
23166
23183
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
23184
|
+
local ____shouldFire = require("src.shouldFire")
|
|
23185
|
+
local shouldFireBoolean = ____shouldFire.shouldFireBoolean
|
|
23167
23186
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
23168
23187
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
23169
23188
|
____exports.PostGameStartedReordered = __TS__Class()
|
|
@@ -23172,6 +23191,7 @@ PostGameStartedReordered.name = "PostGameStartedReordered"
|
|
|
23172
23191
|
__TS__ClassExtends(PostGameStartedReordered, CustomCallback)
|
|
23173
23192
|
function PostGameStartedReordered.prototype.____constructor(self)
|
|
23174
23193
|
CustomCallback.prototype.____constructor(self)
|
|
23194
|
+
self.shouldFire = shouldFireBoolean
|
|
23175
23195
|
self.featuresUsed = {ISCFeature.GAME_REORDERED_CALLBACKS}
|
|
23176
23196
|
end
|
|
23177
23197
|
return ____exports
|
|
@@ -23183,6 +23203,8 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
23183
23203
|
local ____exports = {}
|
|
23184
23204
|
local ____ISCFeature = require("src.enums.ISCFeature")
|
|
23185
23205
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
23206
|
+
local ____shouldFire = require("src.shouldFire")
|
|
23207
|
+
local shouldFireBoolean = ____shouldFire.shouldFireBoolean
|
|
23186
23208
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
23187
23209
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
23188
23210
|
____exports.PostGameStartedReorderedLast = __TS__Class()
|
|
@@ -23191,6 +23213,7 @@ PostGameStartedReorderedLast.name = "PostGameStartedReorderedLast"
|
|
|
23191
23213
|
__TS__ClassExtends(PostGameStartedReorderedLast, CustomCallback)
|
|
23192
23214
|
function PostGameStartedReorderedLast.prototype.____constructor(self)
|
|
23193
23215
|
CustomCallback.prototype.____constructor(self)
|
|
23216
|
+
self.shouldFire = shouldFireBoolean
|
|
23194
23217
|
self.featuresUsed = {ISCFeature.GAME_REORDERED_CALLBACKS}
|
|
23195
23218
|
end
|
|
23196
23219
|
return ____exports
|
|
@@ -23977,21 +24000,22 @@ local ____run = require("src.functions.run")
|
|
|
23977
24000
|
local isGreedMode = ____run.isGreedMode
|
|
23978
24001
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
23979
24002
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
24003
|
+
local v = {run = {currentGreedWave = 0}}
|
|
23980
24004
|
____exports.PostGreedModeWave = __TS__Class()
|
|
23981
24005
|
local PostGreedModeWave = ____exports.PostGreedModeWave
|
|
23982
24006
|
PostGreedModeWave.name = "PostGreedModeWave"
|
|
23983
24007
|
__TS__ClassExtends(PostGreedModeWave, CustomCallback)
|
|
23984
24008
|
function PostGreedModeWave.prototype.____constructor(self)
|
|
23985
24009
|
CustomCallback.prototype.____constructor(self)
|
|
23986
|
-
self.v =
|
|
24010
|
+
self.v = v
|
|
23987
24011
|
self.postUpdate = function()
|
|
23988
24012
|
if not isGreedMode(nil) then
|
|
23989
24013
|
return
|
|
23990
24014
|
end
|
|
23991
24015
|
local level = game:GetLevel()
|
|
23992
24016
|
local newWave = level.GreedModeWave
|
|
23993
|
-
local oldWave =
|
|
23994
|
-
|
|
24017
|
+
local oldWave = v.run.currentGreedWave
|
|
24018
|
+
v.run.currentGreedWave = newWave
|
|
23995
24019
|
if newWave > oldWave then
|
|
23996
24020
|
self:fire(oldWave, newWave)
|
|
23997
24021
|
end
|
|
@@ -24320,9 +24344,9 @@ return ____exports
|
|
|
24320
24344
|
end,
|
|
24321
24345
|
["src.classes.callbacks.PostHolyMantleRemoved"] = function(...)
|
|
24322
24346
|
local ____lualib = require("lualib_bundle")
|
|
24347
|
+
local __TS__New = ____lualib.__TS__New
|
|
24323
24348
|
local __TS__Class = ____lualib.__TS__Class
|
|
24324
24349
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
24325
|
-
local __TS__New = ____lualib.__TS__New
|
|
24326
24350
|
local ____exports = {}
|
|
24327
24351
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
24328
24352
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -24337,19 +24361,20 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
24337
24361
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
24338
24362
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
24339
24363
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
24364
|
+
local v = {run = {playersHolyMantleMap = __TS__New(DefaultMap, 0)}}
|
|
24340
24365
|
____exports.PostHolyMantleRemoved = __TS__Class()
|
|
24341
24366
|
local PostHolyMantleRemoved = ____exports.PostHolyMantleRemoved
|
|
24342
24367
|
PostHolyMantleRemoved.name = "PostHolyMantleRemoved"
|
|
24343
24368
|
__TS__ClassExtends(PostHolyMantleRemoved, CustomCallback)
|
|
24344
24369
|
function PostHolyMantleRemoved.prototype.____constructor(self)
|
|
24345
24370
|
CustomCallback.prototype.____constructor(self)
|
|
24346
|
-
self.v =
|
|
24371
|
+
self.v = v
|
|
24347
24372
|
self.shouldFire = shouldFirePlayer
|
|
24348
24373
|
self.postPEffectUpdateReordered = function(____, player)
|
|
24349
24374
|
local effects = player:GetEffects()
|
|
24350
24375
|
local newNumHolyMantles = effects:GetCollectibleEffectNum(CollectibleType.HOLY_MANTLE)
|
|
24351
|
-
local oldNumHolyMantles = defaultMapGetPlayer(nil,
|
|
24352
|
-
mapSetPlayer(nil,
|
|
24376
|
+
local oldNumHolyMantles = defaultMapGetPlayer(nil, v.run.playersHolyMantleMap, player)
|
|
24377
|
+
mapSetPlayer(nil, v.run.playersHolyMantleMap, player, newNumHolyMantles)
|
|
24353
24378
|
if newNumHolyMantles < oldNumHolyMantles then
|
|
24354
24379
|
self:fire(player, oldNumHolyMantles, newNumHolyMantles)
|
|
24355
24380
|
end
|
|
@@ -25184,10 +25209,10 @@ return ____exports
|
|
|
25184
25209
|
end,
|
|
25185
25210
|
["src.classes.callbacks.PostItemDischarge"] = function(...)
|
|
25186
25211
|
local ____lualib = require("lualib_bundle")
|
|
25187
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
25188
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25189
25212
|
local Map = ____lualib.Map
|
|
25190
25213
|
local __TS__New = ____lualib.__TS__New
|
|
25214
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
25215
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25191
25216
|
local ____exports = {}
|
|
25192
25217
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
25193
25218
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
@@ -25211,25 +25236,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
25211
25236
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
25212
25237
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
25213
25238
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
25239
|
+
local v = {
|
|
25240
|
+
run = {
|
|
25241
|
+
playersActiveItemMap = __TS__New(
|
|
25242
|
+
DefaultMap,
|
|
25243
|
+
function() return __TS__New(Map) end
|
|
25244
|
+
),
|
|
25245
|
+
playersActiveChargeMap = __TS__New(
|
|
25246
|
+
DefaultMap,
|
|
25247
|
+
function() return __TS__New(Map) end
|
|
25248
|
+
)
|
|
25249
|
+
},
|
|
25250
|
+
room = {playersBulbLastCollisionFrame = __TS__New(Map)}
|
|
25251
|
+
}
|
|
25214
25252
|
____exports.PostItemDischarge = __TS__Class()
|
|
25215
25253
|
local PostItemDischarge = ____exports.PostItemDischarge
|
|
25216
25254
|
PostItemDischarge.name = "PostItemDischarge"
|
|
25217
25255
|
__TS__ClassExtends(PostItemDischarge, CustomCallback)
|
|
25218
25256
|
function PostItemDischarge.prototype.____constructor(self)
|
|
25219
25257
|
CustomCallback.prototype.____constructor(self)
|
|
25220
|
-
self.v =
|
|
25221
|
-
run = {
|
|
25222
|
-
playersActiveItemMap = __TS__New(
|
|
25223
|
-
DefaultMap,
|
|
25224
|
-
function() return __TS__New(Map) end
|
|
25225
|
-
),
|
|
25226
|
-
playersActiveChargeMap = __TS__New(
|
|
25227
|
-
DefaultMap,
|
|
25228
|
-
function() return __TS__New(Map) end
|
|
25229
|
-
)
|
|
25230
|
-
},
|
|
25231
|
-
room = {playersBulbLastCollisionFrame = __TS__New(Map)}
|
|
25232
|
-
}
|
|
25258
|
+
self.v = v
|
|
25233
25259
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
25234
25260
|
local _player, collectibleType = table.unpack(fireArgs)
|
|
25235
25261
|
local callbackCollectibleType = table.unpack(optionalArgs)
|
|
@@ -25242,8 +25268,8 @@ function PostItemDischarge.prototype.____constructor(self)
|
|
|
25242
25268
|
return nil
|
|
25243
25269
|
end
|
|
25244
25270
|
self.postPEffectUpdateReordered = function(____, player)
|
|
25245
|
-
local activeItemMap = defaultMapGetPlayer(nil,
|
|
25246
|
-
local chargeMap = defaultMapGetPlayer(nil,
|
|
25271
|
+
local activeItemMap = defaultMapGetPlayer(nil, v.run.playersActiveItemMap, player)
|
|
25272
|
+
local chargeMap = defaultMapGetPlayer(nil, v.run.playersActiveChargeMap, player)
|
|
25247
25273
|
for ____, activeSlot in ipairs(ACTIVE_SLOT_VALUES) do
|
|
25248
25274
|
do
|
|
25249
25275
|
local currentActiveItem = player:GetActiveItem()
|
|
@@ -25285,11 +25311,11 @@ function PostItemDischarge.prototype.checkPlayerCollidedWithBulb(self, collider)
|
|
|
25285
25311
|
return
|
|
25286
25312
|
end
|
|
25287
25313
|
local gameFrameCount = game:GetFrameCount()
|
|
25288
|
-
mapSetPlayer(nil,
|
|
25314
|
+
mapSetPlayer(nil, v.room.playersBulbLastCollisionFrame, player, gameFrameCount)
|
|
25289
25315
|
end
|
|
25290
25316
|
function PostItemDischarge.prototype.playerRecentlyCollidedWithBulb(self, player)
|
|
25291
25317
|
local gameFrameCount = game:GetFrameCount()
|
|
25292
|
-
local bulbLastCollisionFrame = mapGetPlayer(nil,
|
|
25318
|
+
local bulbLastCollisionFrame = mapGetPlayer(nil, v.room.playersBulbLastCollisionFrame, player)
|
|
25293
25319
|
local collidedOnThisFrame = gameFrameCount == bulbLastCollisionFrame
|
|
25294
25320
|
local collidedOnLastFrame = gameFrameCount - 1 == bulbLastCollisionFrame
|
|
25295
25321
|
return collidedOnThisFrame or collidedOnLastFrame
|
|
@@ -25557,10 +25583,10 @@ return ____exports
|
|
|
25557
25583
|
end,
|
|
25558
25584
|
["src.classes.callbacks.PostKeyboardChanged"] = function(...)
|
|
25559
25585
|
local ____lualib = require("lualib_bundle")
|
|
25560
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
25561
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25562
25586
|
local Set = ____lualib.Set
|
|
25563
25587
|
local __TS__New = ____lualib.__TS__New
|
|
25588
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
25589
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25564
25590
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
25565
25591
|
local ____exports = {}
|
|
25566
25592
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -25571,32 +25597,33 @@ local ____input = require("src.functions.input")
|
|
|
25571
25597
|
local isKeyboardPressed = ____input.isKeyboardPressed
|
|
25572
25598
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
25573
25599
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
25600
|
+
local v = {run = {pressedKeys = __TS__New(Set)}}
|
|
25574
25601
|
____exports.PostKeyboardChanged = __TS__Class()
|
|
25575
25602
|
local PostKeyboardChanged = ____exports.PostKeyboardChanged
|
|
25576
25603
|
PostKeyboardChanged.name = "PostKeyboardChanged"
|
|
25577
25604
|
__TS__ClassExtends(PostKeyboardChanged, CustomCallback)
|
|
25578
25605
|
function PostKeyboardChanged.prototype.____constructor(self)
|
|
25579
25606
|
CustomCallback.prototype.____constructor(self)
|
|
25580
|
-
self.v =
|
|
25607
|
+
self.v = v
|
|
25581
25608
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
25582
25609
|
local keyboard, pressed = table.unpack(fireArgs)
|
|
25583
25610
|
local callbackKeyboard, callbackPressed = table.unpack(optionalArgs)
|
|
25584
25611
|
return (callbackKeyboard == nil or callbackKeyboard == keyboard) and (callbackPressed == nil or callbackPressed == pressed)
|
|
25585
25612
|
end
|
|
25586
25613
|
self.postRender = function()
|
|
25587
|
-
for ____, keyboard in __TS__Iterator(
|
|
25614
|
+
for ____, keyboard in __TS__Iterator(v.run.pressedKeys) do
|
|
25588
25615
|
if not isKeyboardPressed(nil, keyboard) then
|
|
25589
|
-
|
|
25616
|
+
v.run.pressedKeys:delete(keyboard)
|
|
25590
25617
|
self:fire(keyboard, false)
|
|
25591
25618
|
end
|
|
25592
25619
|
end
|
|
25593
25620
|
for ____, keyboard in ipairs(KEYBOARD_VALUES) do
|
|
25594
25621
|
do
|
|
25595
|
-
if
|
|
25622
|
+
if v.run.pressedKeys:has(keyboard) then
|
|
25596
25623
|
goto __continue8
|
|
25597
25624
|
end
|
|
25598
25625
|
if isKeyboardPressed(nil, keyboard) then
|
|
25599
|
-
|
|
25626
|
+
v.run.pressedKeys:add(keyboard)
|
|
25600
25627
|
self:fire(keyboard, true)
|
|
25601
25628
|
end
|
|
25602
25629
|
end
|
|
@@ -25609,10 +25636,10 @@ return ____exports
|
|
|
25609
25636
|
end,
|
|
25610
25637
|
["src.classes.callbacks.PostKnifeInitLate"] = function(...)
|
|
25611
25638
|
local ____lualib = require("lualib_bundle")
|
|
25612
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
25613
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25614
25639
|
local Set = ____lualib.Set
|
|
25615
25640
|
local __TS__New = ____lualib.__TS__New
|
|
25641
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
25642
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25616
25643
|
local ____exports = {}
|
|
25617
25644
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
25618
25645
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -25620,18 +25647,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
25620
25647
|
local shouldFireKnife = ____shouldFire.shouldFireKnife
|
|
25621
25648
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
25622
25649
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
25650
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
25623
25651
|
____exports.PostKnifeInitLate = __TS__Class()
|
|
25624
25652
|
local PostKnifeInitLate = ____exports.PostKnifeInitLate
|
|
25625
25653
|
PostKnifeInitLate.name = "PostKnifeInitLate"
|
|
25626
25654
|
__TS__ClassExtends(PostKnifeInitLate, CustomCallback)
|
|
25627
25655
|
function PostKnifeInitLate.prototype.____constructor(self)
|
|
25628
25656
|
CustomCallback.prototype.____constructor(self)
|
|
25629
|
-
self.v =
|
|
25657
|
+
self.v = v
|
|
25630
25658
|
self.shouldFire = shouldFireKnife
|
|
25631
25659
|
self.postKnifeUpdate = function(____, knife)
|
|
25632
25660
|
local ptrHash = GetPtrHash(knife)
|
|
25633
|
-
if not
|
|
25634
|
-
|
|
25661
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
25662
|
+
v.room.firedSet:add(ptrHash)
|
|
25635
25663
|
self:fire(knife)
|
|
25636
25664
|
end
|
|
25637
25665
|
end
|
|
@@ -25641,10 +25669,10 @@ return ____exports
|
|
|
25641
25669
|
end,
|
|
25642
25670
|
["src.classes.callbacks.PostLaserInitLate"] = function(...)
|
|
25643
25671
|
local ____lualib = require("lualib_bundle")
|
|
25644
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
25645
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25646
25672
|
local Set = ____lualib.Set
|
|
25647
25673
|
local __TS__New = ____lualib.__TS__New
|
|
25674
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
25675
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
25648
25676
|
local ____exports = {}
|
|
25649
25677
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
25650
25678
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -25652,18 +25680,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
25652
25680
|
local shouldFireLaser = ____shouldFire.shouldFireLaser
|
|
25653
25681
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
25654
25682
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
25683
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
25655
25684
|
____exports.PostLaserInitLate = __TS__Class()
|
|
25656
25685
|
local PostLaserInitLate = ____exports.PostLaserInitLate
|
|
25657
25686
|
PostLaserInitLate.name = "PostLaserInitLate"
|
|
25658
25687
|
__TS__ClassExtends(PostLaserInitLate, CustomCallback)
|
|
25659
25688
|
function PostLaserInitLate.prototype.____constructor(self)
|
|
25660
25689
|
CustomCallback.prototype.____constructor(self)
|
|
25661
|
-
self.v =
|
|
25690
|
+
self.v = v
|
|
25662
25691
|
self.shouldFire = shouldFireLaser
|
|
25663
25692
|
self.postLaserUpdate = function(____, laser)
|
|
25664
25693
|
local index = GetPtrHash(laser)
|
|
25665
|
-
if not
|
|
25666
|
-
|
|
25694
|
+
if not v.room.firedSet:has(index) then
|
|
25695
|
+
v.room.firedSet:add(index)
|
|
25667
25696
|
self:fire(laser)
|
|
25668
25697
|
end
|
|
25669
25698
|
end
|
|
@@ -28926,10 +28955,10 @@ return ____exports
|
|
|
28926
28955
|
end,
|
|
28927
28956
|
["src.classes.callbacks.PostNPCInitLate"] = function(...)
|
|
28928
28957
|
local ____lualib = require("lualib_bundle")
|
|
28929
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
28930
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
28931
28958
|
local Set = ____lualib.Set
|
|
28932
28959
|
local __TS__New = ____lualib.__TS__New
|
|
28960
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
28961
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
28933
28962
|
local ____exports = {}
|
|
28934
28963
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
28935
28964
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -28937,18 +28966,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
28937
28966
|
local shouldFireNPC = ____shouldFire.shouldFireNPC
|
|
28938
28967
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
28939
28968
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
28969
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
28940
28970
|
____exports.PostNPCInitLate = __TS__Class()
|
|
28941
28971
|
local PostNPCInitLate = ____exports.PostNPCInitLate
|
|
28942
28972
|
PostNPCInitLate.name = "PostNPCInitLate"
|
|
28943
28973
|
__TS__ClassExtends(PostNPCInitLate, CustomCallback)
|
|
28944
28974
|
function PostNPCInitLate.prototype.____constructor(self)
|
|
28945
28975
|
CustomCallback.prototype.____constructor(self)
|
|
28946
|
-
self.v =
|
|
28976
|
+
self.v = v
|
|
28947
28977
|
self.shouldFire = shouldFireNPC
|
|
28948
28978
|
self.postNPCUpdate = function(____, npc)
|
|
28949
28979
|
local index = GetPtrHash(npc)
|
|
28950
|
-
if not
|
|
28951
|
-
|
|
28980
|
+
if not v.room.firedSet:has(index) then
|
|
28981
|
+
v.room.firedSet:add(index)
|
|
28952
28982
|
self:fire(npc)
|
|
28953
28983
|
end
|
|
28954
28984
|
end
|
|
@@ -28983,9 +29013,9 @@ return ____exports
|
|
|
28983
29013
|
end,
|
|
28984
29014
|
["src.classes.callbacks.PostNPCStateChanged"] = function(...)
|
|
28985
29015
|
local ____lualib = require("lualib_bundle")
|
|
29016
|
+
local __TS__New = ____lualib.__TS__New
|
|
28986
29017
|
local __TS__Class = ____lualib.__TS__Class
|
|
28987
29018
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
28988
|
-
local __TS__New = ____lualib.__TS__New
|
|
28989
29019
|
local ____exports = {}
|
|
28990
29020
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
28991
29021
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -28995,22 +29025,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
28995
29025
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
28996
29026
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
28997
29027
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29028
|
+
local v = {run = {stateMap = __TS__New(
|
|
29029
|
+
DefaultMap,
|
|
29030
|
+
function(____, state) return state end
|
|
29031
|
+
)}}
|
|
28998
29032
|
____exports.PostNPCStateChanged = __TS__Class()
|
|
28999
29033
|
local PostNPCStateChanged = ____exports.PostNPCStateChanged
|
|
29000
29034
|
PostNPCStateChanged.name = "PostNPCStateChanged"
|
|
29001
29035
|
__TS__ClassExtends(PostNPCStateChanged, CustomCallback)
|
|
29002
29036
|
function PostNPCStateChanged.prototype.____constructor(self)
|
|
29003
29037
|
CustomCallback.prototype.____constructor(self)
|
|
29004
|
-
self.v =
|
|
29005
|
-
DefaultMap,
|
|
29006
|
-
function(____, state) return state end
|
|
29007
|
-
)}}
|
|
29038
|
+
self.v = v
|
|
29008
29039
|
self.shouldFire = shouldFireNPC
|
|
29009
29040
|
self.postNPCUpdate = function(____, npc)
|
|
29010
29041
|
local ptrHash = GetPtrHash(npc)
|
|
29011
|
-
local previousState =
|
|
29042
|
+
local previousState = v.run.stateMap:getAndSetDefault(ptrHash, npc.State)
|
|
29012
29043
|
local currentState = npc.State
|
|
29013
|
-
|
|
29044
|
+
v.run.stateMap:set(ptrHash, currentState)
|
|
29014
29045
|
if previousState ~= currentState then
|
|
29015
29046
|
self:fire(npc, previousState, currentState)
|
|
29016
29047
|
end
|
|
@@ -29090,10 +29121,10 @@ return ____exports
|
|
|
29090
29121
|
end,
|
|
29091
29122
|
["src.classes.callbacks.PostPickupCollect"] = function(...)
|
|
29092
29123
|
local ____lualib = require("lualib_bundle")
|
|
29093
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
29094
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29095
29124
|
local Set = ____lualib.Set
|
|
29096
29125
|
local __TS__New = ____lualib.__TS__New
|
|
29126
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
29127
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29097
29128
|
local ____exports = {}
|
|
29098
29129
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
29099
29130
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -29103,13 +29134,14 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
29103
29134
|
local shouldFirePickup = ____shouldFire.shouldFirePickup
|
|
29104
29135
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29105
29136
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29137
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
29106
29138
|
____exports.PostPickupCollect = __TS__Class()
|
|
29107
29139
|
local PostPickupCollect = ____exports.PostPickupCollect
|
|
29108
29140
|
PostPickupCollect.name = "PostPickupCollect"
|
|
29109
29141
|
__TS__ClassExtends(PostPickupCollect, CustomCallback)
|
|
29110
29142
|
function PostPickupCollect.prototype.____constructor(self)
|
|
29111
29143
|
CustomCallback.prototype.____constructor(self)
|
|
29112
|
-
self.v =
|
|
29144
|
+
self.v = v
|
|
29113
29145
|
self.shouldFire = shouldFirePickup
|
|
29114
29146
|
self.postPickupRender = function(____, pickup)
|
|
29115
29147
|
local sprite = pickup:GetSprite()
|
|
@@ -29118,8 +29150,8 @@ function PostPickupCollect.prototype.____constructor(self)
|
|
|
29118
29150
|
return
|
|
29119
29151
|
end
|
|
29120
29152
|
local index = GetPtrHash(pickup)
|
|
29121
|
-
if not
|
|
29122
|
-
|
|
29153
|
+
if not v.room.firedSet:has(index) then
|
|
29154
|
+
v.room.firedSet:add(index)
|
|
29123
29155
|
local player = getClosestPlayer(nil, pickup.Position)
|
|
29124
29156
|
self:fire(pickup, player)
|
|
29125
29157
|
end
|
|
@@ -29192,10 +29224,10 @@ return ____exports
|
|
|
29192
29224
|
end,
|
|
29193
29225
|
["src.classes.callbacks.PostPickupInitLate"] = function(...)
|
|
29194
29226
|
local ____lualib = require("lualib_bundle")
|
|
29195
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
29196
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29197
29227
|
local Set = ____lualib.Set
|
|
29198
29228
|
local __TS__New = ____lualib.__TS__New
|
|
29229
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
29230
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29199
29231
|
local ____exports = {}
|
|
29200
29232
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
29201
29233
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -29203,18 +29235,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
29203
29235
|
local shouldFirePickup = ____shouldFire.shouldFirePickup
|
|
29204
29236
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29205
29237
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29238
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
29206
29239
|
____exports.PostPickupInitLate = __TS__Class()
|
|
29207
29240
|
local PostPickupInitLate = ____exports.PostPickupInitLate
|
|
29208
29241
|
PostPickupInitLate.name = "PostPickupInitLate"
|
|
29209
29242
|
__TS__ClassExtends(PostPickupInitLate, CustomCallback)
|
|
29210
29243
|
function PostPickupInitLate.prototype.____constructor(self)
|
|
29211
29244
|
CustomCallback.prototype.____constructor(self)
|
|
29212
|
-
self.v =
|
|
29245
|
+
self.v = v
|
|
29213
29246
|
self.shouldFire = shouldFirePickup
|
|
29214
29247
|
self.postPickupUpdate = function(____, pickup)
|
|
29215
29248
|
local index = GetPtrHash(pickup)
|
|
29216
|
-
if not
|
|
29217
|
-
|
|
29249
|
+
if not v.room.firedSet:has(index) then
|
|
29250
|
+
v.room.firedSet:add(index)
|
|
29218
29251
|
self:fire(pickup)
|
|
29219
29252
|
end
|
|
29220
29253
|
end
|
|
@@ -29272,9 +29305,9 @@ return ____exports
|
|
|
29272
29305
|
end,
|
|
29273
29306
|
["src.classes.callbacks.PostPickupStateChanged"] = function(...)
|
|
29274
29307
|
local ____lualib = require("lualib_bundle")
|
|
29308
|
+
local __TS__New = ____lualib.__TS__New
|
|
29275
29309
|
local __TS__Class = ____lualib.__TS__Class
|
|
29276
29310
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29277
|
-
local __TS__New = ____lualib.__TS__New
|
|
29278
29311
|
local ____exports = {}
|
|
29279
29312
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
29280
29313
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -29284,22 +29317,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
29284
29317
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
29285
29318
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29286
29319
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29320
|
+
local v = {run = {stateMap = __TS__New(
|
|
29321
|
+
DefaultMap,
|
|
29322
|
+
function(____, state) return state end
|
|
29323
|
+
)}}
|
|
29287
29324
|
____exports.PostPickupStateChanged = __TS__Class()
|
|
29288
29325
|
local PostPickupStateChanged = ____exports.PostPickupStateChanged
|
|
29289
29326
|
PostPickupStateChanged.name = "PostPickupStateChanged"
|
|
29290
29327
|
__TS__ClassExtends(PostPickupStateChanged, CustomCallback)
|
|
29291
29328
|
function PostPickupStateChanged.prototype.____constructor(self)
|
|
29292
29329
|
CustomCallback.prototype.____constructor(self)
|
|
29293
|
-
self.v =
|
|
29294
|
-
DefaultMap,
|
|
29295
|
-
function(____, state) return state end
|
|
29296
|
-
)}}
|
|
29330
|
+
self.v = v
|
|
29297
29331
|
self.shouldFire = shouldFirePickup
|
|
29298
29332
|
self.postPickupUpdate = function(____, pickup)
|
|
29299
29333
|
local ptrHash = GetPtrHash(pickup)
|
|
29300
|
-
local previousState =
|
|
29334
|
+
local previousState = v.run.stateMap:getAndSetDefault(ptrHash, pickup.State)
|
|
29301
29335
|
local currentState = pickup.State
|
|
29302
|
-
|
|
29336
|
+
v.run.stateMap:set(ptrHash, currentState)
|
|
29303
29337
|
if previousState ~= currentState then
|
|
29304
29338
|
self:fire(pickup, previousState, currentState)
|
|
29305
29339
|
end
|
|
@@ -29741,10 +29775,10 @@ return ____exports
|
|
|
29741
29775
|
end,
|
|
29742
29776
|
["src.classes.callbacks.PostPlayerChangeHealth"] = function(...)
|
|
29743
29777
|
local ____lualib = require("lualib_bundle")
|
|
29744
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
29745
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29746
29778
|
local Map = ____lualib.Map
|
|
29747
29779
|
local __TS__New = ____lualib.__TS__New
|
|
29780
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
29781
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29748
29782
|
local ____exports = {}
|
|
29749
29783
|
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
29750
29784
|
local HEALTH_TYPE_VALUES = ____cachedEnumValues.HEALTH_TYPE_VALUES
|
|
@@ -29760,20 +29794,21 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
29760
29794
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
29761
29795
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29762
29796
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29797
|
+
local v = {run = {playersHealthMap = __TS__New(
|
|
29798
|
+
DefaultMap,
|
|
29799
|
+
function() return __TS__New(Map) end
|
|
29800
|
+
)}}
|
|
29763
29801
|
____exports.PostPlayerChangeHealth = __TS__Class()
|
|
29764
29802
|
local PostPlayerChangeHealth = ____exports.PostPlayerChangeHealth
|
|
29765
29803
|
PostPlayerChangeHealth.name = "PostPlayerChangeHealth"
|
|
29766
29804
|
__TS__ClassExtends(PostPlayerChangeHealth, CustomCallback)
|
|
29767
29805
|
function PostPlayerChangeHealth.prototype.____constructor(self)
|
|
29768
29806
|
CustomCallback.prototype.____constructor(self)
|
|
29769
|
-
self.v =
|
|
29770
|
-
DefaultMap,
|
|
29771
|
-
function() return __TS__New(Map) end
|
|
29772
|
-
)}}
|
|
29807
|
+
self.v = v
|
|
29773
29808
|
self.shouldFire = shouldFirePlayer
|
|
29774
29809
|
self.postPEffectReordered = function(____, player)
|
|
29775
29810
|
local playerIndex = getPlayerIndex(nil, player, true)
|
|
29776
|
-
local playerHealthMap =
|
|
29811
|
+
local playerHealthMap = v.run.playersHealthMap:getAndSetDefault(playerIndex)
|
|
29777
29812
|
for ____, healthType in ipairs(HEALTH_TYPE_VALUES) do
|
|
29778
29813
|
local storedHealthValue = playerHealthMap:get(healthType)
|
|
29779
29814
|
local currentHealthValue = getPlayerHealthType(nil, player, healthType)
|
|
@@ -29819,10 +29854,10 @@ return ____exports
|
|
|
29819
29854
|
end,
|
|
29820
29855
|
["src.classes.callbacks.PostPlayerChangeStat"] = function(...)
|
|
29821
29856
|
local ____lualib = require("lualib_bundle")
|
|
29822
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
29823
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29824
29857
|
local Map = ____lualib.Map
|
|
29825
29858
|
local __TS__New = ____lualib.__TS__New
|
|
29859
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
29860
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29826
29861
|
local ____exports = {}
|
|
29827
29862
|
local statEquals
|
|
29828
29863
|
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
@@ -29873,20 +29908,21 @@ function statEquals(self, oldValue, newValue)
|
|
|
29873
29908
|
end
|
|
29874
29909
|
error("Failed to determine the type of a stat in the \"POST_PLAYER_CHANGE_STAT\" callback.")
|
|
29875
29910
|
end
|
|
29911
|
+
local v = {run = {playersStatMap = __TS__New(
|
|
29912
|
+
DefaultMap,
|
|
29913
|
+
function() return __TS__New(Map) end
|
|
29914
|
+
)}}
|
|
29876
29915
|
____exports.PostPlayerChangeStat = __TS__Class()
|
|
29877
29916
|
local PostPlayerChangeStat = ____exports.PostPlayerChangeStat
|
|
29878
29917
|
PostPlayerChangeStat.name = "PostPlayerChangeStat"
|
|
29879
29918
|
__TS__ClassExtends(PostPlayerChangeStat, CustomCallback)
|
|
29880
29919
|
function PostPlayerChangeStat.prototype.____constructor(self)
|
|
29881
29920
|
CustomCallback.prototype.____constructor(self)
|
|
29882
|
-
self.v =
|
|
29883
|
-
DefaultMap,
|
|
29884
|
-
function() return __TS__New(Map) end
|
|
29885
|
-
)}}
|
|
29921
|
+
self.v = v
|
|
29886
29922
|
self.shouldFire = shouldFirePlayer
|
|
29887
29923
|
self.postPEffectReordered = function(____, player)
|
|
29888
29924
|
local playerIndex = getPlayerIndex(nil, player, true)
|
|
29889
|
-
local playerStatMap =
|
|
29925
|
+
local playerStatMap = v.run.playersStatMap:getAndSetDefault(playerIndex)
|
|
29890
29926
|
for ____, statType in ipairs(STAT_TYPE_VALUES) do
|
|
29891
29927
|
do
|
|
29892
29928
|
local storedStatValue = playerStatMap:get(statType)
|
|
@@ -29916,9 +29952,9 @@ return ____exports
|
|
|
29916
29952
|
end,
|
|
29917
29953
|
["src.classes.callbacks.PostPlayerChangeType"] = function(...)
|
|
29918
29954
|
local ____lualib = require("lualib_bundle")
|
|
29955
|
+
local __TS__New = ____lualib.__TS__New
|
|
29919
29956
|
local __TS__Class = ____lualib.__TS__Class
|
|
29920
29957
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
29921
|
-
local __TS__New = ____lualib.__TS__New
|
|
29922
29958
|
local ____exports = {}
|
|
29923
29959
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
29924
29960
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
@@ -29931,22 +29967,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
29931
29967
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
29932
29968
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29933
29969
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
29970
|
+
local v = {run = {playersCharacterMap = __TS__New(
|
|
29971
|
+
DefaultMap,
|
|
29972
|
+
function(____, character) return character end
|
|
29973
|
+
)}}
|
|
29934
29974
|
____exports.PostPlayerChangeType = __TS__Class()
|
|
29935
29975
|
local PostPlayerChangeType = ____exports.PostPlayerChangeType
|
|
29936
29976
|
PostPlayerChangeType.name = "PostPlayerChangeType"
|
|
29937
29977
|
__TS__ClassExtends(PostPlayerChangeType, CustomCallback)
|
|
29938
29978
|
function PostPlayerChangeType.prototype.____constructor(self)
|
|
29939
29979
|
CustomCallback.prototype.____constructor(self)
|
|
29940
|
-
self.v =
|
|
29941
|
-
DefaultMap,
|
|
29942
|
-
function(____, character) return character end
|
|
29943
|
-
)}}
|
|
29980
|
+
self.v = v
|
|
29944
29981
|
self.shouldFire = shouldFirePlayer
|
|
29945
29982
|
self.postPEffectReordered = function(____, player)
|
|
29946
29983
|
local character = player:GetPlayerType()
|
|
29947
|
-
local storedCharacter = defaultMapGetPlayer(nil,
|
|
29984
|
+
local storedCharacter = defaultMapGetPlayer(nil, v.run.playersCharacterMap, player, character)
|
|
29948
29985
|
if character ~= storedCharacter then
|
|
29949
|
-
mapSetPlayer(nil,
|
|
29986
|
+
mapSetPlayer(nil, v.run.playersCharacterMap, player, character)
|
|
29950
29987
|
self:fire(player, storedCharacter, character)
|
|
29951
29988
|
end
|
|
29952
29989
|
end
|
|
@@ -30214,10 +30251,10 @@ return ____exports
|
|
|
30214
30251
|
end,
|
|
30215
30252
|
["src.classes.callbacks.PostPlayerFatalDamage"] = function(...)
|
|
30216
30253
|
local ____lualib = require("lualib_bundle")
|
|
30217
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
30218
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30219
30254
|
local Map = ____lualib.Map
|
|
30220
30255
|
local __TS__New = ____lualib.__TS__New
|
|
30256
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
30257
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30221
30258
|
local ____exports = {}
|
|
30222
30259
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
30223
30260
|
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
@@ -30242,13 +30279,14 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
30242
30279
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
30243
30280
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30244
30281
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30282
|
+
local v = {run = {playersLastDamageGameFrame = __TS__New(Map)}}
|
|
30245
30283
|
____exports.PostPlayerFatalDamage = __TS__Class()
|
|
30246
30284
|
local PostPlayerFatalDamage = ____exports.PostPlayerFatalDamage
|
|
30247
30285
|
PostPlayerFatalDamage.name = "PostPlayerFatalDamage"
|
|
30248
30286
|
__TS__ClassExtends(PostPlayerFatalDamage, CustomCallback)
|
|
30249
30287
|
function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
30250
30288
|
CustomCallback.prototype.____constructor(self)
|
|
30251
|
-
self.v =
|
|
30289
|
+
self.v = v
|
|
30252
30290
|
self.shouldFire = shouldFirePlayer
|
|
30253
30291
|
self.preUseItemBible = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
30254
30292
|
if not inBossRoomOf(nil, BossID.SATAN) then
|
|
@@ -30274,8 +30312,8 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
|
30274
30312
|
return nil
|
|
30275
30313
|
end
|
|
30276
30314
|
local gameFrameCount = game:GetFrameCount()
|
|
30277
|
-
local lastDamageGameFrame = mapGetPlayer(nil,
|
|
30278
|
-
mapSetPlayer(nil,
|
|
30315
|
+
local lastDamageGameFrame = mapGetPlayer(nil, v.run.playersLastDamageGameFrame, player)
|
|
30316
|
+
mapSetPlayer(nil, v.run.playersLastDamageGameFrame, player, gameFrameCount)
|
|
30279
30317
|
if willPlayerRevive(nil, player) then
|
|
30280
30318
|
return nil
|
|
30281
30319
|
end
|
|
@@ -30348,10 +30386,10 @@ return ____exports
|
|
|
30348
30386
|
end,
|
|
30349
30387
|
["src.classes.callbacks.PostPlayerInitLate"] = function(...)
|
|
30350
30388
|
local ____lualib = require("lualib_bundle")
|
|
30351
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
30352
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30353
30389
|
local Set = ____lualib.Set
|
|
30354
30390
|
local __TS__New = ____lualib.__TS__New
|
|
30391
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
30392
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30355
30393
|
local ____exports = {}
|
|
30356
30394
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
30357
30395
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
@@ -30362,17 +30400,18 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
30362
30400
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
30363
30401
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30364
30402
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30403
|
+
local v = {run = {playersFiredSet = __TS__New(Set)}}
|
|
30365
30404
|
____exports.PostPlayerInitLate = __TS__Class()
|
|
30366
30405
|
local PostPlayerInitLate = ____exports.PostPlayerInitLate
|
|
30367
30406
|
PostPlayerInitLate.name = "PostPlayerInitLate"
|
|
30368
30407
|
__TS__ClassExtends(PostPlayerInitLate, CustomCallback)
|
|
30369
30408
|
function PostPlayerInitLate.prototype.____constructor(self)
|
|
30370
30409
|
CustomCallback.prototype.____constructor(self)
|
|
30371
|
-
self.v =
|
|
30410
|
+
self.v = v
|
|
30372
30411
|
self.shouldFire = shouldFirePlayer
|
|
30373
30412
|
self.postPEffectUpdateReordered = function(____, player)
|
|
30374
|
-
if not setHasPlayer(nil,
|
|
30375
|
-
setAddPlayer(nil,
|
|
30413
|
+
if not setHasPlayer(nil, v.run.playersFiredSet, player) then
|
|
30414
|
+
setAddPlayer(nil, v.run.playersFiredSet, player)
|
|
30376
30415
|
self:fire(player)
|
|
30377
30416
|
end
|
|
30378
30417
|
end
|
|
@@ -30542,10 +30581,10 @@ return ____exports
|
|
|
30542
30581
|
end,
|
|
30543
30582
|
["src.classes.callbacks.PostProjectileInitLate"] = function(...)
|
|
30544
30583
|
local ____lualib = require("lualib_bundle")
|
|
30545
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
30546
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30547
30584
|
local Set = ____lualib.Set
|
|
30548
30585
|
local __TS__New = ____lualib.__TS__New
|
|
30586
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
30587
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30549
30588
|
local ____exports = {}
|
|
30550
30589
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
30551
30590
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -30553,18 +30592,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
30553
30592
|
local shouldFireProjectile = ____shouldFire.shouldFireProjectile
|
|
30554
30593
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30555
30594
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30595
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
30556
30596
|
____exports.PostProjectileInitLate = __TS__Class()
|
|
30557
30597
|
local PostProjectileInitLate = ____exports.PostProjectileInitLate
|
|
30558
30598
|
PostProjectileInitLate.name = "PostProjectileInitLate"
|
|
30559
30599
|
__TS__ClassExtends(PostProjectileInitLate, CustomCallback)
|
|
30560
30600
|
function PostProjectileInitLate.prototype.____constructor(self)
|
|
30561
30601
|
CustomCallback.prototype.____constructor(self)
|
|
30562
|
-
self.v =
|
|
30602
|
+
self.v = v
|
|
30563
30603
|
self.shouldFire = shouldFireProjectile
|
|
30564
30604
|
self.postProjectileUpdate = function(____, projectile)
|
|
30565
30605
|
local ptrHash = GetPtrHash(projectile)
|
|
30566
|
-
if not
|
|
30567
|
-
|
|
30606
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
30607
|
+
v.room.firedSet:add(ptrHash)
|
|
30568
30608
|
self:fire(projectile)
|
|
30569
30609
|
end
|
|
30570
30610
|
end
|
|
@@ -30574,9 +30614,9 @@ return ____exports
|
|
|
30574
30614
|
end,
|
|
30575
30615
|
["src.classes.callbacks.PostPurchase"] = function(...)
|
|
30576
30616
|
local ____lualib = require("lualib_bundle")
|
|
30617
|
+
local __TS__New = ____lualib.__TS__New
|
|
30577
30618
|
local __TS__Class = ____lualib.__TS__Class
|
|
30578
30619
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30579
|
-
local __TS__New = ____lualib.__TS__New
|
|
30580
30620
|
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
30581
30621
|
local ____exports = {}
|
|
30582
30622
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
@@ -30590,13 +30630,14 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
30590
30630
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
30591
30631
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30592
30632
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30633
|
+
local v = {room = {playersHoldingItemOnLastFrameMap = __TS__New(DefaultMap, false)}}
|
|
30593
30634
|
____exports.PostPurchase = __TS__Class()
|
|
30594
30635
|
local PostPurchase = ____exports.PostPurchase
|
|
30595
30636
|
PostPurchase.name = "PostPurchase"
|
|
30596
30637
|
__TS__ClassExtends(PostPurchase, CustomCallback)
|
|
30597
30638
|
function PostPurchase.prototype.____constructor(self)
|
|
30598
30639
|
CustomCallback.prototype.____constructor(self)
|
|
30599
|
-
self.v =
|
|
30640
|
+
self.v = v
|
|
30600
30641
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
30601
30642
|
local _player, pickup = table.unpack(fireArgs)
|
|
30602
30643
|
local callbackPickupVariant, callbackPickupSubType = table.unpack(optionalArgs)
|
|
@@ -30604,8 +30645,8 @@ function PostPurchase.prototype.____constructor(self)
|
|
|
30604
30645
|
end
|
|
30605
30646
|
self.postPEffectUpdateReordered = function(____, player)
|
|
30606
30647
|
local isHoldingItem = player:IsHoldingItem()
|
|
30607
|
-
local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil,
|
|
30608
|
-
mapSetPlayer(nil,
|
|
30648
|
+
local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player)
|
|
30649
|
+
mapSetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player, isHoldingItem)
|
|
30609
30650
|
if not wasHoldingItemOnLastFrame and isHoldingItem then
|
|
30610
30651
|
self:playerPickedUpNewItem(player)
|
|
30611
30652
|
end
|
|
@@ -30695,13 +30736,14 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
|
30695
30736
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
30696
30737
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30697
30738
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30739
|
+
local v = {room = {cleared = false}}
|
|
30698
30740
|
____exports.PostRoomClearChanged = __TS__Class()
|
|
30699
30741
|
local PostRoomClearChanged = ____exports.PostRoomClearChanged
|
|
30700
30742
|
PostRoomClearChanged.name = "PostRoomClearChanged"
|
|
30701
30743
|
__TS__ClassExtends(PostRoomClearChanged, CustomCallback)
|
|
30702
30744
|
function PostRoomClearChanged.prototype.____constructor(self)
|
|
30703
30745
|
CustomCallback.prototype.____constructor(self)
|
|
30704
|
-
self.v =
|
|
30746
|
+
self.v = v
|
|
30705
30747
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
30706
30748
|
local roomClear = table.unpack(fireArgs)
|
|
30707
30749
|
local callbackRoomClear = table.unpack(optionalArgs)
|
|
@@ -30710,15 +30752,15 @@ function PostRoomClearChanged.prototype.____constructor(self)
|
|
|
30710
30752
|
self.postUpdate = function()
|
|
30711
30753
|
local room = game:GetRoom()
|
|
30712
30754
|
local roomClear = room:IsClear()
|
|
30713
|
-
if roomClear ~=
|
|
30714
|
-
|
|
30755
|
+
if roomClear ~= v.room.cleared then
|
|
30756
|
+
v.room.cleared = roomClear
|
|
30715
30757
|
self:fire(roomClear)
|
|
30716
30758
|
end
|
|
30717
30759
|
end
|
|
30718
30760
|
self.postNewRoomReordered = function()
|
|
30719
30761
|
local room = game:GetRoom()
|
|
30720
30762
|
local roomClear = room:IsClear()
|
|
30721
|
-
|
|
30763
|
+
v.room.cleared = roomClear
|
|
30722
30764
|
end
|
|
30723
30765
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
30724
30766
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
@@ -30743,22 +30785,23 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
30743
30785
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
30744
30786
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30745
30787
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30788
|
+
local v = {level = {numSacrifices = 0}}
|
|
30746
30789
|
____exports.PostSacrifice = __TS__Class()
|
|
30747
30790
|
local PostSacrifice = ____exports.PostSacrifice
|
|
30748
30791
|
PostSacrifice.name = "PostSacrifice"
|
|
30749
30792
|
__TS__ClassExtends(PostSacrifice, CustomCallback)
|
|
30750
30793
|
function PostSacrifice.prototype.____constructor(self)
|
|
30751
30794
|
CustomCallback.prototype.____constructor(self)
|
|
30752
|
-
self.v =
|
|
30795
|
+
self.v = v
|
|
30753
30796
|
self.shouldFire = shouldFirePlayer
|
|
30754
30797
|
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
30755
30798
|
local room = game:GetRoom()
|
|
30756
30799
|
local roomType = room:GetType()
|
|
30757
30800
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
30758
30801
|
if roomType == RoomType.SACRIFICE and isSpikeDamage then
|
|
30759
|
-
local
|
|
30760
|
-
|
|
30761
|
-
self:fire(player,
|
|
30802
|
+
local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
|
|
30803
|
+
____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
|
|
30804
|
+
self:fire(player, v.level.numSacrifices)
|
|
30762
30805
|
end
|
|
30763
30806
|
return nil
|
|
30764
30807
|
end
|
|
@@ -30975,10 +31018,10 @@ return ____exports
|
|
|
30975
31018
|
end,
|
|
30976
31019
|
["src.classes.callbacks.PostTearInitLate"] = function(...)
|
|
30977
31020
|
local ____lualib = require("lualib_bundle")
|
|
30978
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
30979
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30980
31021
|
local Set = ____lualib.Set
|
|
30981
31022
|
local __TS__New = ____lualib.__TS__New
|
|
31023
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
31024
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
30982
31025
|
local ____exports = {}
|
|
30983
31026
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
30984
31027
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -30986,18 +31029,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
30986
31029
|
local shouldFireTear = ____shouldFire.shouldFireTear
|
|
30987
31030
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
30988
31031
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
31032
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
30989
31033
|
____exports.PostTearInitLate = __TS__Class()
|
|
30990
31034
|
local PostTearInitLate = ____exports.PostTearInitLate
|
|
30991
31035
|
PostTearInitLate.name = "PostTearInitLate"
|
|
30992
31036
|
__TS__ClassExtends(PostTearInitLate, CustomCallback)
|
|
30993
31037
|
function PostTearInitLate.prototype.____constructor(self)
|
|
30994
31038
|
CustomCallback.prototype.____constructor(self)
|
|
30995
|
-
self.v =
|
|
31039
|
+
self.v = v
|
|
30996
31040
|
self.shouldFire = shouldFireTear
|
|
30997
31041
|
self.postTearUpdate = function(____, tear)
|
|
30998
31042
|
local ptrHash = GetPtrHash(tear)
|
|
30999
|
-
if not
|
|
31000
|
-
|
|
31043
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
31044
|
+
v.room.firedSet:add(ptrHash)
|
|
31001
31045
|
self:fire(tear)
|
|
31002
31046
|
end
|
|
31003
31047
|
end
|
|
@@ -31007,10 +31051,10 @@ return ____exports
|
|
|
31007
31051
|
end,
|
|
31008
31052
|
["src.classes.callbacks.PostTearInitVeryLate"] = function(...)
|
|
31009
31053
|
local ____lualib = require("lualib_bundle")
|
|
31010
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
31011
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31012
31054
|
local Set = ____lualib.Set
|
|
31013
31055
|
local __TS__New = ____lualib.__TS__New
|
|
31056
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
31057
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31014
31058
|
local ____exports = {}
|
|
31015
31059
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
31016
31060
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -31018,21 +31062,22 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
31018
31062
|
local shouldFireTear = ____shouldFire.shouldFireTear
|
|
31019
31063
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
31020
31064
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
31065
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
31021
31066
|
____exports.PostTearInitVeryLate = __TS__Class()
|
|
31022
31067
|
local PostTearInitVeryLate = ____exports.PostTearInitVeryLate
|
|
31023
31068
|
PostTearInitVeryLate.name = "PostTearInitVeryLate"
|
|
31024
31069
|
__TS__ClassExtends(PostTearInitVeryLate, CustomCallback)
|
|
31025
31070
|
function PostTearInitVeryLate.prototype.____constructor(self)
|
|
31026
31071
|
CustomCallback.prototype.____constructor(self)
|
|
31027
|
-
self.v =
|
|
31072
|
+
self.v = v
|
|
31028
31073
|
self.shouldFire = shouldFireTear
|
|
31029
31074
|
self.postTearUpdate = function(____, tear)
|
|
31030
31075
|
if tear.FrameCount == 0 then
|
|
31031
31076
|
return
|
|
31032
31077
|
end
|
|
31033
31078
|
local index = GetPtrHash(tear)
|
|
31034
|
-
if not
|
|
31035
|
-
|
|
31079
|
+
if not v.room.firedSet:has(index) then
|
|
31080
|
+
v.room.firedSet:add(index)
|
|
31036
31081
|
self:fire(tear)
|
|
31037
31082
|
end
|
|
31038
31083
|
end
|
|
@@ -31100,10 +31145,10 @@ return ____exports
|
|
|
31100
31145
|
end,
|
|
31101
31146
|
["src.classes.callbacks.PostTransformation"] = function(...)
|
|
31102
31147
|
local ____lualib = require("lualib_bundle")
|
|
31103
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
31104
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31105
31148
|
local Map = ____lualib.Map
|
|
31106
31149
|
local __TS__New = ____lualib.__TS__New
|
|
31150
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
31151
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31107
31152
|
local ____exports = {}
|
|
31108
31153
|
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
31109
31154
|
local PLAYER_FORM_VALUES = ____cachedEnumValues.PLAYER_FORM_VALUES
|
|
@@ -31115,23 +31160,24 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
31115
31160
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
31116
31161
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
31117
31162
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
31163
|
+
local v = {run = {playersTransformationsMap = __TS__New(
|
|
31164
|
+
DefaultMap,
|
|
31165
|
+
function() return __TS__New(Map) end
|
|
31166
|
+
)}}
|
|
31118
31167
|
____exports.PostTransformation = __TS__Class()
|
|
31119
31168
|
local PostTransformation = ____exports.PostTransformation
|
|
31120
31169
|
PostTransformation.name = "PostTransformation"
|
|
31121
31170
|
__TS__ClassExtends(PostTransformation, CustomCallback)
|
|
31122
31171
|
function PostTransformation.prototype.____constructor(self)
|
|
31123
31172
|
CustomCallback.prototype.____constructor(self)
|
|
31124
|
-
self.v =
|
|
31125
|
-
DefaultMap,
|
|
31126
|
-
function() return __TS__New(Map) end
|
|
31127
|
-
)}}
|
|
31173
|
+
self.v = v
|
|
31128
31174
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
31129
31175
|
local _player, playerForm = table.unpack(fireArgs)
|
|
31130
31176
|
local callbackPlayerForm = table.unpack(optionalArgs)
|
|
31131
31177
|
return callbackPlayerForm == nil or callbackPlayerForm == playerForm
|
|
31132
31178
|
end
|
|
31133
31179
|
self.postPEffectUpdateReordered = function(____, player)
|
|
31134
|
-
local playerTransformationsMap = defaultMapGetPlayer(nil,
|
|
31180
|
+
local playerTransformationsMap = defaultMapGetPlayer(nil, v.run.playersTransformationsMap, player)
|
|
31135
31181
|
for ____, playerForm in ipairs(PLAYER_FORM_VALUES) do
|
|
31136
31182
|
local hasForm = player:HasPlayerForm(playerForm)
|
|
31137
31183
|
local storedForm = playerTransformationsMap:get(playerForm)
|
|
@@ -31150,10 +31196,10 @@ return ____exports
|
|
|
31150
31196
|
end,
|
|
31151
31197
|
["src.classes.callbacks.PostTrinketBreak"] = function(...)
|
|
31152
31198
|
local ____lualib = require("lualib_bundle")
|
|
31153
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
31154
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31155
31199
|
local Map = ____lualib.Map
|
|
31156
31200
|
local __TS__New = ____lualib.__TS__New
|
|
31201
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
31202
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
31157
31203
|
local ____exports = {}
|
|
31158
31204
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
31159
31205
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
@@ -31170,19 +31216,20 @@ local DefaultMap = ____DefaultMap.DefaultMap
|
|
|
31170
31216
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
31171
31217
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
31172
31218
|
local TRINKETS_THAT_CAN_BREAK = {TrinketType.WISH_BONE, TrinketType.WALNUT}
|
|
31219
|
+
local v = {run = {playersTrinketMap = __TS__New(
|
|
31220
|
+
DefaultMap,
|
|
31221
|
+
function() return __TS__New(Map) end
|
|
31222
|
+
)}}
|
|
31173
31223
|
____exports.PostTrinketBreak = __TS__Class()
|
|
31174
31224
|
local PostTrinketBreak = ____exports.PostTrinketBreak
|
|
31175
31225
|
PostTrinketBreak.name = "PostTrinketBreak"
|
|
31176
31226
|
__TS__ClassExtends(PostTrinketBreak, CustomCallback)
|
|
31177
31227
|
function PostTrinketBreak.prototype.____constructor(self)
|
|
31178
31228
|
CustomCallback.prototype.____constructor(self)
|
|
31179
|
-
self.v =
|
|
31180
|
-
DefaultMap,
|
|
31181
|
-
function() return __TS__New(Map) end
|
|
31182
|
-
)}}
|
|
31229
|
+
self.v = v
|
|
31183
31230
|
self.shouldFire = shouldFireTrinketType
|
|
31184
31231
|
self.entityTakeDmgPlayer = function(____, player, _amount, _damageFlags, _source, _countdownFrames)
|
|
31185
|
-
local trinketMap = defaultMapGetPlayer(nil,
|
|
31232
|
+
local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
|
|
31186
31233
|
for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
|
|
31187
31234
|
do
|
|
31188
31235
|
local numTrinketsHeld = player:GetTrinketMultiplier(trinketType)
|
|
@@ -31205,7 +31252,7 @@ function PostTrinketBreak.prototype.____constructor(self)
|
|
|
31205
31252
|
return nil
|
|
31206
31253
|
end
|
|
31207
31254
|
self.postPEffectUpdateReordered = function(____, player)
|
|
31208
|
-
local trinketMap = defaultMapGetPlayer(nil,
|
|
31255
|
+
local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
|
|
31209
31256
|
for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
|
|
31210
31257
|
local numTrinkets = player:GetTrinketMultiplier(trinketType)
|
|
31211
31258
|
if numTrinkets == 0 then
|
|
@@ -31399,16 +31446,17 @@ local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
|
31399
31446
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
31400
31447
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
31401
31448
|
local TRAVELING_TO_NEXT_FLOOR_ANIMATIONS = __TS__New(ReadonlySet, {"Trapdoor", "LightTravel"})
|
|
31449
|
+
local v = {run = {firedOnStage = nil}}
|
|
31402
31450
|
____exports.PreNewLevel = __TS__Class()
|
|
31403
31451
|
local PreNewLevel = ____exports.PreNewLevel
|
|
31404
31452
|
PreNewLevel.name = "PreNewLevel"
|
|
31405
31453
|
__TS__ClassExtends(PreNewLevel, CustomCallback)
|
|
31406
31454
|
function PreNewLevel.prototype.____constructor(self)
|
|
31407
31455
|
CustomCallback.prototype.____constructor(self)
|
|
31408
|
-
self.v =
|
|
31456
|
+
self.v = v
|
|
31409
31457
|
self.postPlayerRender = function(____, player)
|
|
31410
31458
|
local effectiveStage = getEffectiveStage(nil)
|
|
31411
|
-
if effectiveStage ==
|
|
31459
|
+
if effectiveStage == v.run.firedOnStage then
|
|
31412
31460
|
return
|
|
31413
31461
|
end
|
|
31414
31462
|
local sprite = player:GetSprite()
|
|
@@ -31419,7 +31467,7 @@ function PreNewLevel.prototype.____constructor(self)
|
|
|
31419
31467
|
local frame = sprite:GetFrame()
|
|
31420
31468
|
local finalFrame = getLastFrameOfAnimation(nil, sprite)
|
|
31421
31469
|
if frame == finalFrame then
|
|
31422
|
-
|
|
31470
|
+
v.run.firedOnStage = effectiveStage
|
|
31423
31471
|
self:fire(player)
|
|
31424
31472
|
end
|
|
31425
31473
|
end
|
|
@@ -32246,13 +32294,14 @@ local getRoomVariant = ____roomData.getRoomVariant
|
|
|
32246
32294
|
local getRoomVisitedCount = ____roomData.getRoomVisitedCount
|
|
32247
32295
|
local ____Feature = require("src.classes.private.Feature")
|
|
32248
32296
|
local Feature = ____Feature.Feature
|
|
32297
|
+
local v = {run = {roomHistory = {}}}
|
|
32249
32298
|
____exports.RoomHistory = __TS__Class()
|
|
32250
32299
|
local RoomHistory = ____exports.RoomHistory
|
|
32251
32300
|
RoomHistory.name = "RoomHistory"
|
|
32252
32301
|
__TS__ClassExtends(RoomHistory, Feature)
|
|
32253
32302
|
function RoomHistory.prototype.____constructor(self)
|
|
32254
32303
|
Feature.prototype.____constructor(self)
|
|
32255
|
-
self.v =
|
|
32304
|
+
self.v = v
|
|
32256
32305
|
self.postNewRoomEarly = function()
|
|
32257
32306
|
local level = game:GetLevel()
|
|
32258
32307
|
local stage = level:GetStage()
|
|
@@ -32283,30 +32332,30 @@ function RoomHistory.prototype.____constructor(self)
|
|
|
32283
32332
|
roomListIndex = roomListIndex,
|
|
32284
32333
|
roomVisitedCount = roomVisitedCount
|
|
32285
32334
|
}
|
|
32286
|
-
local
|
|
32287
|
-
|
|
32335
|
+
local ____v_run_roomHistory_0 = v.run.roomHistory
|
|
32336
|
+
____v_run_roomHistory_0[#____v_run_roomHistory_0 + 1] = roomDescription
|
|
32288
32337
|
end
|
|
32289
32338
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
32290
32339
|
end
|
|
32291
32340
|
function RoomHistory.prototype.getNumRoomsEntered(self)
|
|
32292
|
-
return #
|
|
32341
|
+
return #v.run.roomHistory
|
|
32293
32342
|
end
|
|
32294
32343
|
function RoomHistory.prototype.getRoomHistory(self)
|
|
32295
|
-
return
|
|
32344
|
+
return v.run.roomHistory
|
|
32296
32345
|
end
|
|
32297
32346
|
function RoomHistory.prototype.getPreviousRoomDescription(self)
|
|
32298
|
-
local previousRoomDescription =
|
|
32347
|
+
local previousRoomDescription = v.run.roomHistory[#v.run.roomHistory - 2 + 1]
|
|
32299
32348
|
if previousRoomDescription ~= nil then
|
|
32300
32349
|
return previousRoomDescription
|
|
32301
32350
|
end
|
|
32302
|
-
local startingRoomDescription =
|
|
32351
|
+
local startingRoomDescription = v.run.roomHistory[1]
|
|
32303
32352
|
if startingRoomDescription ~= nil then
|
|
32304
32353
|
return startingRoomDescription
|
|
32305
32354
|
end
|
|
32306
32355
|
error("Failed to find a room description for any rooms thus far on this run.")
|
|
32307
32356
|
end
|
|
32308
32357
|
function RoomHistory.prototype.getLatestRoomDescription(self)
|
|
32309
|
-
return getLastElement(nil,
|
|
32358
|
+
return getLastElement(nil, v.run.roomHistory)
|
|
32310
32359
|
end
|
|
32311
32360
|
function RoomHistory.prototype.isLeavingRoom(self)
|
|
32312
32361
|
local level = game:GetLevel()
|
|
@@ -32401,25 +32450,26 @@ function checkExecuteIntervalFunctions(self, intervalFunctions, frameCount, newN
|
|
|
32401
32450
|
end
|
|
32402
32451
|
end
|
|
32403
32452
|
end
|
|
32453
|
+
local v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
|
|
32404
32454
|
____exports.RunInNFrames = __TS__Class()
|
|
32405
32455
|
local RunInNFrames = ____exports.RunInNFrames
|
|
32406
32456
|
RunInNFrames.name = "RunInNFrames"
|
|
32407
32457
|
__TS__ClassExtends(RunInNFrames, Feature)
|
|
32408
32458
|
function RunInNFrames.prototype.____constructor(self, roomHistory)
|
|
32409
32459
|
Feature.prototype.____constructor(self)
|
|
32410
|
-
self.v =
|
|
32460
|
+
self.v = v
|
|
32411
32461
|
self.vConditionalFunc = function() return false end
|
|
32412
32462
|
self.postUpdate = function()
|
|
32413
32463
|
local gameFrameCount = game:GetFrameCount()
|
|
32414
32464
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
32415
|
-
checkExecuteQueuedFunctions(nil,
|
|
32416
|
-
checkExecuteIntervalFunctions(nil,
|
|
32465
|
+
checkExecuteQueuedFunctions(nil, v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
|
|
32466
|
+
checkExecuteIntervalFunctions(nil, v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
|
|
32417
32467
|
end
|
|
32418
32468
|
self.postRender = function()
|
|
32419
32469
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
32420
32470
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
32421
|
-
checkExecuteQueuedFunctions(nil,
|
|
32422
|
-
checkExecuteIntervalFunctions(nil,
|
|
32471
|
+
checkExecuteQueuedFunctions(nil, v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
|
|
32472
|
+
checkExecuteIntervalFunctions(nil, v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
|
|
32423
32473
|
end
|
|
32424
32474
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY}
|
|
32425
32475
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_RENDER, self.postRender}}
|
|
@@ -32438,8 +32488,8 @@ function RunInNFrames.prototype.runInNGameFrames(self, func, numGameFrames, canc
|
|
|
32438
32488
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
32439
32489
|
local frameCountToFire = gameFrameCount + numGameFrames
|
|
32440
32490
|
local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
|
|
32441
|
-
local
|
|
32442
|
-
|
|
32491
|
+
local ____v_run_queuedGameFunctions_0 = v.run.queuedGameFunctions
|
|
32492
|
+
____v_run_queuedGameFunctions_0[#____v_run_queuedGameFunctions_0 + 1] = queuedFunction
|
|
32443
32493
|
end
|
|
32444
32494
|
function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames, cancelIfRoomChanges)
|
|
32445
32495
|
if cancelIfRoomChanges == nil then
|
|
@@ -32449,8 +32499,8 @@ function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames,
|
|
|
32449
32499
|
local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
|
|
32450
32500
|
local frameCountToFire = renderFrameCount + numRenderFrames
|
|
32451
32501
|
local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
|
|
32452
|
-
local
|
|
32453
|
-
|
|
32502
|
+
local ____v_run_queuedRenderFunctions_1 = v.run.queuedRenderFunctions
|
|
32503
|
+
____v_run_queuedRenderFunctions_1[#____v_run_queuedRenderFunctions_1 + 1] = queuedFunction
|
|
32454
32504
|
end
|
|
32455
32505
|
function RunInNFrames.prototype.runNextGameFrame(self, func, cancelIfRoomChanges)
|
|
32456
32506
|
if cancelIfRoomChanges == nil then
|
|
@@ -32483,8 +32533,8 @@ function RunInNFrames.prototype.setIntervalGameFrames(self, func, numGameFrames,
|
|
|
32483
32533
|
cancelIfRoomChanges = cancelIfRoomChanges,
|
|
32484
32534
|
numIntervalFrames = numGameFrames
|
|
32485
32535
|
}
|
|
32486
|
-
local
|
|
32487
|
-
|
|
32536
|
+
local ____v_run_intervalGameFunctions_2 = v.run.intervalGameFunctions
|
|
32537
|
+
____v_run_intervalGameFunctions_2[#____v_run_intervalGameFunctions_2 + 1] = intervalFunction
|
|
32488
32538
|
end
|
|
32489
32539
|
function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFrames, runImmediately, cancelIfRoomChanges)
|
|
32490
32540
|
if cancelIfRoomChanges == nil then
|
|
@@ -32505,8 +32555,8 @@ function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFra
|
|
|
32505
32555
|
cancelIfRoomChanges = cancelIfRoomChanges,
|
|
32506
32556
|
numIntervalFrames = numRenderFrames
|
|
32507
32557
|
}
|
|
32508
|
-
local
|
|
32509
|
-
|
|
32558
|
+
local ____v_run_intervalRenderFunctions_3 = v.run.intervalRenderFunctions
|
|
32559
|
+
____v_run_intervalRenderFunctions_3[#____v_run_intervalRenderFunctions_3 + 1] = intervalFunction
|
|
32510
32560
|
end
|
|
32511
32561
|
__TS__Decorate({Exported}, RunInNFrames.prototype, "restartNextRenderFrame", true)
|
|
32512
32562
|
__TS__Decorate({Exported}, RunInNFrames.prototype, "runInNGameFrames", true)
|
|
@@ -32519,11 +32569,11 @@ return ____exports
|
|
|
32519
32569
|
end,
|
|
32520
32570
|
["src.classes.features.callbackLogic.CustomGridEntities"] = function(...)
|
|
32521
32571
|
local ____lualib = require("lualib_bundle")
|
|
32522
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
32523
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
32524
32572
|
local Map = ____lualib.Map
|
|
32525
32573
|
local __TS__New = ____lualib.__TS__New
|
|
32526
32574
|
local Set = ____lualib.Set
|
|
32575
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
32576
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
32527
32577
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
32528
32578
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
32529
32579
|
local ____exports = {}
|
|
@@ -32555,26 +32605,27 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
32555
32605
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
32556
32606
|
local ____Feature = require("src.classes.private.Feature")
|
|
32557
32607
|
local Feature = ____Feature.Feature
|
|
32608
|
+
local v = {
|
|
32609
|
+
level = {customGridEntities = __TS__New(
|
|
32610
|
+
DefaultMap,
|
|
32611
|
+
function() return __TS__New(Map) end
|
|
32612
|
+
)},
|
|
32613
|
+
room = {
|
|
32614
|
+
genericPropPtrHashes = __TS__New(Set),
|
|
32615
|
+
manuallyUsingShovel = false
|
|
32616
|
+
}
|
|
32617
|
+
}
|
|
32558
32618
|
____exports.CustomGridEntities = __TS__Class()
|
|
32559
32619
|
local CustomGridEntities = ____exports.CustomGridEntities
|
|
32560
32620
|
CustomGridEntities.name = "CustomGridEntities"
|
|
32561
32621
|
__TS__ClassExtends(CustomGridEntities, Feature)
|
|
32562
32622
|
function CustomGridEntities.prototype.____constructor(self, runInNFrames)
|
|
32563
32623
|
Feature.prototype.____constructor(self)
|
|
32564
|
-
self.v =
|
|
32565
|
-
level = {customGridEntities = __TS__New(
|
|
32566
|
-
DefaultMap,
|
|
32567
|
-
function() return __TS__New(Map) end
|
|
32568
|
-
)},
|
|
32569
|
-
room = {
|
|
32570
|
-
genericPropPtrHashes = __TS__New(Set),
|
|
32571
|
-
manuallyUsingShovel = false
|
|
32572
|
-
}
|
|
32573
|
-
}
|
|
32624
|
+
self.v = v
|
|
32574
32625
|
self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
32575
32626
|
local room = game:GetRoom()
|
|
32576
32627
|
local roomListIndex = getRoomListIndex(nil)
|
|
32577
|
-
local roomCustomGridEntities =
|
|
32628
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
32578
32629
|
if roomCustomGridEntities == nil then
|
|
32579
32630
|
return nil
|
|
32580
32631
|
end
|
|
@@ -32593,15 +32644,15 @@ function CustomGridEntities.prototype.____constructor(self, runInNFrames)
|
|
|
32593
32644
|
if futurePlayer == nil then
|
|
32594
32645
|
return
|
|
32595
32646
|
end
|
|
32596
|
-
|
|
32647
|
+
v.room.manuallyUsingShovel = true
|
|
32597
32648
|
futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
|
|
32598
|
-
|
|
32649
|
+
v.room.manuallyUsingShovel = false
|
|
32599
32650
|
end)
|
|
32600
32651
|
return true
|
|
32601
32652
|
end
|
|
32602
32653
|
self.postNewRoomReordered = function()
|
|
32603
32654
|
local roomListIndex = getRoomListIndex(nil)
|
|
32604
|
-
local roomCustomGridEntities =
|
|
32655
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
32605
32656
|
if roomCustomGridEntities == nil then
|
|
32606
32657
|
return
|
|
32607
32658
|
end
|
|
@@ -32661,7 +32712,7 @@ function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityType
|
|
|
32661
32712
|
defaultAnimation = defaultAnimation,
|
|
32662
32713
|
gridCollisionClass = gridCollisionClass
|
|
32663
32714
|
}
|
|
32664
|
-
local roomCustomGridEntities =
|
|
32715
|
+
local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
|
|
32665
32716
|
roomCustomGridEntities:set(gridIndex, customGridEntityData)
|
|
32666
32717
|
return customGridEntity
|
|
32667
32718
|
end
|
|
@@ -32690,7 +32741,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
|
|
|
32690
32741
|
decoration = gridIndexOrPositionOrGridEntity
|
|
32691
32742
|
end
|
|
32692
32743
|
local gridIndex = decoration:GetGridIndex()
|
|
32693
|
-
local roomCustomGridEntities =
|
|
32744
|
+
local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
|
|
32694
32745
|
local exists = roomCustomGridEntities:has(gridIndex)
|
|
32695
32746
|
if not exists then
|
|
32696
32747
|
return nil
|
|
@@ -32701,7 +32752,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
|
|
|
32701
32752
|
end
|
|
32702
32753
|
function CustomGridEntities.prototype.getCustomGridEntities(self)
|
|
32703
32754
|
local roomListIndex = getRoomListIndex(nil)
|
|
32704
|
-
local roomCustomGridEntities =
|
|
32755
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
32705
32756
|
if roomCustomGridEntities == nil then
|
|
32706
32757
|
return {}
|
|
32707
32758
|
end
|
|
@@ -32723,7 +32774,7 @@ function CustomGridEntities.prototype.getCustomGridEntityType(self, gridEntityOr
|
|
|
32723
32774
|
end
|
|
32724
32775
|
local gridIndex = isNumber(nil, gridEntityOrGridIndex) and gridEntityOrGridIndex or gridEntityOrGridIndex:GetGridIndex()
|
|
32725
32776
|
local roomListIndex = getRoomListIndex(nil)
|
|
32726
|
-
local roomCustomGridEntities =
|
|
32777
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
32727
32778
|
if roomCustomGridEntities == nil then
|
|
32728
32779
|
return nil
|
|
32729
32780
|
end
|
|
@@ -32785,30 +32836,31 @@ CustomReviveState.WAITING_FOR_ROOM_TRANSITION = 1
|
|
|
32785
32836
|
CustomReviveState[CustomReviveState.WAITING_FOR_ROOM_TRANSITION] = "WAITING_FOR_ROOM_TRANSITION"
|
|
32786
32837
|
CustomReviveState.WAITING_FOR_ITEM_ANIMATION = 2
|
|
32787
32838
|
CustomReviveState[CustomReviveState.WAITING_FOR_ITEM_ANIMATION] = "WAITING_FOR_ITEM_ANIMATION"
|
|
32839
|
+
local v = {run = {state = CustomReviveState.DISABLED, revivalType = nil, dyingPlayerIndex = nil}}
|
|
32788
32840
|
____exports.CustomRevive = __TS__Class()
|
|
32789
32841
|
local CustomRevive = ____exports.CustomRevive
|
|
32790
32842
|
CustomRevive.name = "CustomRevive"
|
|
32791
32843
|
__TS__ClassExtends(CustomRevive, Feature)
|
|
32792
32844
|
function CustomRevive.prototype.____constructor(self, preCustomRevive, postCustomRevive, runInNFrames)
|
|
32793
32845
|
Feature.prototype.____constructor(self)
|
|
32794
|
-
self.v =
|
|
32846
|
+
self.v = v
|
|
32795
32847
|
self.postRender = function()
|
|
32796
|
-
if
|
|
32848
|
+
if v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
|
|
32797
32849
|
return
|
|
32798
32850
|
end
|
|
32799
32851
|
sfxManager:Stop(SoundEffect.ONE_UP)
|
|
32800
32852
|
end
|
|
32801
32853
|
self.postFamiliarInitOneUp = function(____, familiar)
|
|
32802
|
-
if
|
|
32854
|
+
if v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
32803
32855
|
return
|
|
32804
32856
|
end
|
|
32805
32857
|
familiar:Remove()
|
|
32806
32858
|
end
|
|
32807
32859
|
self.postNewRoomReordered = function()
|
|
32808
|
-
if
|
|
32860
|
+
if v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
32809
32861
|
return
|
|
32810
32862
|
end
|
|
32811
|
-
|
|
32863
|
+
v.run.state = CustomReviveState.WAITING_FOR_ITEM_ANIMATION
|
|
32812
32864
|
self:logStateChanged()
|
|
32813
32865
|
end
|
|
32814
32866
|
self.postPEffectUpdateReordered = function(____, player)
|
|
@@ -32829,14 +32881,14 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
32829
32881
|
self.runInNFrames = runInNFrames
|
|
32830
32882
|
end
|
|
32831
32883
|
function CustomRevive.prototype.checkWaitingForItemAnimation(self, player)
|
|
32832
|
-
if
|
|
32884
|
+
if v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
|
|
32833
32885
|
return
|
|
32834
32886
|
end
|
|
32835
|
-
if
|
|
32887
|
+
if v.run.dyingPlayerIndex == nil then
|
|
32836
32888
|
return
|
|
32837
32889
|
end
|
|
32838
32890
|
local playerIndex = getPlayerIndex(nil, player)
|
|
32839
|
-
if playerIndex ~=
|
|
32891
|
+
if playerIndex ~= v.run.dyingPlayerIndex then
|
|
32840
32892
|
return
|
|
32841
32893
|
end
|
|
32842
32894
|
local playerToCheckHoldingItem = player
|
|
@@ -32849,12 +32901,12 @@ function CustomRevive.prototype.checkWaitingForItemAnimation(self, player)
|
|
|
32849
32901
|
if not playerToCheckHoldingItem:IsHoldingItem() then
|
|
32850
32902
|
return
|
|
32851
32903
|
end
|
|
32852
|
-
if
|
|
32853
|
-
self.postCustomRevive:fire(playerToCheckHoldingItem,
|
|
32904
|
+
if v.run.revivalType ~= nil then
|
|
32905
|
+
self.postCustomRevive:fire(playerToCheckHoldingItem, v.run.revivalType)
|
|
32854
32906
|
end
|
|
32855
|
-
|
|
32856
|
-
|
|
32857
|
-
|
|
32907
|
+
v.run.state = CustomReviveState.DISABLED
|
|
32908
|
+
v.run.revivalType = nil
|
|
32909
|
+
v.run.dyingPlayerIndex = nil
|
|
32858
32910
|
self:logStateChanged()
|
|
32859
32911
|
end
|
|
32860
32912
|
function CustomRevive.prototype.playerIsAboutToDie(self, player)
|
|
@@ -32862,9 +32914,9 @@ function CustomRevive.prototype.playerIsAboutToDie(self, player)
|
|
|
32862
32914
|
if revivalType == nil then
|
|
32863
32915
|
return
|
|
32864
32916
|
end
|
|
32865
|
-
|
|
32866
|
-
|
|
32867
|
-
|
|
32917
|
+
v.run.state = CustomReviveState.WAITING_FOR_ROOM_TRANSITION
|
|
32918
|
+
v.run.revivalType = revivalType
|
|
32919
|
+
v.run.dyingPlayerIndex = getPlayerIndex(nil, player)
|
|
32868
32920
|
self:logStateChanged()
|
|
32869
32921
|
player:AddCollectible(CollectibleType.ONE_UP, 0, false)
|
|
32870
32922
|
removeCollectibleFromItemTracker(nil, CollectibleType.ONE_UP)
|
|
@@ -32883,7 +32935,7 @@ function CustomRevive.prototype.playerIsAboutToDie(self, player)
|
|
|
32883
32935
|
end
|
|
32884
32936
|
function CustomRevive.prototype.logStateChanged(self)
|
|
32885
32937
|
if DEBUG then
|
|
32886
|
-
log(((("Custom revive state changed: " .. CustomReviveState[
|
|
32938
|
+
log(((("Custom revive state changed: " .. CustomReviveState[v.run.state]) .. " (") .. tostring(v.run.state)) .. ")")
|
|
32887
32939
|
end
|
|
32888
32940
|
end
|
|
32889
32941
|
return ____exports
|
|
@@ -32902,38 +32954,39 @@ local ____players = require("src.functions.players")
|
|
|
32902
32954
|
local getPlayersWithControllerIndex = ____players.getPlayersWithControllerIndex
|
|
32903
32955
|
local ____Feature = require("src.classes.private.Feature")
|
|
32904
32956
|
local Feature = ____Feature.Feature
|
|
32957
|
+
local v = {run = {usedEsauJrFrame = nil, usedEsauJrControllerIndex = nil, usedEsauJrAtLeastOnce = false}}
|
|
32905
32958
|
____exports.EsauJrDetection = __TS__Class()
|
|
32906
32959
|
local EsauJrDetection = ____exports.EsauJrDetection
|
|
32907
32960
|
EsauJrDetection.name = "EsauJrDetection"
|
|
32908
32961
|
__TS__ClassExtends(EsauJrDetection, Feature)
|
|
32909
32962
|
function EsauJrDetection.prototype.____constructor(self, postEsauJr, postFirstEsauJr)
|
|
32910
32963
|
Feature.prototype.____constructor(self)
|
|
32911
|
-
self.v =
|
|
32964
|
+
self.v = v
|
|
32912
32965
|
self.postUpdate = function()
|
|
32913
32966
|
local gameFrameCount = game:GetFrameCount()
|
|
32914
|
-
if
|
|
32967
|
+
if v.run.usedEsauJrFrame == nil or gameFrameCount < v.run.usedEsauJrFrame + 1 then
|
|
32915
32968
|
return
|
|
32916
32969
|
end
|
|
32917
|
-
|
|
32918
|
-
if
|
|
32970
|
+
v.run.usedEsauJrFrame = nil
|
|
32971
|
+
if v.run.usedEsauJrControllerIndex == nil then
|
|
32919
32972
|
return
|
|
32920
32973
|
end
|
|
32921
|
-
local players = getPlayersWithControllerIndex(nil,
|
|
32922
|
-
|
|
32974
|
+
local players = getPlayersWithControllerIndex(nil, v.run.usedEsauJrControllerIndex)
|
|
32975
|
+
v.run.usedEsauJrControllerIndex = nil
|
|
32923
32976
|
local player = players[1]
|
|
32924
32977
|
if player == nil then
|
|
32925
32978
|
return
|
|
32926
32979
|
end
|
|
32927
|
-
if not
|
|
32928
|
-
|
|
32980
|
+
if not v.run.usedEsauJrAtLeastOnce then
|
|
32981
|
+
v.run.usedEsauJrAtLeastOnce = true
|
|
32929
32982
|
self.postFirstEsauJr:fire(player)
|
|
32930
32983
|
end
|
|
32931
32984
|
self.postEsauJr:fire(player)
|
|
32932
32985
|
end
|
|
32933
32986
|
self.useItemEsauJr = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
32934
32987
|
local gameFrameCount = game:GetFrameCount()
|
|
32935
|
-
|
|
32936
|
-
|
|
32988
|
+
v.run.usedEsauJrFrame = gameFrameCount + 1
|
|
32989
|
+
v.run.usedEsauJrControllerIndex = player.ControllerIndex
|
|
32937
32990
|
return nil
|
|
32938
32991
|
end
|
|
32939
32992
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_USE_ITEM, self.useItemEsauJr, {CollectibleType.ESAU_JR}}}
|
|
@@ -32974,13 +33027,14 @@ function getNewLazarus(self, oldLazarus)
|
|
|
32974
33027
|
function(____, player) return player.FrameCount == oldLazarus.FrameCount end
|
|
32975
33028
|
)
|
|
32976
33029
|
end
|
|
33030
|
+
local v = {run = {usedFlipAtLeastOnce = false}}
|
|
32977
33031
|
____exports.FlipDetection = __TS__Class()
|
|
32978
33032
|
local FlipDetection = ____exports.FlipDetection
|
|
32979
33033
|
FlipDetection.name = "FlipDetection"
|
|
32980
33034
|
__TS__ClassExtends(FlipDetection, Feature)
|
|
32981
33035
|
function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
|
|
32982
33036
|
Feature.prototype.____constructor(self)
|
|
32983
|
-
self.v =
|
|
33037
|
+
self.v = v
|
|
32984
33038
|
self.useItemFlip = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
32985
33039
|
if not isTaintedLazarus(nil, player) then
|
|
32986
33040
|
return nil
|
|
@@ -32989,8 +33043,8 @@ function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
|
|
|
32989
33043
|
if newLazarus == nil then
|
|
32990
33044
|
return nil
|
|
32991
33045
|
end
|
|
32992
|
-
if not
|
|
32993
|
-
|
|
33046
|
+
if not v.run.usedFlipAtLeastOnce then
|
|
33047
|
+
v.run.usedFlipAtLeastOnce = true
|
|
32994
33048
|
self.postFirstFlip:fire(newLazarus, player)
|
|
32995
33049
|
end
|
|
32996
33050
|
self.postFlip:fire(newLazarus, player)
|
|
@@ -33099,10 +33153,10 @@ return ____exports
|
|
|
33099
33153
|
end,
|
|
33100
33154
|
["src.classes.features.callbackLogic.GridEntityCollisionDetection"] = function(...)
|
|
33101
33155
|
local ____lualib = require("lualib_bundle")
|
|
33102
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
33103
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
33104
33156
|
local Set = ____lualib.Set
|
|
33105
33157
|
local __TS__New = ____lualib.__TS__New
|
|
33158
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
33159
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
33106
33160
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
33107
33161
|
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
33108
33162
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
@@ -33117,16 +33171,17 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
33117
33171
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
33118
33172
|
local ____Feature = require("src.classes.private.Feature")
|
|
33119
33173
|
local Feature = ____Feature.Feature
|
|
33174
|
+
local v = {room = {collidingEntitiesMap = __TS__New(
|
|
33175
|
+
DefaultMap,
|
|
33176
|
+
function() return __TS__New(Set) end
|
|
33177
|
+
)}}
|
|
33120
33178
|
____exports.GridEntityCollisionDetection = __TS__Class()
|
|
33121
33179
|
local GridEntityCollisionDetection = ____exports.GridEntityCollisionDetection
|
|
33122
33180
|
GridEntityCollisionDetection.name = "GridEntityCollisionDetection"
|
|
33123
33181
|
__TS__ClassExtends(GridEntityCollisionDetection, Feature)
|
|
33124
33182
|
function GridEntityCollisionDetection.prototype.____constructor(self, postGridEntityCollision, postGridEntityCustomCollision, customGridEntities)
|
|
33125
33183
|
Feature.prototype.____constructor(self)
|
|
33126
|
-
self.v =
|
|
33127
|
-
DefaultMap,
|
|
33128
|
-
function() return __TS__New(Set) end
|
|
33129
|
-
)}}
|
|
33184
|
+
self.v = v
|
|
33130
33185
|
self.postUpdate = function()
|
|
33131
33186
|
local gridEntities = getGridEntities(nil)
|
|
33132
33187
|
local gridEntitiesWithCollision = __TS__ArrayFilter(
|
|
@@ -33135,7 +33190,7 @@ function GridEntityCollisionDetection.prototype.____constructor(self, postGridEn
|
|
|
33135
33190
|
)
|
|
33136
33191
|
for ____, gridEntity in ipairs(gridEntitiesWithCollision) do
|
|
33137
33192
|
local gridEntityPtrHash = GetPtrHash(gridEntity)
|
|
33138
|
-
local oldCollidingEntities =
|
|
33193
|
+
local oldCollidingEntities = v.room.collidingEntitiesMap:getAndSetDefault(gridEntityPtrHash)
|
|
33139
33194
|
local collidingEntities = getCollidingEntitiesWithGridEntity(nil, gridEntity)
|
|
33140
33195
|
for ____, entity in ipairs(collidingEntities) do
|
|
33141
33196
|
local entityPtrHash = GetPtrHash(entity)
|
|
@@ -33205,10 +33260,10 @@ return ____exports
|
|
|
33205
33260
|
end,
|
|
33206
33261
|
["src.classes.features.callbackLogic.GridEntityUpdateDetection"] = function(...)
|
|
33207
33262
|
local ____lualib = require("lualib_bundle")
|
|
33208
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
33209
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
33210
33263
|
local Map = ____lualib.Map
|
|
33211
33264
|
local __TS__New = ____lualib.__TS__New
|
|
33265
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
33266
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
33212
33267
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
33213
33268
|
local ____exports = {}
|
|
33214
33269
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -33222,13 +33277,14 @@ local getGridEntitiesMap = ____gridEntities.getGridEntitiesMap
|
|
|
33222
33277
|
local isGridEntityBroken = ____gridEntities.isGridEntityBroken
|
|
33223
33278
|
local ____Feature = require("src.classes.private.Feature")
|
|
33224
33279
|
local Feature = ____Feature.Feature
|
|
33280
|
+
local v = {room = {initializedGridEntities = __TS__New(Map)}}
|
|
33225
33281
|
____exports.GridEntityUpdateDetection = __TS__Class()
|
|
33226
33282
|
local GridEntityUpdateDetection = ____exports.GridEntityUpdateDetection
|
|
33227
33283
|
GridEntityUpdateDetection.name = "GridEntityUpdateDetection"
|
|
33228
33284
|
__TS__ClassExtends(GridEntityUpdateDetection, Feature)
|
|
33229
33285
|
function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntityInit, postGridEntityCustomInit, postGridEntityUpdate, postGridEntityCustomUpdate, postGridEntityRemove, postGridEntityCustomRemove, postGridEntityStateChanged, postGridEntityCustomStateChanged, postGridEntityBroken, postGridEntityCustomBroken, customGridEntities)
|
|
33230
33286
|
Feature.prototype.____constructor(self)
|
|
33231
|
-
self.v =
|
|
33287
|
+
self.v = v
|
|
33232
33288
|
self.postUpdate = function()
|
|
33233
33289
|
local gridEntitiesMap = getGridEntitiesMap(nil)
|
|
33234
33290
|
self:checkGridEntitiesRemoved(gridEntitiesMap)
|
|
@@ -33269,13 +33325,13 @@ function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntit
|
|
|
33269
33325
|
self.customGridEntities = customGridEntities
|
|
33270
33326
|
end
|
|
33271
33327
|
function GridEntityUpdateDetection.prototype.checkGridEntitiesRemoved(self, gridEntitiesMap)
|
|
33272
|
-
for ____, ____value in __TS__Iterator(
|
|
33328
|
+
for ____, ____value in __TS__Iterator(v.room.initializedGridEntities) do
|
|
33273
33329
|
local gridIndex = ____value[1]
|
|
33274
33330
|
local gridEntityTuple = ____value[2]
|
|
33275
33331
|
local storedGridEntityType, storedGridEntityVariant = table.unpack(gridEntityTuple)
|
|
33276
33332
|
local gridEntity = gridEntitiesMap:get(gridIndex)
|
|
33277
33333
|
if gridEntity == nil or gridEntity:GetType() ~= storedGridEntityType then
|
|
33278
|
-
|
|
33334
|
+
v.room.initializedGridEntities:delete(gridIndex)
|
|
33279
33335
|
local gridEntityTypeCustom = self.customGridEntities:getCustomGridEntityType(gridIndex)
|
|
33280
33336
|
if gridEntityTypeCustom == nil then
|
|
33281
33337
|
self.postGridEntityRemove:fire(gridIndex, storedGridEntityType, storedGridEntityVariant)
|
|
@@ -33286,7 +33342,7 @@ function GridEntityUpdateDetection.prototype.checkGridEntitiesRemoved(self, grid
|
|
|
33286
33342
|
end
|
|
33287
33343
|
end
|
|
33288
33344
|
function GridEntityUpdateDetection.prototype.checkGridEntityStateChanged(self, gridIndex, gridEntity)
|
|
33289
|
-
local gridEntityTuple =
|
|
33345
|
+
local gridEntityTuple = v.room.initializedGridEntities:get(gridIndex)
|
|
33290
33346
|
if gridEntityTuple == nil then
|
|
33291
33347
|
return
|
|
33292
33348
|
end
|
|
@@ -33311,7 +33367,7 @@ function GridEntityUpdateDetection.prototype.checkGridEntityStateChanged(self, g
|
|
|
33311
33367
|
end
|
|
33312
33368
|
function GridEntityUpdateDetection.prototype.checkNewGridEntity(self, gridIndex, gridEntity)
|
|
33313
33369
|
local gridEntityType = gridEntity:GetType()
|
|
33314
|
-
local gridEntityTuple =
|
|
33370
|
+
local gridEntityTuple = v.room.initializedGridEntities:get(gridIndex)
|
|
33315
33371
|
if gridEntityTuple == nil or gridEntityTuple[1] ~= gridEntityType then
|
|
33316
33372
|
self:updateTupleInMap(gridEntity)
|
|
33317
33373
|
local gridEntityTypeCustom = self.customGridEntities:getCustomGridEntityType(gridEntity)
|
|
@@ -33327,15 +33383,15 @@ function GridEntityUpdateDetection.prototype.updateTupleInMap(self, gridEntity)
|
|
|
33327
33383
|
local variant = gridEntity:GetVariant()
|
|
33328
33384
|
local gridIndex = gridEntity:GetGridIndex()
|
|
33329
33385
|
local newTuple = {gridEntityType, variant, gridEntity.State}
|
|
33330
|
-
|
|
33386
|
+
v.room.initializedGridEntities:set(gridIndex, newTuple)
|
|
33331
33387
|
end
|
|
33332
33388
|
return ____exports
|
|
33333
33389
|
end,
|
|
33334
33390
|
["src.classes.features.callbackLogic.ItemPickupDetection"] = function(...)
|
|
33335
33391
|
local ____lualib = require("lualib_bundle")
|
|
33392
|
+
local __TS__New = ____lualib.__TS__New
|
|
33336
33393
|
local __TS__Class = ____lualib.__TS__Class
|
|
33337
33394
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
33338
|
-
local __TS__New = ____lualib.__TS__New
|
|
33339
33395
|
local ____exports = {}
|
|
33340
33396
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
33341
33397
|
local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
|
|
@@ -33352,18 +33408,19 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
33352
33408
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
33353
33409
|
local ____Feature = require("src.classes.private.Feature")
|
|
33354
33410
|
local Feature = ____Feature.Feature
|
|
33411
|
+
local v = {run = {playersPickingUpItemMap = __TS__New(
|
|
33412
|
+
DefaultMap,
|
|
33413
|
+
function() return newPickingUpItem(nil) end
|
|
33414
|
+
)}}
|
|
33355
33415
|
____exports.ItemPickupDetection = __TS__Class()
|
|
33356
33416
|
local ItemPickupDetection = ____exports.ItemPickupDetection
|
|
33357
33417
|
ItemPickupDetection.name = "ItemPickupDetection"
|
|
33358
33418
|
__TS__ClassExtends(ItemPickupDetection, Feature)
|
|
33359
33419
|
function ItemPickupDetection.prototype.____constructor(self, postItemPickup, preItemPickup)
|
|
33360
33420
|
Feature.prototype.____constructor(self)
|
|
33361
|
-
self.v =
|
|
33362
|
-
DefaultMap,
|
|
33363
|
-
function() return newPickingUpItem(nil) end
|
|
33364
|
-
)}}
|
|
33421
|
+
self.v = v
|
|
33365
33422
|
self.postPEffectUpdateReordered = function(____, player)
|
|
33366
|
-
local pickingUpItem = defaultMapGetPlayer(nil,
|
|
33423
|
+
local pickingUpItem = defaultMapGetPlayer(nil, v.run.playersPickingUpItemMap, player)
|
|
33367
33424
|
if player:IsItemQueueEmpty() then
|
|
33368
33425
|
self:queueEmpty(player, pickingUpItem)
|
|
33369
33426
|
else
|
|
@@ -35035,6 +35092,7 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
35035
35092
|
local __TS__TypeOf = ____lualib.__TS__TypeOf
|
|
35036
35093
|
local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
35037
35094
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
35095
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
35038
35096
|
local ____exports = {}
|
|
35039
35097
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
35040
35098
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -35051,6 +35109,8 @@ local ____SerializationType = require("src.enums.SerializationType")
|
|
|
35051
35109
|
local SerializationType = ____SerializationType.SerializationType
|
|
35052
35110
|
local ____deepCopy = require("src.functions.deepCopy")
|
|
35053
35111
|
local deepCopy = ____deepCopy.deepCopy
|
|
35112
|
+
local ____log = require("src.functions.log")
|
|
35113
|
+
local log = ____log.log
|
|
35054
35114
|
local ____stage = require("src.functions.stage")
|
|
35055
35115
|
local onFirstFloor = ____stage.onFirstFloor
|
|
35056
35116
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
@@ -35224,6 +35284,14 @@ end
|
|
|
35224
35284
|
function SaveDataManager.prototype.saveDataManagerInMenu(self)
|
|
35225
35285
|
return not self.loadedDataOnThisRun
|
|
35226
35286
|
end
|
|
35287
|
+
function SaveDataManager.prototype.saveDataManagerLogSubscribers(self)
|
|
35288
|
+
log("List of save data manager subscribers:")
|
|
35289
|
+
local keys = __TS__ObjectKeys(self.saveDataMap)
|
|
35290
|
+
__TS__ArraySort(keys)
|
|
35291
|
+
for ____, key in ipairs(keys) do
|
|
35292
|
+
log("- " .. key)
|
|
35293
|
+
end
|
|
35294
|
+
end
|
|
35227
35295
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManager", true)
|
|
35228
35296
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLoad", true)
|
|
35229
35297
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerSave", true)
|
|
@@ -35232,14 +35300,15 @@ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRegisterCl
|
|
|
35232
35300
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRemove", true)
|
|
35233
35301
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerReset", true)
|
|
35234
35302
|
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerInMenu", true)
|
|
35303
|
+
__TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLogSubscribers", true)
|
|
35235
35304
|
return ____exports
|
|
35236
35305
|
end,
|
|
35237
35306
|
["src.classes.features.other.PickupIndexCreation"] = function(...)
|
|
35238
35307
|
local ____lualib = require("lualib_bundle")
|
|
35239
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
35240
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
35241
35308
|
local Map = ____lualib.Map
|
|
35242
35309
|
local __TS__New = ____lualib.__TS__New
|
|
35310
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
35311
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
35243
35312
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
35244
35313
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
35245
35314
|
local ____exports = {}
|
|
@@ -35276,24 +35345,25 @@ function getStoredPickupIndex(self, pickup, pickupDescriptions)
|
|
|
35276
35345
|
end
|
|
35277
35346
|
return nil
|
|
35278
35347
|
end
|
|
35348
|
+
local v = {
|
|
35349
|
+
run = {
|
|
35350
|
+
pickupCounter = 0,
|
|
35351
|
+
pickupDataTreasureRooms = __TS__New(Map),
|
|
35352
|
+
pickupDataBossRooms = __TS__New(Map)
|
|
35353
|
+
},
|
|
35354
|
+
level = {pickupData = __TS__New(
|
|
35355
|
+
DefaultMap,
|
|
35356
|
+
function() return __TS__New(Map) end
|
|
35357
|
+
)},
|
|
35358
|
+
room = {pickupIndexes = __TS__New(Map)}
|
|
35359
|
+
}
|
|
35279
35360
|
____exports.PickupIndexCreation = __TS__Class()
|
|
35280
35361
|
local PickupIndexCreation = ____exports.PickupIndexCreation
|
|
35281
35362
|
PickupIndexCreation.name = "PickupIndexCreation"
|
|
35282
35363
|
__TS__ClassExtends(PickupIndexCreation, Feature)
|
|
35283
35364
|
function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDataManager)
|
|
35284
35365
|
Feature.prototype.____constructor(self)
|
|
35285
|
-
self.v =
|
|
35286
|
-
run = {
|
|
35287
|
-
pickupCounter = 0,
|
|
35288
|
-
pickupDataTreasureRooms = __TS__New(Map),
|
|
35289
|
-
pickupDataBossRooms = __TS__New(Map)
|
|
35290
|
-
},
|
|
35291
|
-
level = {pickupData = __TS__New(
|
|
35292
|
-
DefaultMap,
|
|
35293
|
-
function() return __TS__New(Map) end
|
|
35294
|
-
)},
|
|
35295
|
-
room = {pickupIndexes = __TS__New(Map)}
|
|
35296
|
-
}
|
|
35366
|
+
self.v = v
|
|
35297
35367
|
self.postPickupInit = function(____, pickup)
|
|
35298
35368
|
self:setPickupIndex(pickup)
|
|
35299
35369
|
end
|
|
@@ -35307,7 +35377,7 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDa
|
|
|
35307
35377
|
end
|
|
35308
35378
|
function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
35309
35379
|
local ptrHash = GetPtrHash(pickup)
|
|
35310
|
-
if
|
|
35380
|
+
if v.room.pickupIndexes:has(ptrHash) then
|
|
35311
35381
|
return
|
|
35312
35382
|
end
|
|
35313
35383
|
local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
|
|
@@ -35315,16 +35385,16 @@ function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
|
35315
35385
|
local isFirstVisit = room:IsFirstVisit()
|
|
35316
35386
|
local roomFrameCount = room:GetFrameCount()
|
|
35317
35387
|
if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
|
|
35318
|
-
|
|
35388
|
+
v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
|
|
35319
35389
|
return
|
|
35320
35390
|
end
|
|
35321
|
-
local
|
|
35322
|
-
|
|
35323
|
-
|
|
35391
|
+
local ____v_run_0, ____pickupCounter_1 = v.run, "pickupCounter"
|
|
35392
|
+
____v_run_0[____pickupCounter_1] = ____v_run_0[____pickupCounter_1] + 1
|
|
35393
|
+
v.room.pickupIndexes:set(ptrHash, v.run.pickupCounter)
|
|
35324
35394
|
end
|
|
35325
35395
|
function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
|
|
35326
35396
|
local roomListIndex = getRoomListIndex(nil)
|
|
35327
|
-
local pickupDescriptions =
|
|
35397
|
+
local pickupDescriptions = v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
35328
35398
|
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
35329
35399
|
if pickupIndex == nil then
|
|
35330
35400
|
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
@@ -35333,7 +35403,7 @@ function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pick
|
|
|
35333
35403
|
end
|
|
35334
35404
|
function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
|
|
35335
35405
|
local ptrHash = GetPtrHash(entity)
|
|
35336
|
-
local pickupIndex =
|
|
35406
|
+
local pickupIndex = v.room.pickupIndexes:get(ptrHash)
|
|
35337
35407
|
if pickupIndex == nil then
|
|
35338
35408
|
return
|
|
35339
35409
|
end
|
|
@@ -35348,7 +35418,7 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
|
|
|
35348
35418
|
return
|
|
35349
35419
|
end
|
|
35350
35420
|
local previousRoomListIndex = previousRoomDescription.roomListIndex
|
|
35351
|
-
local pickupDescriptions =
|
|
35421
|
+
local pickupDescriptions = v.level.pickupData:getAndSetDefault(previousRoomListIndex)
|
|
35352
35422
|
local pickupDescription = {position = entity.Position, initSeed = entity.InitSeed}
|
|
35353
35423
|
pickupDescriptions:set(pickupIndex, pickupDescription)
|
|
35354
35424
|
local pickupDataMapForCurrentRoom = self:getPickupDataMapForCurrentRoom()
|
|
@@ -35370,13 +35440,13 @@ function PickupIndexCreation.prototype.getPickupDataMapForCurrentRoom(self)
|
|
|
35370
35440
|
local ____cond20 = ____switch20 == RoomType.TREASURE
|
|
35371
35441
|
if ____cond20 then
|
|
35372
35442
|
do
|
|
35373
|
-
return
|
|
35443
|
+
return v.run.pickupDataTreasureRooms
|
|
35374
35444
|
end
|
|
35375
35445
|
end
|
|
35376
35446
|
____cond20 = ____cond20 or ____switch20 == RoomType.BOSS
|
|
35377
35447
|
if ____cond20 then
|
|
35378
35448
|
do
|
|
35379
|
-
return
|
|
35449
|
+
return v.run.pickupDataBossRooms
|
|
35380
35450
|
end
|
|
35381
35451
|
end
|
|
35382
35452
|
do
|
|
@@ -35397,13 +35467,13 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
35397
35467
|
local ____cond26 = ____switch26 == RoomType.TREASURE
|
|
35398
35468
|
if ____cond26 then
|
|
35399
35469
|
do
|
|
35400
|
-
return getStoredPickupIndex(nil, pickup,
|
|
35470
|
+
return getStoredPickupIndex(nil, pickup, v.run.pickupDataTreasureRooms)
|
|
35401
35471
|
end
|
|
35402
35472
|
end
|
|
35403
35473
|
____cond26 = ____cond26 or ____switch26 == RoomType.BOSS
|
|
35404
35474
|
if ____cond26 then
|
|
35405
35475
|
do
|
|
35406
|
-
return getStoredPickupIndex(nil, pickup,
|
|
35476
|
+
return getStoredPickupIndex(nil, pickup, v.run.pickupDataBossRooms)
|
|
35407
35477
|
end
|
|
35408
35478
|
end
|
|
35409
35479
|
do
|
|
@@ -35415,12 +35485,12 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
35415
35485
|
end
|
|
35416
35486
|
function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
|
|
35417
35487
|
local ptrHash = GetPtrHash(pickup)
|
|
35418
|
-
local pickupIndexInitial =
|
|
35488
|
+
local pickupIndexInitial = v.room.pickupIndexes:get(ptrHash)
|
|
35419
35489
|
if pickupIndexInitial ~= nil then
|
|
35420
35490
|
return pickupIndexInitial
|
|
35421
35491
|
end
|
|
35422
35492
|
self:setPickupIndex(pickup)
|
|
35423
|
-
local pickupIndex =
|
|
35493
|
+
local pickupIndex = v.room.pickupIndexes:get(ptrHash)
|
|
35424
35494
|
if pickupIndex ~= nil then
|
|
35425
35495
|
return pickupIndex
|
|
35426
35496
|
end
|
|
@@ -35432,10 +35502,10 @@ return ____exports
|
|
|
35432
35502
|
end,
|
|
35433
35503
|
["src.classes.features.callbackLogic.PickupChangeDetection"] = function(...)
|
|
35434
35504
|
local ____lualib = require("lualib_bundle")
|
|
35435
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
35436
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
35437
35505
|
local Map = ____lualib.Map
|
|
35438
35506
|
local __TS__New = ____lualib.__TS__New
|
|
35507
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
35508
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
35439
35509
|
local ____exports = {}
|
|
35440
35510
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
35441
35511
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -35443,22 +35513,23 @@ local ____ISCFeature = require("src.enums.ISCFeature")
|
|
|
35443
35513
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
35444
35514
|
local ____Feature = require("src.classes.private.Feature")
|
|
35445
35515
|
local Feature = ____Feature.Feature
|
|
35516
|
+
local v = {room = {
|
|
35517
|
+
pickupVariants = __TS__New(Map),
|
|
35518
|
+
pickupSubTypes = __TS__New(Map)
|
|
35519
|
+
}}
|
|
35446
35520
|
____exports.PickupChangeDetection = __TS__Class()
|
|
35447
35521
|
local PickupChangeDetection = ____exports.PickupChangeDetection
|
|
35448
35522
|
PickupChangeDetection.name = "PickupChangeDetection"
|
|
35449
35523
|
__TS__ClassExtends(PickupChangeDetection, Feature)
|
|
35450
35524
|
function PickupChangeDetection.prototype.____constructor(self, postPickupChanged, pickupIndexCreation)
|
|
35451
35525
|
Feature.prototype.____constructor(self)
|
|
35452
|
-
self.v =
|
|
35453
|
-
pickupVariants = __TS__New(Map),
|
|
35454
|
-
pickupSubTypes = __TS__New(Map)
|
|
35455
|
-
}}
|
|
35526
|
+
self.v = v
|
|
35456
35527
|
self.postPickupUpdate = function(____, pickup)
|
|
35457
35528
|
local pickupIndex = self.pickupIndexCreation:getPickupIndex(pickup)
|
|
35458
|
-
local oldVariant =
|
|
35459
|
-
|
|
35460
|
-
local oldSubType =
|
|
35461
|
-
|
|
35529
|
+
local oldVariant = v.room.pickupVariants:get(pickupIndex)
|
|
35530
|
+
v.room.pickupVariants:set(pickupIndex, pickup.Variant)
|
|
35531
|
+
local oldSubType = v.room.pickupSubTypes:get(pickupIndex)
|
|
35532
|
+
v.room.pickupSubTypes:set(pickupIndex, pickup.SubType)
|
|
35462
35533
|
if oldVariant == nil or oldSubType == nil then
|
|
35463
35534
|
return
|
|
35464
35535
|
end
|
|
@@ -36717,10 +36788,10 @@ return ____exports
|
|
|
36717
36788
|
end,
|
|
36718
36789
|
["src.classes.features.callbackLogic.PlayerCollectibleDetection"] = function(...)
|
|
36719
36790
|
local ____lualib = require("lualib_bundle")
|
|
36720
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
36721
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
36722
36791
|
local __TS__New = ____lualib.__TS__New
|
|
36723
36792
|
local Map = ____lualib.Map
|
|
36793
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
36794
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
36724
36795
|
local Set = ____lualib.Set
|
|
36725
36796
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
36726
36797
|
local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
@@ -36756,23 +36827,24 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
36756
36827
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
36757
36828
|
local ____Feature = require("src.classes.private.Feature")
|
|
36758
36829
|
local Feature = ____Feature.Feature
|
|
36830
|
+
local v = {run = {
|
|
36831
|
+
playersCollectibleCount = __TS__New(DefaultMap, 0),
|
|
36832
|
+
playersCollectibleMap = __TS__New(
|
|
36833
|
+
DefaultMap,
|
|
36834
|
+
function() return __TS__New(Map) end
|
|
36835
|
+
),
|
|
36836
|
+
playersActiveItemMap = __TS__New(
|
|
36837
|
+
DefaultMap,
|
|
36838
|
+
function() return __TS__New(Map) end
|
|
36839
|
+
)
|
|
36840
|
+
}}
|
|
36759
36841
|
____exports.PlayerCollectibleDetection = __TS__Class()
|
|
36760
36842
|
local PlayerCollectibleDetection = ____exports.PlayerCollectibleDetection
|
|
36761
36843
|
PlayerCollectibleDetection.name = "PlayerCollectibleDetection"
|
|
36762
36844
|
__TS__ClassExtends(PlayerCollectibleDetection, Feature)
|
|
36763
36845
|
function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCollectibleAdded, postPlayerCollectibleRemoved, moddedElementSets, runInNFrames)
|
|
36764
36846
|
Feature.prototype.____constructor(self)
|
|
36765
|
-
self.v =
|
|
36766
|
-
playersCollectibleCount = __TS__New(DefaultMap, 0),
|
|
36767
|
-
playersCollectibleMap = __TS__New(
|
|
36768
|
-
DefaultMap,
|
|
36769
|
-
function() return __TS__New(Map) end
|
|
36770
|
-
),
|
|
36771
|
-
playersActiveItemMap = __TS__New(
|
|
36772
|
-
DefaultMap,
|
|
36773
|
-
function() return __TS__New(Map) end
|
|
36774
|
-
)
|
|
36775
|
-
}}
|
|
36847
|
+
self.v = v
|
|
36776
36848
|
self.useItemD4 = function(____, _collectibleType, _rng, player)
|
|
36777
36849
|
self:updateCollectibleMapAndFire(player, nil)
|
|
36778
36850
|
return nil
|
|
@@ -36799,13 +36871,13 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
|
|
|
36799
36871
|
return
|
|
36800
36872
|
end
|
|
36801
36873
|
local newCollectibleCount = player:GetCollectibleCount()
|
|
36802
|
-
mapSetPlayer(nil,
|
|
36874
|
+
mapSetPlayer(nil, v.run.playersCollectibleCount, player, newCollectibleCount)
|
|
36803
36875
|
self:updateCollectibleMapAndFire(player, 1)
|
|
36804
36876
|
end
|
|
36805
36877
|
self.postPEffectUpdateReordered = function(____, player)
|
|
36806
|
-
local oldCollectibleCount = defaultMapGetPlayer(nil,
|
|
36878
|
+
local oldCollectibleCount = defaultMapGetPlayer(nil, v.run.playersCollectibleCount, player)
|
|
36807
36879
|
local newCollectibleCount = player:GetCollectibleCount()
|
|
36808
|
-
mapSetPlayer(nil,
|
|
36880
|
+
mapSetPlayer(nil, v.run.playersCollectibleCount, player, newCollectibleCount)
|
|
36809
36881
|
local difference = newCollectibleCount - oldCollectibleCount
|
|
36810
36882
|
if difference > 0 then
|
|
36811
36883
|
self:updateCollectibleMapAndFire(player, difference)
|
|
@@ -36824,9 +36896,9 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
|
|
|
36824
36896
|
self.runInNFrames = runInNFrames
|
|
36825
36897
|
end
|
|
36826
36898
|
function PlayerCollectibleDetection.prototype.updateCollectibleMapAndFire(self, player, numCollectiblesChanged)
|
|
36827
|
-
local oldCollectibleMap = defaultMapGetPlayer(nil,
|
|
36899
|
+
local oldCollectibleMap = defaultMapGetPlayer(nil, v.run.playersCollectibleMap, player)
|
|
36828
36900
|
local newCollectibleMap = self.moddedElementSets:getPlayerCollectibleMap(player)
|
|
36829
|
-
mapSetPlayer(nil,
|
|
36901
|
+
mapSetPlayer(nil, v.run.playersCollectibleMap, player, newCollectibleMap)
|
|
36830
36902
|
local ____Set_1 = Set
|
|
36831
36903
|
local ____array_0 = __TS__SparseArrayNew(__TS__Spread(oldCollectibleMap:keys()))
|
|
36832
36904
|
__TS__SparseArrayPush(
|
|
@@ -36862,7 +36934,7 @@ function PlayerCollectibleDetection.prototype.updateCollectibleMapAndFire(self,
|
|
|
36862
36934
|
end
|
|
36863
36935
|
end
|
|
36864
36936
|
function PlayerCollectibleDetection.prototype.checkActiveItemsChanged(self, player)
|
|
36865
|
-
local activeItemMap = defaultMapGetPlayer(nil,
|
|
36937
|
+
local activeItemMap = defaultMapGetPlayer(nil, v.run.playersActiveItemMap, player)
|
|
36866
36938
|
local oldCollectibleTypes = {}
|
|
36867
36939
|
local newCollectibleTypes = {}
|
|
36868
36940
|
for ____, activeSlot in ipairs(ACTIVE_SLOT_VALUES) do
|
|
@@ -36906,45 +36978,46 @@ function dequeue(self, playerIndexes, fireFunc)
|
|
|
36906
36978
|
end
|
|
36907
36979
|
emptyArray(nil, playerIndexes)
|
|
36908
36980
|
end
|
|
36981
|
+
local v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
|
|
36909
36982
|
____exports.PlayerReorderedCallbacks = __TS__Class()
|
|
36910
36983
|
local PlayerReorderedCallbacks = ____exports.PlayerReorderedCallbacks
|
|
36911
36984
|
PlayerReorderedCallbacks.name = "PlayerReorderedCallbacks"
|
|
36912
36985
|
__TS__ClassExtends(PlayerReorderedCallbacks, Feature)
|
|
36913
36986
|
function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpdateReordered, postPlayerRenderReordered, postPlayerUpdateReordered)
|
|
36914
36987
|
Feature.prototype.____constructor(self)
|
|
36915
|
-
self.v =
|
|
36988
|
+
self.v = v
|
|
36916
36989
|
self.postPEffectUpdate = function(____, player)
|
|
36917
|
-
if
|
|
36990
|
+
if v.run.postGameStartedFiredOnThisRun then
|
|
36918
36991
|
self.postPEffectUpdateReordered:fire(player)
|
|
36919
36992
|
else
|
|
36920
36993
|
local playerIndex = getPlayerIndex(nil, player)
|
|
36921
|
-
local
|
|
36922
|
-
|
|
36994
|
+
local ____v_run_postPEffectUpdateQueue_0 = v.run.postPEffectUpdateQueue
|
|
36995
|
+
____v_run_postPEffectUpdateQueue_0[#____v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
|
|
36923
36996
|
end
|
|
36924
36997
|
end
|
|
36925
36998
|
self.postPlayerUpdate = function(____, player)
|
|
36926
|
-
if
|
|
36999
|
+
if v.run.postGameStartedFiredOnThisRun then
|
|
36927
37000
|
self.postPlayerUpdateReordered:fire(player)
|
|
36928
37001
|
else
|
|
36929
37002
|
local playerIndex = getPlayerIndex(nil, player)
|
|
36930
|
-
local
|
|
36931
|
-
|
|
37003
|
+
local ____v_run_postPlayerUpdateQueue_1 = v.run.postPlayerUpdateQueue
|
|
37004
|
+
____v_run_postPlayerUpdateQueue_1[#____v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
|
|
36932
37005
|
end
|
|
36933
37006
|
end
|
|
36934
37007
|
self.postPlayerRender = function(____, player, _renderOffset)
|
|
36935
|
-
if
|
|
37008
|
+
if v.run.postGameStartedFiredOnThisRun then
|
|
36936
37009
|
self.postPlayerRenderReordered:fire(player)
|
|
36937
37010
|
else
|
|
36938
37011
|
local playerIndex = getPlayerIndex(nil, player)
|
|
36939
|
-
local
|
|
36940
|
-
|
|
37012
|
+
local ____v_run_postPlayerRenderQueue_2 = v.run.postPlayerRenderQueue
|
|
37013
|
+
____v_run_postPlayerRenderQueue_2[#____v_run_postPlayerRenderQueue_2 + 1] = playerIndex
|
|
36941
37014
|
end
|
|
36942
37015
|
end
|
|
36943
37016
|
self.postGameStartedReorderedLast = function()
|
|
36944
|
-
|
|
36945
|
-
dequeue(nil,
|
|
36946
|
-
dequeue(nil,
|
|
36947
|
-
dequeue(nil,
|
|
37017
|
+
v.run.postGameStartedFiredOnThisRun = true
|
|
37018
|
+
dequeue(nil, v.run.postPEffectUpdateQueue, self.postPEffectUpdateReordered.fire)
|
|
37019
|
+
dequeue(nil, v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
|
|
37020
|
+
dequeue(nil, v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
|
|
36948
37021
|
end
|
|
36949
37022
|
self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, self.postPEffectUpdate}, {ModCallback.POST_PLAYER_UPDATE, self.postPlayerUpdate}, {ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
|
|
36950
37023
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, self.postGameStartedReorderedLast}}
|
|
@@ -36985,10 +37058,10 @@ return ____exports
|
|
|
36985
37058
|
end,
|
|
36986
37059
|
["src.classes.features.callbackLogic.SlotDestroyedDetection"] = function(...)
|
|
36987
37060
|
local ____lualib = require("lualib_bundle")
|
|
36988
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
36989
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
36990
37061
|
local Set = ____lualib.Set
|
|
36991
37062
|
local __TS__New = ____lualib.__TS__New
|
|
37063
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
37064
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
36992
37065
|
local ____exports = {}
|
|
36993
37066
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
36994
37067
|
local EntityGridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityGridCollisionClass
|
|
@@ -37004,13 +37077,14 @@ local ____slots = require("src.functions.slots")
|
|
|
37004
37077
|
local isSlotMachine = ____slots.isSlotMachine
|
|
37005
37078
|
local ____Feature = require("src.classes.private.Feature")
|
|
37006
37079
|
local Feature = ____Feature.Feature
|
|
37080
|
+
local v = {room = {destroyedSlotSet = __TS__New(Set)}}
|
|
37007
37081
|
____exports.SlotDestroyedDetection = __TS__Class()
|
|
37008
37082
|
local SlotDestroyedDetection = ____exports.SlotDestroyedDetection
|
|
37009
37083
|
SlotDestroyedDetection.name = "SlotDestroyedDetection"
|
|
37010
37084
|
__TS__ClassExtends(SlotDestroyedDetection, Feature)
|
|
37011
37085
|
function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroyed, roomHistory)
|
|
37012
37086
|
Feature.prototype.____constructor(self)
|
|
37013
|
-
self.v =
|
|
37087
|
+
self.v = v
|
|
37014
37088
|
self.postEntityRemoveSlot = function(____, entity)
|
|
37015
37089
|
local slot = entity
|
|
37016
37090
|
if self.roomHistory:isLeavingRoom() then
|
|
@@ -37024,7 +37098,7 @@ function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroye
|
|
|
37024
37098
|
end
|
|
37025
37099
|
self.postSlotUpdate = function(____, slot)
|
|
37026
37100
|
local ptrHash = GetPtrHash(slot)
|
|
37027
|
-
local alreadyDestroyed =
|
|
37101
|
+
local alreadyDestroyed = v.room.destroyedSlotSet:has(ptrHash)
|
|
37028
37102
|
if alreadyDestroyed then
|
|
37029
37103
|
return
|
|
37030
37104
|
end
|
|
@@ -37048,7 +37122,7 @@ end
|
|
|
37048
37122
|
function SlotDestroyedDetection.prototype.checkDestroyedFromCollisionClass(self, slot)
|
|
37049
37123
|
if slot.GridCollisionClass == EntityGridCollisionClass.GROUND then
|
|
37050
37124
|
local ptrHash = GetPtrHash(slot)
|
|
37051
|
-
|
|
37125
|
+
v.room.destroyedSlotSet:add(ptrHash)
|
|
37052
37126
|
self.postSlotDestroyed:fire(slot, SlotDestructionType.NORMAL)
|
|
37053
37127
|
end
|
|
37054
37128
|
end
|
|
@@ -37056,10 +37130,10 @@ return ____exports
|
|
|
37056
37130
|
end,
|
|
37057
37131
|
["src.classes.features.callbackLogic.SlotRenderDetection"] = function(...)
|
|
37058
37132
|
local ____lualib = require("lualib_bundle")
|
|
37059
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
37060
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37061
37133
|
local __TS__New = ____lualib.__TS__New
|
|
37062
37134
|
local Set = ____lualib.Set
|
|
37135
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
37136
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37063
37137
|
local ____exports = {}
|
|
37064
37138
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
37065
37139
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -37069,22 +37143,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
37069
37143
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
37070
37144
|
local ____Feature = require("src.classes.private.Feature")
|
|
37071
37145
|
local Feature = ____Feature.Feature
|
|
37146
|
+
local v = {room = {
|
|
37147
|
+
slotAnimations = __TS__New(
|
|
37148
|
+
DefaultMap,
|
|
37149
|
+
function(____, slot)
|
|
37150
|
+
local sprite = slot:GetSprite()
|
|
37151
|
+
return sprite:GetAnimation()
|
|
37152
|
+
end
|
|
37153
|
+
),
|
|
37154
|
+
brokenSlots = __TS__New(Set)
|
|
37155
|
+
}}
|
|
37072
37156
|
____exports.SlotRenderDetection = __TS__Class()
|
|
37073
37157
|
local SlotRenderDetection = ____exports.SlotRenderDetection
|
|
37074
37158
|
SlotRenderDetection.name = "SlotRenderDetection"
|
|
37075
37159
|
__TS__ClassExtends(SlotRenderDetection, Feature)
|
|
37076
37160
|
function SlotRenderDetection.prototype.____constructor(self, postSlotRender, postSlotAnimationChanged)
|
|
37077
37161
|
Feature.prototype.____constructor(self)
|
|
37078
|
-
self.v =
|
|
37079
|
-
slotAnimations = __TS__New(
|
|
37080
|
-
DefaultMap,
|
|
37081
|
-
function(____, slot)
|
|
37082
|
-
local sprite = slot:GetSprite()
|
|
37083
|
-
return sprite:GetAnimation()
|
|
37084
|
-
end
|
|
37085
|
-
),
|
|
37086
|
-
brokenSlots = __TS__New(Set)
|
|
37087
|
-
}}
|
|
37162
|
+
self.v = v
|
|
37088
37163
|
self.postRender = function()
|
|
37089
37164
|
for ____, slot in ipairs(getSlots(nil)) do
|
|
37090
37165
|
self.postSlotRender:fire(slot)
|
|
@@ -37099,8 +37174,8 @@ function SlotRenderDetection.prototype.checkSlotAnimationChanged(self, slot)
|
|
|
37099
37174
|
local sprite = slot:GetSprite()
|
|
37100
37175
|
local currentAnimation = sprite:GetAnimation()
|
|
37101
37176
|
local ptrHash = GetPtrHash(slot)
|
|
37102
|
-
local previousAnimation =
|
|
37103
|
-
|
|
37177
|
+
local previousAnimation = v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
|
|
37178
|
+
v.room.slotAnimations:set(ptrHash, currentAnimation)
|
|
37104
37179
|
if currentAnimation ~= previousAnimation then
|
|
37105
37180
|
self.postSlotAnimationChanged:fire(slot, previousAnimation, currentAnimation)
|
|
37106
37181
|
end
|
|
@@ -37109,10 +37184,10 @@ return ____exports
|
|
|
37109
37184
|
end,
|
|
37110
37185
|
["src.classes.features.callbackLogic.SlotUpdateDetection"] = function(...)
|
|
37111
37186
|
local ____lualib = require("lualib_bundle")
|
|
37112
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
37113
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37114
37187
|
local Set = ____lualib.Set
|
|
37115
37188
|
local __TS__New = ____lualib.__TS__New
|
|
37189
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
37190
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37116
37191
|
local ____exports = {}
|
|
37117
37192
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
37118
37193
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -37122,13 +37197,14 @@ local ____entitiesSpecific = require("src.functions.entitiesSpecific")
|
|
|
37122
37197
|
local getSlots = ____entitiesSpecific.getSlots
|
|
37123
37198
|
local ____Feature = require("src.classes.private.Feature")
|
|
37124
37199
|
local Feature = ____Feature.Feature
|
|
37200
|
+
local v = {room = {initializedSlots = __TS__New(Set)}}
|
|
37125
37201
|
____exports.SlotUpdateDetection = __TS__Class()
|
|
37126
37202
|
local SlotUpdateDetection = ____exports.SlotUpdateDetection
|
|
37127
37203
|
SlotUpdateDetection.name = "SlotUpdateDetection"
|
|
37128
37204
|
__TS__ClassExtends(SlotUpdateDetection, Feature)
|
|
37129
37205
|
function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postSlotUpdate)
|
|
37130
37206
|
Feature.prototype.____constructor(self)
|
|
37131
|
-
self.v =
|
|
37207
|
+
self.v = v
|
|
37132
37208
|
self.postUpdate = function()
|
|
37133
37209
|
for ____, slot in ipairs(getSlots(nil)) do
|
|
37134
37210
|
self:checkNewEntity(slot)
|
|
@@ -37147,8 +37223,8 @@ function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postS
|
|
|
37147
37223
|
end
|
|
37148
37224
|
function SlotUpdateDetection.prototype.checkNewEntity(self, slot)
|
|
37149
37225
|
local ptrHash = GetPtrHash(slot)
|
|
37150
|
-
if not
|
|
37151
|
-
|
|
37226
|
+
if not v.room.initializedSlots:has(ptrHash) then
|
|
37227
|
+
v.room.initializedSlots:add(ptrHash)
|
|
37152
37228
|
self.postSlotInit:fire(slot)
|
|
37153
37229
|
end
|
|
37154
37230
|
end
|
|
@@ -37968,10 +38044,10 @@ return ____exports
|
|
|
37968
38044
|
end,
|
|
37969
38045
|
["src.classes.features.other.CollectibleItemPoolType"] = function(...)
|
|
37970
38046
|
local ____lualib = require("lualib_bundle")
|
|
37971
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
37972
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37973
38047
|
local Map = ____lualib.Map
|
|
37974
38048
|
local __TS__New = ____lualib.__TS__New
|
|
38049
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
38050
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
37975
38051
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
37976
38052
|
local ____exports = {}
|
|
37977
38053
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -37991,18 +38067,19 @@ local ____rooms = require("src.functions.rooms")
|
|
|
37991
38067
|
local getRoomItemPoolType = ____rooms.getRoomItemPoolType
|
|
37992
38068
|
local ____Feature = require("src.classes.private.Feature")
|
|
37993
38069
|
local Feature = ____Feature.Feature
|
|
38070
|
+
local v = {run = {collectibleItemPoolTypeMap = __TS__New(Map)}}
|
|
37994
38071
|
____exports.CollectibleItemPoolType = __TS__Class()
|
|
37995
38072
|
local CollectibleItemPoolType = ____exports.CollectibleItemPoolType
|
|
37996
38073
|
CollectibleItemPoolType.name = "CollectibleItemPoolType"
|
|
37997
38074
|
__TS__ClassExtends(CollectibleItemPoolType, Feature)
|
|
37998
38075
|
function CollectibleItemPoolType.prototype.____constructor(self, pickupIndexCreation)
|
|
37999
38076
|
Feature.prototype.____constructor(self)
|
|
38000
|
-
self.v =
|
|
38077
|
+
self.v = v
|
|
38001
38078
|
self.postPickupInitCollectible = function(____, collectible)
|
|
38002
38079
|
local itemPool = game:GetItemPool()
|
|
38003
38080
|
local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
|
|
38004
38081
|
local lastItemPoolType = itemPool:GetLastPool()
|
|
38005
|
-
|
|
38082
|
+
v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
|
|
38006
38083
|
end
|
|
38007
38084
|
self.featuresUsed = {ISCFeature.PICKUP_INDEX_CREATION}
|
|
38008
38085
|
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
@@ -38014,7 +38091,7 @@ function CollectibleItemPoolType.prototype.getCollectibleItemPoolType(self, coll
|
|
|
38014
38091
|
error("The \"getCollectibleItemPoolType\" function was given a non-collectible: " .. entityID)
|
|
38015
38092
|
end
|
|
38016
38093
|
local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
|
|
38017
|
-
local itemPoolType =
|
|
38094
|
+
local itemPoolType = v.run.collectibleItemPoolTypeMap:get(pickupIndex)
|
|
38018
38095
|
return itemPoolType == nil and getRoomItemPoolType(nil) or itemPoolType
|
|
38019
38096
|
end
|
|
38020
38097
|
__TS__Decorate({Exported}, CollectibleItemPoolType.prototype, "getCollectibleItemPoolType", true)
|
|
@@ -38219,10 +38296,10 @@ return ____exports
|
|
|
38219
38296
|
end,
|
|
38220
38297
|
["src.classes.features.other.CustomItemPools"] = function(...)
|
|
38221
38298
|
local ____lualib = require("lualib_bundle")
|
|
38222
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
38223
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
38224
38299
|
local Map = ____lualib.Map
|
|
38225
38300
|
local __TS__New = ____lualib.__TS__New
|
|
38301
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
38302
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
38226
38303
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
38227
38304
|
local ____exports = {}
|
|
38228
38305
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -38241,19 +38318,20 @@ local ____weighted = require("src.functions.weighted")
|
|
|
38241
38318
|
local getRandomIndexFromWeightedArray = ____weighted.getRandomIndexFromWeightedArray
|
|
38242
38319
|
local ____Feature = require("src.classes.private.Feature")
|
|
38243
38320
|
local Feature = ____Feature.Feature
|
|
38321
|
+
local v = {run = {customItemPools = __TS__New(Map)}}
|
|
38244
38322
|
____exports.CustomItemPools = __TS__Class()
|
|
38245
38323
|
local CustomItemPools = ____exports.CustomItemPools
|
|
38246
38324
|
CustomItemPools.name = "CustomItemPools"
|
|
38247
38325
|
__TS__ClassExtends(CustomItemPools, Feature)
|
|
38248
38326
|
function CustomItemPools.prototype.____constructor(self)
|
|
38249
38327
|
Feature.prototype.____constructor(self)
|
|
38250
|
-
self.v =
|
|
38328
|
+
self.v = v
|
|
38251
38329
|
self.customItemPoolMap = __TS__New(Map)
|
|
38252
38330
|
self.postGameStartedReordered = function(____, isContinued)
|
|
38253
38331
|
if isContinued then
|
|
38254
38332
|
return
|
|
38255
38333
|
end
|
|
38256
|
-
|
|
38334
|
+
v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
|
|
38257
38335
|
end
|
|
38258
38336
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED, self.postGameStartedReordered}}
|
|
38259
38337
|
end
|
|
@@ -38273,7 +38351,7 @@ function CustomItemPools.prototype.getCustomItemPoolCollectible(self, itemPoolTy
|
|
|
38273
38351
|
if defaultItem == nil then
|
|
38274
38352
|
defaultItem = CollectibleType.NULL
|
|
38275
38353
|
end
|
|
38276
|
-
local customItemPool =
|
|
38354
|
+
local customItemPool = v.run.customItemPools:get(itemPoolTypeCustom)
|
|
38277
38355
|
if customItemPool == nil then
|
|
38278
38356
|
error("Failed to find the custom item pool of: " .. tostring(itemPoolTypeCustom))
|
|
38279
38357
|
end
|
|
@@ -38390,17 +38468,6 @@ return ____exports
|
|
|
38390
38468
|
["src.customStageMetadata"] = function(...)
|
|
38391
38469
|
return {}
|
|
38392
38470
|
end,
|
|
38393
|
-
["src.enums.private.UIStreakAnimation"] = function(...)
|
|
38394
|
-
local ____exports = {}
|
|
38395
|
-
____exports.UIStreakAnimation = {}
|
|
38396
|
-
____exports.UIStreakAnimation.NONE = 0
|
|
38397
|
-
____exports.UIStreakAnimation[____exports.UIStreakAnimation.NONE] = "NONE"
|
|
38398
|
-
____exports.UIStreakAnimation.TEXT = 1
|
|
38399
|
-
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT] = "TEXT"
|
|
38400
|
-
____exports.UIStreakAnimation.TEXT_STAY = 2
|
|
38401
|
-
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT_STAY] = "TEXT_STAY"
|
|
38402
|
-
return ____exports
|
|
38403
|
-
end,
|
|
38404
38471
|
["src.enums.RockAltType"] = function(...)
|
|
38405
38472
|
local ____exports = {}
|
|
38406
38473
|
____exports.RockAltType = {}
|
|
@@ -39187,10 +39254,10 @@ return ____exports
|
|
|
39187
39254
|
end,
|
|
39188
39255
|
["src.classes.features.other.DisableInputs"] = function(...)
|
|
39189
39256
|
local ____lualib = require("lualib_bundle")
|
|
39190
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
39191
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
39192
39257
|
local Map = ____lualib.Map
|
|
39193
39258
|
local __TS__New = ____lualib.__TS__New
|
|
39259
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
39260
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
39194
39261
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
39195
39262
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
39196
39263
|
local Set = ____lualib.Set
|
|
@@ -39205,18 +39272,19 @@ local getMoveActions = ____input.getMoveActions
|
|
|
39205
39272
|
local getShootActions = ____input.getShootActions
|
|
39206
39273
|
local ____Feature = require("src.classes.private.Feature")
|
|
39207
39274
|
local Feature = ____Feature.Feature
|
|
39275
|
+
local v = {run = {
|
|
39276
|
+
__ignoreGlowingHourGlass = true,
|
|
39277
|
+
disableInputs = __TS__New(Map),
|
|
39278
|
+
enableAllInputsWithBlacklistMap = __TS__New(Map),
|
|
39279
|
+
disableAllInputsWithWhitelistMap = __TS__New(Map)
|
|
39280
|
+
}}
|
|
39208
39281
|
____exports.DisableInputs = __TS__Class()
|
|
39209
39282
|
local DisableInputs = ____exports.DisableInputs
|
|
39210
39283
|
DisableInputs.name = "DisableInputs"
|
|
39211
39284
|
__TS__ClassExtends(DisableInputs, Feature)
|
|
39212
39285
|
function DisableInputs.prototype.____constructor(self)
|
|
39213
39286
|
Feature.prototype.____constructor(self)
|
|
39214
|
-
self.v =
|
|
39215
|
-
__ignoreGlowingHourGlass = true,
|
|
39216
|
-
disableInputs = __TS__New(Map),
|
|
39217
|
-
enableAllInputsWithBlacklistMap = __TS__New(Map),
|
|
39218
|
-
disableAllInputsWithWhitelistMap = __TS__New(Map)
|
|
39219
|
-
}}
|
|
39287
|
+
self.v = v
|
|
39220
39288
|
self.isActionPressed = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
39221
39289
|
self.isActionTriggered = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
39222
39290
|
self.getActionValue = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, false) end
|
|
@@ -39230,17 +39298,17 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
|
|
|
39230
39298
|
____booleanCallback_0 = 0
|
|
39231
39299
|
end
|
|
39232
39300
|
local disableValue = ____booleanCallback_0
|
|
39233
|
-
for ____, blacklist in __TS__Iterator(
|
|
39301
|
+
for ____, blacklist in __TS__Iterator(v.run.disableInputs:values()) do
|
|
39234
39302
|
if blacklist:has(buttonAction) then
|
|
39235
39303
|
return disableValue
|
|
39236
39304
|
end
|
|
39237
39305
|
end
|
|
39238
|
-
for ____, whitelist in __TS__Iterator(
|
|
39306
|
+
for ____, whitelist in __TS__Iterator(v.run.disableAllInputsWithWhitelistMap:values()) do
|
|
39239
39307
|
if not whitelist:has(buttonAction) then
|
|
39240
39308
|
return disableValue
|
|
39241
39309
|
end
|
|
39242
39310
|
end
|
|
39243
|
-
for ____, blacklist in __TS__Iterator(
|
|
39311
|
+
for ____, blacklist in __TS__Iterator(v.run.enableAllInputsWithBlacklistMap:values()) do
|
|
39244
39312
|
if blacklist:has(buttonAction) then
|
|
39245
39313
|
return disableValue
|
|
39246
39314
|
end
|
|
@@ -39248,28 +39316,28 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
|
|
|
39248
39316
|
return nil
|
|
39249
39317
|
end
|
|
39250
39318
|
function DisableInputs.prototype.enableAllInputs(self, key)
|
|
39251
|
-
|
|
39252
|
-
|
|
39319
|
+
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
39320
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
39253
39321
|
end
|
|
39254
39322
|
function DisableInputs.prototype.disableInputs(self, key, ...)
|
|
39255
39323
|
local buttonActions = {...}
|
|
39256
39324
|
local buttonActionsSet = __TS__New(Set, buttonActions)
|
|
39257
|
-
|
|
39325
|
+
v.run.disableInputs:set(key, buttonActionsSet)
|
|
39258
39326
|
end
|
|
39259
39327
|
function DisableInputs.prototype.disableAllInputs(self, key)
|
|
39260
|
-
|
|
39328
|
+
v.run.disableAllInputsWithWhitelistMap:set(
|
|
39261
39329
|
key,
|
|
39262
39330
|
__TS__New(Set)
|
|
39263
39331
|
)
|
|
39264
|
-
|
|
39332
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
39265
39333
|
end
|
|
39266
39334
|
function DisableInputs.prototype.enableAllInputsExceptFor(self, key, blacklist)
|
|
39267
|
-
|
|
39268
|
-
|
|
39335
|
+
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
39336
|
+
v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
|
|
39269
39337
|
end
|
|
39270
39338
|
function DisableInputs.prototype.disableAllInputsExceptFor(self, key, whitelist)
|
|
39271
|
-
|
|
39272
|
-
|
|
39339
|
+
v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
|
|
39340
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
39273
39341
|
end
|
|
39274
39342
|
function DisableInputs.prototype.disableMovementInputs(self, key)
|
|
39275
39343
|
local moveActions = getMoveActions(nil)
|
|
@@ -39290,10 +39358,10 @@ return ____exports
|
|
|
39290
39358
|
end,
|
|
39291
39359
|
["src.classes.features.other.PonyDetection"] = function(...)
|
|
39292
39360
|
local ____lualib = require("lualib_bundle")
|
|
39293
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
39294
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
39295
39361
|
local Set = ____lualib.Set
|
|
39296
39362
|
local __TS__New = ____lualib.__TS__New
|
|
39363
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
39364
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
39297
39365
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
39298
39366
|
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
39299
39367
|
local ____exports = {}
|
|
@@ -39315,18 +39383,19 @@ local getPlayers = ____playerIndex.getPlayers
|
|
|
39315
39383
|
local ____Feature = require("src.classes.private.Feature")
|
|
39316
39384
|
local Feature = ____Feature.Feature
|
|
39317
39385
|
local FLAGS_WHEN_PONY_IS_ACTIVE = {EntityFlag.NO_KNOCKBACK, EntityFlag.NO_PHYSICS_KNOCKBACK, EntityFlag.NO_DAMAGE_BLINK}
|
|
39386
|
+
local v = {run = {playersIsPonyActive = __TS__New(Set)}}
|
|
39318
39387
|
____exports.PonyDetection = __TS__Class()
|
|
39319
39388
|
local PonyDetection = ____exports.PonyDetection
|
|
39320
39389
|
PonyDetection.name = "PonyDetection"
|
|
39321
39390
|
__TS__ClassExtends(PonyDetection, Feature)
|
|
39322
39391
|
function PonyDetection.prototype.____constructor(self)
|
|
39323
39392
|
Feature.prototype.____constructor(self)
|
|
39324
|
-
self.v =
|
|
39393
|
+
self.v = v
|
|
39325
39394
|
self.postPEffectUpdateReordered = function(____, player)
|
|
39326
39395
|
local effects = player:GetEffects()
|
|
39327
39396
|
local entityFlags = player:GetEntityFlags()
|
|
39328
39397
|
local hasPonyCollectibleEffect = effects:HasCollectibleEffect(CollectibleType.PONY) or effects:HasCollectibleEffect(CollectibleType.WHITE_PONY)
|
|
39329
|
-
local isPonyActiveOnPreviousFrame = setHasPlayer(nil,
|
|
39398
|
+
local isPonyActiveOnPreviousFrame = setHasPlayer(nil, v.run.playersIsPonyActive, player)
|
|
39330
39399
|
local hasPonyFlags = hasFlag(
|
|
39331
39400
|
nil,
|
|
39332
39401
|
entityFlags,
|
|
@@ -39334,15 +39403,15 @@ function PonyDetection.prototype.____constructor(self)
|
|
|
39334
39403
|
)
|
|
39335
39404
|
local isPonyActiveNow = hasPonyCollectibleEffect or isPonyActiveOnPreviousFrame and hasPonyFlags
|
|
39336
39405
|
if isPonyActiveNow then
|
|
39337
|
-
setAddPlayer(nil,
|
|
39406
|
+
setAddPlayer(nil, v.run.playersIsPonyActive, player)
|
|
39338
39407
|
else
|
|
39339
|
-
setDeletePlayer(nil,
|
|
39408
|
+
setDeletePlayer(nil, v.run.playersIsPonyActive, player)
|
|
39340
39409
|
end
|
|
39341
39410
|
end
|
|
39342
39411
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
39343
39412
|
end
|
|
39344
39413
|
function PonyDetection.prototype.isPlayerUsingPony(self, player)
|
|
39345
|
-
return setHasPlayer(nil,
|
|
39414
|
+
return setHasPlayer(nil, v.run.playersIsPonyActive, player)
|
|
39346
39415
|
end
|
|
39347
39416
|
function PonyDetection.prototype.anyPlayerUsingPony(self)
|
|
39348
39417
|
local players = getPlayers(nil)
|
|
@@ -39369,27 +39438,28 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
|
39369
39438
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
39370
39439
|
local ____Feature = require("src.classes.private.Feature")
|
|
39371
39440
|
local Feature = ____Feature.Feature
|
|
39441
|
+
local v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
|
|
39372
39442
|
____exports.RoomClearFrame = __TS__Class()
|
|
39373
39443
|
local RoomClearFrame = ____exports.RoomClearFrame
|
|
39374
39444
|
RoomClearFrame.name = "RoomClearFrame"
|
|
39375
39445
|
__TS__ClassExtends(RoomClearFrame, Feature)
|
|
39376
39446
|
function RoomClearFrame.prototype.____constructor(self)
|
|
39377
39447
|
Feature.prototype.____constructor(self)
|
|
39378
|
-
self.v =
|
|
39448
|
+
self.v = v
|
|
39379
39449
|
self.postRoomClearChangedTrue = function()
|
|
39380
39450
|
local gameFrameCount = game:GetFrameCount()
|
|
39381
39451
|
local room = game:GetRoom()
|
|
39382
39452
|
local roomFrameCount = room:GetFrameCount()
|
|
39383
|
-
|
|
39384
|
-
|
|
39453
|
+
v.room.roomClearGameFrame = gameFrameCount
|
|
39454
|
+
v.room.roomClearRoomFrame = roomFrameCount
|
|
39385
39455
|
end
|
|
39386
39456
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
|
|
39387
39457
|
end
|
|
39388
39458
|
function RoomClearFrame.prototype.getRoomClearGameFrame(self)
|
|
39389
|
-
return
|
|
39459
|
+
return v.room.roomClearGameFrame
|
|
39390
39460
|
end
|
|
39391
39461
|
function RoomClearFrame.prototype.getRoomClearRoomFrame(self)
|
|
39392
|
-
return
|
|
39462
|
+
return v.room.roomClearGameFrame
|
|
39393
39463
|
end
|
|
39394
39464
|
__TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearGameFrame", true)
|
|
39395
39465
|
__TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearRoomFrame", true)
|
|
@@ -39409,25 +39479,26 @@ local ____array = require("src.functions.array")
|
|
|
39409
39479
|
local emptyArray = ____array.emptyArray
|
|
39410
39480
|
local ____Feature = require("src.classes.private.Feature")
|
|
39411
39481
|
local Feature = ____Feature.Feature
|
|
39482
|
+
local v = {run = {queuedFunctions = {}}}
|
|
39412
39483
|
____exports.RunNextRoom = __TS__Class()
|
|
39413
39484
|
local RunNextRoom = ____exports.RunNextRoom
|
|
39414
39485
|
RunNextRoom.name = "RunNextRoom"
|
|
39415
39486
|
__TS__ClassExtends(RunNextRoom, Feature)
|
|
39416
39487
|
function RunNextRoom.prototype.____constructor(self)
|
|
39417
39488
|
Feature.prototype.____constructor(self)
|
|
39418
|
-
self.v =
|
|
39489
|
+
self.v = v
|
|
39419
39490
|
self.vConditionalFunc = function() return false end
|
|
39420
39491
|
self.postNewRoomReordered = function()
|
|
39421
|
-
for ____, func in ipairs(
|
|
39492
|
+
for ____, func in ipairs(v.run.queuedFunctions) do
|
|
39422
39493
|
func(nil)
|
|
39423
39494
|
end
|
|
39424
|
-
emptyArray(nil,
|
|
39495
|
+
emptyArray(nil, v.run.queuedFunctions)
|
|
39425
39496
|
end
|
|
39426
39497
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
39427
39498
|
end
|
|
39428
39499
|
function RunNextRoom.prototype.runNextRoom(self, func)
|
|
39429
|
-
local
|
|
39430
|
-
|
|
39500
|
+
local ____v_run_queuedFunctions_0 = v.run.queuedFunctions
|
|
39501
|
+
____v_run_queuedFunctions_0[#____v_run_queuedFunctions_0 + 1] = func
|
|
39431
39502
|
end
|
|
39432
39503
|
__TS__Decorate({Exported}, RunNextRoom.prototype, "runNextRoom", true)
|
|
39433
39504
|
return ____exports
|
|
@@ -39585,19 +39656,20 @@ local ____types = require("src.functions.types")
|
|
|
39585
39656
|
local asNumber = ____types.asNumber
|
|
39586
39657
|
local ____Feature = require("src.classes.private.Feature")
|
|
39587
39658
|
local Feature = ____Feature.Feature
|
|
39659
|
+
local v = {run = {stageHistory = {}}}
|
|
39588
39660
|
____exports.StageHistory = __TS__Class()
|
|
39589
39661
|
local StageHistory = ____exports.StageHistory
|
|
39590
39662
|
StageHistory.name = "StageHistory"
|
|
39591
39663
|
__TS__ClassExtends(StageHistory, Feature)
|
|
39592
39664
|
function StageHistory.prototype.____constructor(self)
|
|
39593
39665
|
Feature.prototype.____constructor(self)
|
|
39594
|
-
self.v =
|
|
39666
|
+
self.v = v
|
|
39595
39667
|
self.postNewLevelReordered = function()
|
|
39596
39668
|
local level = game:GetLevel()
|
|
39597
39669
|
local stage = level:GetStage()
|
|
39598
39670
|
local stageType = level:GetStageType()
|
|
39599
|
-
local
|
|
39600
|
-
|
|
39671
|
+
local ____v_run_stageHistory_0 = v.run.stageHistory
|
|
39672
|
+
____v_run_stageHistory_0[#____v_run_stageHistory_0 + 1] = {stage, stageType}
|
|
39601
39673
|
end
|
|
39602
39674
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED, self.postNewLevelReordered}}
|
|
39603
39675
|
end
|
|
@@ -39730,12 +39802,12 @@ function StageHistory.prototype.getNextStageWithHistory(self)
|
|
|
39730
39802
|
return asNumber(nil, stage) - 1
|
|
39731
39803
|
end
|
|
39732
39804
|
function StageHistory.prototype.getStageHistory(self)
|
|
39733
|
-
return
|
|
39805
|
+
return v.run.stageHistory
|
|
39734
39806
|
end
|
|
39735
39807
|
function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
|
|
39736
39808
|
if stageType == nil then
|
|
39737
39809
|
return __TS__ArraySome(
|
|
39738
|
-
|
|
39810
|
+
v.run.stageHistory,
|
|
39739
39811
|
function(____, ____bindingPattern0)
|
|
39740
39812
|
local previousStage
|
|
39741
39813
|
previousStage = ____bindingPattern0[1]
|
|
@@ -39744,7 +39816,7 @@ function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
|
|
|
39744
39816
|
)
|
|
39745
39817
|
end
|
|
39746
39818
|
return __TS__ArraySome(
|
|
39747
|
-
|
|
39819
|
+
v.run.stageHistory,
|
|
39748
39820
|
function(____, ____bindingPattern0)
|
|
39749
39821
|
local previousStageType
|
|
39750
39822
|
local previousStage
|
|
@@ -39763,9 +39835,9 @@ return ____exports
|
|
|
39763
39835
|
["src.classes.features.other.CustomTrapdoors"] = function(...)
|
|
39764
39836
|
local ____lualib = require("lualib_bundle")
|
|
39765
39837
|
local __TS__New = ____lualib.__TS__New
|
|
39838
|
+
local Map = ____lualib.Map
|
|
39766
39839
|
local __TS__Class = ____lualib.__TS__Class
|
|
39767
39840
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
39768
|
-
local Map = ____lualib.Map
|
|
39769
39841
|
local Set = ____lualib.Set
|
|
39770
39842
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
39771
39843
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
@@ -39884,6 +39956,13 @@ ANIMATIONS_THAT_PREVENT_STAGE_TRAVEL = __TS__New(ReadonlySet, {"Death", "Happy",
|
|
|
39884
39956
|
local PIXELATION_TO_BLACK_FRAMES = 60
|
|
39885
39957
|
local OTHER_PLAYER_TRAPDOOR_JUMP_DELAY_GAME_FRAMES = 6
|
|
39886
39958
|
local OTHER_PLAYER_TRAPDOOR_JUMP_DURATION_GAME_FRAMES = 5
|
|
39959
|
+
local v = {
|
|
39960
|
+
run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
|
|
39961
|
+
level = {trapdoors = __TS__New(
|
|
39962
|
+
DefaultMap,
|
|
39963
|
+
function() return __TS__New(Map) end
|
|
39964
|
+
)}
|
|
39965
|
+
}
|
|
39887
39966
|
____exports.CustomTrapdoors = __TS__Class()
|
|
39888
39967
|
local CustomTrapdoors = ____exports.CustomTrapdoors
|
|
39889
39968
|
CustomTrapdoors.name = "CustomTrapdoors"
|
|
@@ -39891,13 +39970,7 @@ __TS__ClassExtends(CustomTrapdoors, Feature)
|
|
|
39891
39970
|
function CustomTrapdoors.prototype.____constructor(self, customGridEntities, disableInputs, ponyDetection, roomClearFrame, runInNFrames, runNextRoom, stageHistory)
|
|
39892
39971
|
Feature.prototype.____constructor(self)
|
|
39893
39972
|
self.destinationFuncMap = __TS__New(Map)
|
|
39894
|
-
self.v =
|
|
39895
|
-
run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
|
|
39896
|
-
level = {trapdoors = __TS__New(
|
|
39897
|
-
DefaultMap,
|
|
39898
|
-
function() return __TS__New(Map) end
|
|
39899
|
-
)}
|
|
39900
|
-
}
|
|
39973
|
+
self.v = v
|
|
39901
39974
|
self.blackSprite = Sprite()
|
|
39902
39975
|
self.postRender = function()
|
|
39903
39976
|
self:checkAllPlayersJumpComplete()
|
|
@@ -39909,7 +39982,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
|
|
|
39909
39982
|
self.postGridEntityCustomUpdateTrapdoor = function(____, gridEntity)
|
|
39910
39983
|
local roomListIndex = getRoomListIndex(nil)
|
|
39911
39984
|
local gridIndex = gridEntity:GetGridIndex()
|
|
39912
|
-
local roomTrapdoorMap =
|
|
39985
|
+
local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
|
|
39913
39986
|
local trapdoorDescription = roomTrapdoorMap:get(gridIndex)
|
|
39914
39987
|
if trapdoorDescription == nil then
|
|
39915
39988
|
return
|
|
@@ -39940,7 +40013,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
|
|
|
39940
40013
|
self.stageHistory = stageHistory
|
|
39941
40014
|
end
|
|
39942
40015
|
function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
|
|
39943
|
-
if
|
|
40016
|
+
if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
|
|
39944
40017
|
return
|
|
39945
40018
|
end
|
|
39946
40019
|
if anyPlayerPlayingExtraAnimation(nil) then
|
|
@@ -39948,37 +40021,37 @@ function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
|
|
|
39948
40021
|
end
|
|
39949
40022
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
39950
40023
|
local roomGridIndex = getRoomGridIndex(nil)
|
|
39951
|
-
|
|
39952
|
-
|
|
40024
|
+
v.run.state = StageTravelState.PIXELATION_TO_BLACK
|
|
40025
|
+
v.run.stateRenderFrame = renderFrameCount
|
|
39953
40026
|
self:logStateChanged()
|
|
39954
40027
|
teleport(nil, roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
|
|
39955
40028
|
end
|
|
39956
40029
|
function CustomTrapdoors.prototype.checkPixelationToBlackComplete(self)
|
|
39957
|
-
if
|
|
40030
|
+
if v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or v.run.stateRenderFrame == nil then
|
|
39958
40031
|
return
|
|
39959
40032
|
end
|
|
39960
40033
|
local hud = game:GetHUD()
|
|
39961
40034
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
39962
|
-
local renderFrameScreenBlack =
|
|
40035
|
+
local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
|
|
39963
40036
|
if renderFrameCount < renderFrameScreenBlack then
|
|
39964
40037
|
return
|
|
39965
40038
|
end
|
|
39966
|
-
|
|
40039
|
+
v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END
|
|
39967
40040
|
self:logStateChanged()
|
|
39968
40041
|
hud:SetVisible(false)
|
|
39969
40042
|
self.runInNFrames:runNextGameFrame(function()
|
|
39970
40043
|
local level = game:GetLevel()
|
|
39971
40044
|
local startingRoomIndex = level:GetStartingRoomIndex()
|
|
39972
40045
|
local futureRenderFrameCount = Isaac.GetFrameCount()
|
|
39973
|
-
|
|
39974
|
-
|
|
40046
|
+
v.run.state = StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
|
|
40047
|
+
v.run.stateRenderFrame = futureRenderFrameCount
|
|
39975
40048
|
self:goToCustomTrapdoorDestination()
|
|
39976
40049
|
teleport(nil, startingRoomIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
|
|
39977
40050
|
end)
|
|
39978
40051
|
end
|
|
39979
40052
|
function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
|
|
39980
|
-
if
|
|
39981
|
-
|
|
40053
|
+
if v.run.customTrapdoorActivated == nil then
|
|
40054
|
+
v.run.customTrapdoorActivated = {
|
|
39982
40055
|
destinationName = nil,
|
|
39983
40056
|
destinationStage = LevelStage.BASEMENT_1,
|
|
39984
40057
|
destinationStageType = StageType.ORIGINAL,
|
|
@@ -39986,8 +40059,8 @@ function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
|
|
|
39986
40059
|
firstSpawn = true
|
|
39987
40060
|
}
|
|
39988
40061
|
end
|
|
39989
|
-
local destinationFunc = self:getDestinationFunc(
|
|
39990
|
-
destinationFunc(nil,
|
|
40062
|
+
local destinationFunc = self:getDestinationFunc(v.run.customTrapdoorActivated)
|
|
40063
|
+
destinationFunc(nil, v.run.customTrapdoorActivated.destinationName, v.run.customTrapdoorActivated.destinationStage, v.run.customTrapdoorActivated.destinationStageType)
|
|
39991
40064
|
end
|
|
39992
40065
|
function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescription)
|
|
39993
40066
|
if customTrapdoorDescription.destinationName == nil then
|
|
@@ -40000,20 +40073,20 @@ function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescri
|
|
|
40000
40073
|
return destinationFunc
|
|
40001
40074
|
end
|
|
40002
40075
|
function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
|
|
40003
|
-
if
|
|
40076
|
+
if v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY or v.run.stateRenderFrame == nil then
|
|
40004
40077
|
return
|
|
40005
40078
|
end
|
|
40006
40079
|
local hud = game:GetHUD()
|
|
40007
40080
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
40008
|
-
local renderFrameScreenBlack =
|
|
40081
|
+
local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
|
|
40009
40082
|
if renderFrameCount < renderFrameScreenBlack then
|
|
40010
40083
|
return
|
|
40011
40084
|
end
|
|
40012
|
-
|
|
40085
|
+
v.run.state = StageTravelState.PIXELATION_TO_ROOM
|
|
40013
40086
|
self:logStateChanged()
|
|
40014
40087
|
hud:SetVisible(true)
|
|
40015
40088
|
self.runNextRoom:runNextRoom(function()
|
|
40016
|
-
|
|
40089
|
+
v.run.state = StageTravelState.PLAYERS_LAYING_DOWN
|
|
40017
40090
|
self:logStateChanged()
|
|
40018
40091
|
movePlayersToCenter(nil)
|
|
40019
40092
|
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
@@ -40029,13 +40102,13 @@ function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
|
|
|
40029
40102
|
end)
|
|
40030
40103
|
end
|
|
40031
40104
|
function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
|
|
40032
|
-
if
|
|
40105
|
+
if v.run.state ~= StageTravelState.PLAYERS_LAYING_DOWN then
|
|
40033
40106
|
return
|
|
40034
40107
|
end
|
|
40035
40108
|
if anyPlayerPlayingExtraAnimation(nil) then
|
|
40036
40109
|
return
|
|
40037
40110
|
end
|
|
40038
|
-
|
|
40111
|
+
v.run.state = StageTravelState.NONE
|
|
40039
40112
|
self:logStateChanged()
|
|
40040
40113
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
40041
40114
|
if tstlClassName == nil then
|
|
@@ -40044,7 +40117,7 @@ function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
|
|
|
40044
40117
|
self.disableInputs:enableAllInputs(tstlClassName)
|
|
40045
40118
|
end
|
|
40046
40119
|
function CustomTrapdoors.prototype.drawBlackSprite(self)
|
|
40047
|
-
if
|
|
40120
|
+
if v.run.state ~= StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END and v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY then
|
|
40048
40121
|
return
|
|
40049
40122
|
end
|
|
40050
40123
|
if not self.blackSprite:IsLoaded() then
|
|
@@ -40078,7 +40151,7 @@ function CustomTrapdoors.prototype.isPlayerCloseAfterBoss(self, position)
|
|
|
40078
40151
|
return anyPlayerCloserThan(nil, position, TRAPDOOR_OPEN_DISTANCE_AFTER_BOSS)
|
|
40079
40152
|
end
|
|
40080
40153
|
function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEntity, trapdoorDescription)
|
|
40081
|
-
if
|
|
40154
|
+
if v.run.state ~= StageTravelState.NONE then
|
|
40082
40155
|
return
|
|
40083
40156
|
end
|
|
40084
40157
|
if not trapdoorDescription.open then
|
|
@@ -40100,8 +40173,8 @@ function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEn
|
|
|
40100
40173
|
end
|
|
40101
40174
|
end
|
|
40102
40175
|
function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity, trapdoorDescription, player)
|
|
40103
|
-
|
|
40104
|
-
|
|
40176
|
+
v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN
|
|
40177
|
+
v.run.customTrapdoorActivated = trapdoorDescription
|
|
40105
40178
|
self:logStateChanged()
|
|
40106
40179
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
40107
40180
|
if tstlClassName == nil then
|
|
@@ -40140,7 +40213,7 @@ function CustomTrapdoors.prototype.startDelayedJump(self, entityPtr, trapdoorPos
|
|
|
40140
40213
|
self:adjustPlayerPositionToTrapdoor(entityPtr, player.Position, trapdoorPosition)
|
|
40141
40214
|
end
|
|
40142
40215
|
function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPtr, startPos, endPos)
|
|
40143
|
-
if
|
|
40216
|
+
if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
|
|
40144
40217
|
return
|
|
40145
40218
|
end
|
|
40146
40219
|
local entity = entityPtr.Ref
|
|
@@ -40175,7 +40248,7 @@ function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPt
|
|
|
40175
40248
|
player.Velocity = VectorZero
|
|
40176
40249
|
end
|
|
40177
40250
|
function CustomTrapdoors.prototype.checkJumpComplete(self, player)
|
|
40178
|
-
if
|
|
40251
|
+
if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
|
|
40179
40252
|
return
|
|
40180
40253
|
end
|
|
40181
40254
|
local sprite = player:GetSprite()
|
|
@@ -40197,7 +40270,7 @@ function CustomTrapdoors.prototype.shouldTrapdoorSpawnOpen(self, gridEntity, fir
|
|
|
40197
40270
|
end
|
|
40198
40271
|
function CustomTrapdoors.prototype.logStateChanged(self)
|
|
40199
40272
|
if DEBUG then
|
|
40200
|
-
log(((("Custom trapdoors state changed: " .. StageTravelState[
|
|
40273
|
+
log(((("Custom trapdoors state changed: " .. StageTravelState[v.run.state]) .. " (") .. tostring(v.run.state)) .. ")")
|
|
40201
40274
|
end
|
|
40202
40275
|
end
|
|
40203
40276
|
function CustomTrapdoors.prototype.registerCustomTrapdoorDestination(self, destinationName, destinationFunc)
|
|
@@ -40238,7 +40311,7 @@ function CustomTrapdoors.prototype.spawnCustomTrapdoor(self, gridIndexOrPosition
|
|
|
40238
40311
|
____temp_0 = spawnOpen
|
|
40239
40312
|
end
|
|
40240
40313
|
local open = ____temp_0
|
|
40241
|
-
local roomTrapdoorMap =
|
|
40314
|
+
local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
|
|
40242
40315
|
local customTrapdoorDescription = {
|
|
40243
40316
|
destinationName = destinationName,
|
|
40244
40317
|
destinationStage = destinationStage,
|
|
@@ -40528,6 +40601,17 @@ function ____exports.setShadows(self, customStage)
|
|
|
40528
40601
|
sprite:SetFrame(animation, 0)
|
|
40529
40602
|
sprite.Color = shadow.color == nil and FADED_BLACK or Color(shadow.color.r, shadow.color.g, shadow.color.b, shadow.color.a)
|
|
40530
40603
|
end
|
|
40604
|
+
return ____exports
|
|
40605
|
+
end,
|
|
40606
|
+
["src.enums.private.UIStreakAnimation"] = function(...)
|
|
40607
|
+
local ____exports = {}
|
|
40608
|
+
____exports.UIStreakAnimation = {}
|
|
40609
|
+
____exports.UIStreakAnimation.NONE = 0
|
|
40610
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.NONE] = "NONE"
|
|
40611
|
+
____exports.UIStreakAnimation.TEXT = 1
|
|
40612
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT] = "TEXT"
|
|
40613
|
+
____exports.UIStreakAnimation.TEXT_STAY = 2
|
|
40614
|
+
____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT_STAY] = "TEXT_STAY"
|
|
40531
40615
|
return ____exports
|
|
40532
40616
|
end,
|
|
40533
40617
|
["src.functions.ui"] = function(...)
|
|
@@ -40640,6 +40724,24 @@ function ____exports.getVisibleHearts(self, player)
|
|
|
40640
40724
|
end
|
|
40641
40725
|
return visibleHearts
|
|
40642
40726
|
end
|
|
40727
|
+
return ____exports
|
|
40728
|
+
end,
|
|
40729
|
+
["src.classes.features.other.customStages.v"] = function(...)
|
|
40730
|
+
local ____lualib = require("lualib_bundle")
|
|
40731
|
+
local Map = ____lualib.Map
|
|
40732
|
+
local __TS__New = ____lualib.__TS__New
|
|
40733
|
+
local ____exports = {}
|
|
40734
|
+
local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
|
|
40735
|
+
local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
|
|
40736
|
+
____exports.v = {run = {
|
|
40737
|
+
currentCustomStage = nil,
|
|
40738
|
+
firstFloor = true,
|
|
40739
|
+
showingBossVersusScreen = false,
|
|
40740
|
+
controllerIndexPushingMapRenderFrame = __TS__New(Map),
|
|
40741
|
+
topStreakTextStartedRenderFrame = nil,
|
|
40742
|
+
topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
|
|
40743
|
+
bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
|
|
40744
|
+
}}
|
|
40643
40745
|
return ____exports
|
|
40644
40746
|
end,
|
|
40645
40747
|
["src.classes.features.other.customStages.streakText"] = function(...)
|
|
@@ -40662,7 +40764,9 @@ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
|
|
|
40662
40764
|
local ____ui = require("src.functions.ui")
|
|
40663
40765
|
local getScreenBottomCenterPos = ____ui.getScreenBottomCenterPos
|
|
40664
40766
|
local getScreenTopCenterPos = ____ui.getScreenTopCenterPos
|
|
40665
|
-
|
|
40767
|
+
local ____v = require("src.classes.features.other.customStages.v")
|
|
40768
|
+
local v = ____v.v
|
|
40769
|
+
function checkEndTopStreakText(self)
|
|
40666
40770
|
if v.run.topStreakTextStartedRenderFrame == nil or v.run.topStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
|
|
40667
40771
|
return
|
|
40668
40772
|
end
|
|
@@ -40673,7 +40777,7 @@ function checkEndTopStreakText(self, v)
|
|
|
40673
40777
|
v.run.topStreakText.frame = TEXT_OUT_FRAME - 2
|
|
40674
40778
|
end
|
|
40675
40779
|
end
|
|
40676
|
-
function trackMapInputPressed(self
|
|
40780
|
+
function trackMapInputPressed(self)
|
|
40677
40781
|
for ____, controllerIndex in ipairs(CONTROLLER_INDEX_VALUES) do
|
|
40678
40782
|
local gameFrameCount = game:GetFrameCount()
|
|
40679
40783
|
local oldPushedMapFrame = v.run.controllerIndexPushingMapRenderFrame:get(controllerIndex)
|
|
@@ -40687,7 +40791,7 @@ function trackMapInputPressed(self, v)
|
|
|
40687
40791
|
end
|
|
40688
40792
|
end
|
|
40689
40793
|
end
|
|
40690
|
-
function checkStartBottomStreakText(self
|
|
40794
|
+
function checkStartBottomStreakText(self)
|
|
40691
40795
|
if v.run.bottomStreakText.animation ~= UIStreakAnimation.NONE then
|
|
40692
40796
|
return
|
|
40693
40797
|
end
|
|
@@ -40703,7 +40807,7 @@ function checkStartBottomStreakText(self, v)
|
|
|
40703
40807
|
v.run.bottomStreakText.frame = 0
|
|
40704
40808
|
end
|
|
40705
40809
|
end
|
|
40706
|
-
function checkEndBottomStreakText(self
|
|
40810
|
+
function checkEndBottomStreakText(self)
|
|
40707
40811
|
if v.run.bottomStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
|
|
40708
40812
|
return
|
|
40709
40813
|
end
|
|
@@ -40713,7 +40817,7 @@ function checkEndBottomStreakText(self, v)
|
|
|
40713
40817
|
v.run.bottomStreakText.frame = TEXT_OUT_FRAME - 2
|
|
40714
40818
|
end
|
|
40715
40819
|
end
|
|
40716
|
-
function renderStreakText(self,
|
|
40820
|
+
function renderStreakText(self, customStage, streakText, position)
|
|
40717
40821
|
if streakText.animation == UIStreakAnimation.NONE then
|
|
40718
40822
|
return
|
|
40719
40823
|
end
|
|
@@ -40821,36 +40925,24 @@ TEXT_OUT_SCALES = {
|
|
|
40821
40925
|
Vector(2.59, 0.38),
|
|
40822
40926
|
Vector(3, 0.2)
|
|
40823
40927
|
}
|
|
40824
|
-
function ____exports.streakTextPostRender(self
|
|
40825
|
-
checkEndTopStreakText(nil
|
|
40826
|
-
trackMapInputPressed(nil
|
|
40827
|
-
checkStartBottomStreakText(nil
|
|
40828
|
-
checkEndBottomStreakText(nil
|
|
40928
|
+
function ____exports.streakTextPostRender(self)
|
|
40929
|
+
checkEndTopStreakText(nil)
|
|
40930
|
+
trackMapInputPressed(nil)
|
|
40931
|
+
checkStartBottomStreakText(nil)
|
|
40932
|
+
checkEndBottomStreakText(nil)
|
|
40829
40933
|
end
|
|
40830
|
-
function ____exports.streakTextGetShaderParams(self,
|
|
40934
|
+
function ____exports.streakTextGetShaderParams(self, customStage, shaderName)
|
|
40831
40935
|
if shaderName ~= EMPTY_SHADER_NAME then
|
|
40832
40936
|
return
|
|
40833
40937
|
end
|
|
40834
40938
|
local topCenterPos = getScreenTopCenterPos(nil)
|
|
40835
40939
|
local topStreakPosition = topCenterPos + STREAK_SPRITE_TOP_OFFSET
|
|
40836
|
-
renderStreakText(
|
|
40837
|
-
nil,
|
|
40838
|
-
v,
|
|
40839
|
-
customStage,
|
|
40840
|
-
v.run.topStreakText,
|
|
40841
|
-
topStreakPosition
|
|
40842
|
-
)
|
|
40940
|
+
renderStreakText(nil, customStage, v.run.topStreakText, topStreakPosition)
|
|
40843
40941
|
local bottomCenterPos = getScreenBottomCenterPos(nil)
|
|
40844
40942
|
local bottomStreakPosition = bottomCenterPos + STREAK_SPRITE_BOTTOM_OFFSET
|
|
40845
|
-
renderStreakText(
|
|
40846
|
-
nil,
|
|
40847
|
-
v,
|
|
40848
|
-
customStage,
|
|
40849
|
-
v.run.bottomStreakText,
|
|
40850
|
-
bottomStreakPosition
|
|
40851
|
-
)
|
|
40943
|
+
renderStreakText(nil, customStage, v.run.bottomStreakText, bottomStreakPosition)
|
|
40852
40944
|
end
|
|
40853
|
-
function ____exports.topStreakTextStart(self
|
|
40945
|
+
function ____exports.topStreakTextStart(self)
|
|
40854
40946
|
local level = game:GetLevel()
|
|
40855
40947
|
local renderFrameCount = Isaac.GetFrameCount()
|
|
40856
40948
|
level:ShowName(false)
|
|
@@ -42244,10 +42336,10 @@ return ____exports
|
|
|
42244
42336
|
end,
|
|
42245
42337
|
["src.classes.features.other.DisableAllSound"] = function(...)
|
|
42246
42338
|
local ____lualib = require("lualib_bundle")
|
|
42247
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
42248
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
42249
42339
|
local Set = ____lualib.Set
|
|
42250
42340
|
local __TS__New = ____lualib.__TS__New
|
|
42341
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
42342
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
42251
42343
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
42252
42344
|
local ____exports = {}
|
|
42253
42345
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -42260,16 +42352,17 @@ local ____sound = require("src.functions.sound")
|
|
|
42260
42352
|
local stopAllSoundEffects = ____sound.stopAllSoundEffects
|
|
42261
42353
|
local ____Feature = require("src.classes.private.Feature")
|
|
42262
42354
|
local Feature = ____Feature.Feature
|
|
42355
|
+
local v = {run = {disableSoundSet = __TS__New(Set)}}
|
|
42263
42356
|
____exports.DisableAllSound = __TS__Class()
|
|
42264
42357
|
local DisableAllSound = ____exports.DisableAllSound
|
|
42265
42358
|
DisableAllSound.name = "DisableAllSound"
|
|
42266
42359
|
__TS__ClassExtends(DisableAllSound, Feature)
|
|
42267
42360
|
function DisableAllSound.prototype.____constructor(self)
|
|
42268
42361
|
Feature.prototype.____constructor(self)
|
|
42269
|
-
self.v =
|
|
42362
|
+
self.v = v
|
|
42270
42363
|
self.musicWasEnabled = false
|
|
42271
42364
|
self.postRender = function()
|
|
42272
|
-
if
|
|
42365
|
+
if v.run.disableSoundSet.size == 0 then
|
|
42273
42366
|
return
|
|
42274
42367
|
end
|
|
42275
42368
|
stopAllSoundEffects(nil)
|
|
@@ -42277,20 +42370,20 @@ function DisableAllSound.prototype.____constructor(self)
|
|
|
42277
42370
|
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
42278
42371
|
end
|
|
42279
42372
|
function DisableAllSound.prototype.enableAllSound(self, key)
|
|
42280
|
-
if not
|
|
42373
|
+
if not v.run.disableSoundSet:has(key) then
|
|
42281
42374
|
return
|
|
42282
42375
|
end
|
|
42283
|
-
|
|
42284
|
-
if
|
|
42376
|
+
v.run.disableSoundSet:delete(key)
|
|
42377
|
+
if v.run.disableSoundSet.size == 0 and self.musicWasEnabled then
|
|
42285
42378
|
musicManager:Enable()
|
|
42286
42379
|
end
|
|
42287
42380
|
stopAllSoundEffects(nil)
|
|
42288
42381
|
end
|
|
42289
42382
|
function DisableAllSound.prototype.disableAllSound(self, key)
|
|
42290
|
-
if
|
|
42383
|
+
if v.run.disableSoundSet.size == 0 then
|
|
42291
42384
|
self.musicWasEnabled = musicManager:IsEnabled()
|
|
42292
42385
|
end
|
|
42293
|
-
|
|
42386
|
+
v.run.disableSoundSet:add(key)
|
|
42294
42387
|
stopAllSoundEffects(nil)
|
|
42295
42388
|
end
|
|
42296
42389
|
__TS__Decorate({Exported}, DisableAllSound.prototype, "enableAllSound", true)
|
|
@@ -42299,10 +42392,10 @@ return ____exports
|
|
|
42299
42392
|
end,
|
|
42300
42393
|
["src.classes.features.other.Pause"] = function(...)
|
|
42301
42394
|
local ____lualib = require("lualib_bundle")
|
|
42302
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
42303
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
42304
42395
|
local Map = ____lualib.Map
|
|
42305
42396
|
local __TS__New = ____lualib.__TS__New
|
|
42397
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
42398
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
42306
42399
|
local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
42307
42400
|
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
42308
42401
|
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
@@ -42335,19 +42428,20 @@ local ____tstlClass = require("src.functions.tstlClass")
|
|
|
42335
42428
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
42336
42429
|
local ____Feature = require("src.classes.private.Feature")
|
|
42337
42430
|
local Feature = ____Feature.Feature
|
|
42431
|
+
local v = {run = {
|
|
42432
|
+
isPseudoPaused = false,
|
|
42433
|
+
shouldUnpause = false,
|
|
42434
|
+
initialDescriptions = __TS__New(Map)
|
|
42435
|
+
}}
|
|
42338
42436
|
____exports.Pause = __TS__Class()
|
|
42339
42437
|
local Pause = ____exports.Pause
|
|
42340
42438
|
Pause.name = "Pause"
|
|
42341
42439
|
__TS__ClassExtends(Pause, Feature)
|
|
42342
42440
|
function Pause.prototype.____constructor(self, disableInputs)
|
|
42343
42441
|
Feature.prototype.____constructor(self)
|
|
42344
|
-
self.v =
|
|
42345
|
-
isPseudoPaused = false,
|
|
42346
|
-
shouldUnpause = false,
|
|
42347
|
-
initialDescriptions = __TS__New(Map)
|
|
42348
|
-
}}
|
|
42442
|
+
self.v = v
|
|
42349
42443
|
self.postUpdate = function()
|
|
42350
|
-
if not
|
|
42444
|
+
if not v.run.isPseudoPaused then
|
|
42351
42445
|
return
|
|
42352
42446
|
end
|
|
42353
42447
|
local firstPlayer = Isaac.GetPlayer()
|
|
@@ -42358,10 +42452,10 @@ function Pause.prototype.____constructor(self, disableInputs)
|
|
|
42358
42452
|
if buttonAction ~= ButtonAction.SHOOT_RIGHT then
|
|
42359
42453
|
return
|
|
42360
42454
|
end
|
|
42361
|
-
if not
|
|
42455
|
+
if not v.run.shouldUnpause then
|
|
42362
42456
|
return
|
|
42363
42457
|
end
|
|
42364
|
-
|
|
42458
|
+
v.run.shouldUnpause = false
|
|
42365
42459
|
return 1
|
|
42366
42460
|
end
|
|
42367
42461
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.INPUT_ACTION, self.inputActionGetActionValue, {InputHook.GET_ACTION_VALUE}}}
|
|
@@ -42377,7 +42471,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
42377
42471
|
for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
|
|
42378
42472
|
do
|
|
42379
42473
|
local ptrHash = GetPtrHash(tearOrProjectile)
|
|
42380
|
-
local initialDescription =
|
|
42474
|
+
local initialDescription = v.run.initialDescriptions:get(ptrHash)
|
|
42381
42475
|
if initialDescription == nil then
|
|
42382
42476
|
goto __continue9
|
|
42383
42477
|
end
|
|
@@ -42396,15 +42490,15 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
42396
42490
|
end
|
|
42397
42491
|
end
|
|
42398
42492
|
function Pause.prototype.isPaused(self)
|
|
42399
|
-
return
|
|
42493
|
+
return v.run.isPseudoPaused
|
|
42400
42494
|
end
|
|
42401
42495
|
function Pause.prototype.pause(self)
|
|
42402
|
-
if
|
|
42496
|
+
if v.run.isPseudoPaused then
|
|
42403
42497
|
logError("Failed to pseudo-pause the game, since it was already pseudo-paused.")
|
|
42404
42498
|
return
|
|
42405
42499
|
end
|
|
42406
|
-
|
|
42407
|
-
|
|
42500
|
+
v.run.isPseudoPaused = true
|
|
42501
|
+
v.run.initialDescriptions:clear()
|
|
42408
42502
|
local ____array_1 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
|
|
42409
42503
|
__TS__SparseArrayPush(
|
|
42410
42504
|
____array_1,
|
|
@@ -42421,7 +42515,7 @@ function Pause.prototype.pause(self)
|
|
|
42421
42515
|
fallingSpeed = tearOrProjectile.FallingSpeed,
|
|
42422
42516
|
fallingAcceleration = isTear(nil, tearOrProjectile) and tearOrProjectile.FallingAcceleration or tearOrProjectile.FallingAccel
|
|
42423
42517
|
}
|
|
42424
|
-
|
|
42518
|
+
v.run.initialDescriptions:set(ptrHash, initialDescription)
|
|
42425
42519
|
end
|
|
42426
42520
|
local firstPlayer = Isaac.GetPlayer()
|
|
42427
42521
|
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
@@ -42438,12 +42532,12 @@ function Pause.prototype.pause(self)
|
|
|
42438
42532
|
self:stopTearsAndProjectilesFromMoving()
|
|
42439
42533
|
end
|
|
42440
42534
|
function Pause.prototype.unpause(self)
|
|
42441
|
-
if not
|
|
42535
|
+
if not v.run.isPseudoPaused then
|
|
42442
42536
|
logError("Failed to pseudo-unpause the game, since it was not already pseudo-paused.")
|
|
42443
42537
|
return
|
|
42444
42538
|
end
|
|
42445
|
-
|
|
42446
|
-
|
|
42539
|
+
v.run.isPseudoPaused = false
|
|
42540
|
+
v.run.shouldUnpause = true
|
|
42447
42541
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
42448
42542
|
if tstlClassName == nil then
|
|
42449
42543
|
error("Failed to find get the class name for the pause feature.")
|
|
@@ -42506,6 +42600,8 @@ local CUSTOM_STAGE_FEATURE_NAME = ____constants.CUSTOM_STAGE_FEATURE_NAME
|
|
|
42506
42600
|
local DEFAULT_BASE_STAGE = ____constants.DEFAULT_BASE_STAGE
|
|
42507
42601
|
local DEFAULT_BASE_STAGE_TYPE = ____constants.DEFAULT_BASE_STAGE_TYPE
|
|
42508
42602
|
local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____constants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
|
|
42603
|
+
local ____v = require("src.classes.features.other.customStages.v")
|
|
42604
|
+
local v = ____v.v
|
|
42509
42605
|
function willVanillaVersusScreenPlay(self)
|
|
42510
42606
|
local bosses = getBosses(nil)
|
|
42511
42607
|
return __TS__ArraySome(
|
|
@@ -42608,7 +42704,7 @@ local VANILLA_VERSUS_PLAYBACK_SPEED = 0.5
|
|
|
42608
42704
|
local versusScreenSprite = Sprite()
|
|
42609
42705
|
local versusScreenBackgroundSprite = Sprite()
|
|
42610
42706
|
local versusScreenDirtSpotSprite = Sprite()
|
|
42611
|
-
function ____exports.playVersusScreenAnimation(self,
|
|
42707
|
+
function ____exports.playVersusScreenAnimation(self, customStage, disableAllSound, pause, runInNFrames)
|
|
42612
42708
|
local room = game:GetRoom()
|
|
42613
42709
|
local roomType = room:GetType()
|
|
42614
42710
|
local roomCleared = room:IsClear()
|
|
@@ -42685,7 +42781,7 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
|
|
|
42685
42781
|
sprite.PlaybackSpeed = VANILLA_VERSUS_PLAYBACK_SPEED
|
|
42686
42782
|
end
|
|
42687
42783
|
end
|
|
42688
|
-
local function finishVersusScreenAnimation(self,
|
|
42784
|
+
local function finishVersusScreenAnimation(self, pause, disableAllSound)
|
|
42689
42785
|
local hud = game:GetHUD()
|
|
42690
42786
|
v.run.showingBossVersusScreen = false
|
|
42691
42787
|
pause:unpause()
|
|
@@ -42693,12 +42789,12 @@ local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
|
|
|
42693
42789
|
disableAllSound:enableAllSound(CUSTOM_STAGE_FEATURE_NAME)
|
|
42694
42790
|
sfxManager:Play(SoundEffect.CASTLE_PORTCULLIS)
|
|
42695
42791
|
end
|
|
42696
|
-
function ____exports.versusScreenPostRender(self,
|
|
42792
|
+
function ____exports.versusScreenPostRender(self, pause, disableAllSound)
|
|
42697
42793
|
if not v.run.showingBossVersusScreen then
|
|
42698
42794
|
return
|
|
42699
42795
|
end
|
|
42700
42796
|
if versusScreenSprite:IsFinished(VERSUS_SCREEN_ANIMATION_NAME) then
|
|
42701
|
-
finishVersusScreenAnimation(nil,
|
|
42797
|
+
finishVersusScreenAnimation(nil, pause, disableAllSound)
|
|
42702
42798
|
return
|
|
42703
42799
|
end
|
|
42704
42800
|
local position = getScreenCenterPos(nil)
|
|
@@ -42743,8 +42839,6 @@ local ____ISCFeature = require("src.enums.ISCFeature")
|
|
|
42743
42839
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
42744
42840
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
42745
42841
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
42746
|
-
local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
|
|
42747
|
-
local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
|
|
42748
42842
|
local ____array = require("src.functions.array")
|
|
42749
42843
|
local isArray = ____array.isArray
|
|
42750
42844
|
local ____doors = require("src.functions.doors")
|
|
@@ -42792,6 +42886,8 @@ local topStreakTextStart = ____streakText.topStreakTextStart
|
|
|
42792
42886
|
local ____utils = require("src.classes.features.other.customStages.utils")
|
|
42793
42887
|
local getRandomBossRoomFromPool = ____utils.getRandomBossRoomFromPool
|
|
42794
42888
|
local getRandomCustomStageRoom = ____utils.getRandomCustomStageRoom
|
|
42889
|
+
local ____v = require("src.classes.features.other.customStages.v")
|
|
42890
|
+
local v = ____v.v
|
|
42795
42891
|
local ____versusScreen = require("src.classes.features.other.customStages.versusScreen")
|
|
42796
42892
|
local playVersusScreenAnimation = ____versusScreen.playVersusScreenAnimation
|
|
42797
42893
|
local versusScreenPostRender = ____versusScreen.versusScreenPostRender
|
|
@@ -42827,15 +42923,7 @@ CustomStages.name = "CustomStages"
|
|
|
42827
42923
|
__TS__ClassExtends(CustomStages, Feature)
|
|
42828
42924
|
function CustomStages.prototype.____constructor(self, customGridEntities, customTrapdoors, disableAllSound, gameReorderedCallbacks, pause, runInNFrames)
|
|
42829
42925
|
Feature.prototype.____constructor(self)
|
|
42830
|
-
self.v =
|
|
42831
|
-
currentCustomStage = nil,
|
|
42832
|
-
firstFloor = true,
|
|
42833
|
-
showingBossVersusScreen = false,
|
|
42834
|
-
controllerIndexPushingMapRenderFrame = __TS__New(Map),
|
|
42835
|
-
topStreakTextStartedRenderFrame = nil,
|
|
42836
|
-
topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
|
|
42837
|
-
bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
|
|
42838
|
-
}}
|
|
42926
|
+
self.v = v
|
|
42839
42927
|
self.customStagesMap = __TS__New(Map)
|
|
42840
42928
|
self.customStageCachedRoomData = __TS__New(Map)
|
|
42841
42929
|
self.goToCustomStage = function(____, destinationName, destinationStage, _destinationStageType)
|
|
@@ -42846,15 +42934,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
42846
42934
|
self:setCustomStage(destinationName, firstFloor)
|
|
42847
42935
|
end
|
|
42848
42936
|
self.postRender = function()
|
|
42849
|
-
local customStage =
|
|
42937
|
+
local customStage = v.run.currentCustomStage
|
|
42850
42938
|
if customStage == nil then
|
|
42851
42939
|
return
|
|
42852
42940
|
end
|
|
42853
|
-
streakTextPostRender(nil
|
|
42854
|
-
versusScreenPostRender(nil, self.
|
|
42941
|
+
streakTextPostRender(nil)
|
|
42942
|
+
versusScreenPostRender(nil, self.pause, self.disableAllSound)
|
|
42855
42943
|
end
|
|
42856
42944
|
self.postCurseEval = function(____, curses)
|
|
42857
|
-
local customStage =
|
|
42945
|
+
local customStage = v.run.currentCustomStage
|
|
42858
42946
|
if customStage == nil then
|
|
42859
42947
|
return nil
|
|
42860
42948
|
end
|
|
@@ -42864,15 +42952,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
42864
42952
|
return nil
|
|
42865
42953
|
end
|
|
42866
42954
|
self.getShaderParams = function(____, shaderName)
|
|
42867
|
-
local customStage =
|
|
42955
|
+
local customStage = v.run.currentCustomStage
|
|
42868
42956
|
if customStage == nil then
|
|
42869
42957
|
return
|
|
42870
42958
|
end
|
|
42871
|
-
streakTextGetShaderParams(nil,
|
|
42959
|
+
streakTextGetShaderParams(nil, customStage, shaderName)
|
|
42872
42960
|
return nil
|
|
42873
42961
|
end
|
|
42874
42962
|
self.postGridEntityBrokenRockAlt = function(____, gridEntity)
|
|
42875
|
-
local customStage =
|
|
42963
|
+
local customStage = v.run.currentCustomStage
|
|
42876
42964
|
if customStage == nil then
|
|
42877
42965
|
return
|
|
42878
42966
|
end
|
|
@@ -42882,7 +42970,7 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
42882
42970
|
removeUrnRewards(nil, gridEntity)
|
|
42883
42971
|
end
|
|
42884
42972
|
self.postGridEntityInit = function(____, gridEntity)
|
|
42885
|
-
local customStage =
|
|
42973
|
+
local customStage = v.run.currentCustomStage
|
|
42886
42974
|
if customStage == nil then
|
|
42887
42975
|
return
|
|
42888
42976
|
end
|
|
@@ -42897,12 +42985,12 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
42897
42985
|
nil,
|
|
42898
42986
|
customStage,
|
|
42899
42987
|
gridEntity,
|
|
42900
|
-
|
|
42988
|
+
v.run.firstFloor,
|
|
42901
42989
|
self.customTrapdoors
|
|
42902
42990
|
)
|
|
42903
42991
|
end
|
|
42904
42992
|
self.postNewRoomReordered = function()
|
|
42905
|
-
local customStage =
|
|
42993
|
+
local customStage = v.run.currentCustomStage
|
|
42906
42994
|
if customStage == nil then
|
|
42907
42995
|
return
|
|
42908
42996
|
end
|
|
@@ -42910,7 +42998,6 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
42910
42998
|
setShadows(nil, customStage)
|
|
42911
42999
|
playVersusScreenAnimation(
|
|
42912
43000
|
nil,
|
|
42913
|
-
self.v,
|
|
42914
43001
|
customStage,
|
|
42915
43002
|
self.disableAllSound,
|
|
42916
43003
|
self.pause,
|
|
@@ -43043,8 +43130,8 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
|
|
|
43043
43130
|
local seeds = game:GetSeeds()
|
|
43044
43131
|
local startSeed = seeds:GetStartSeed()
|
|
43045
43132
|
local rng = newRNG(nil, startSeed)
|
|
43046
|
-
|
|
43047
|
-
|
|
43133
|
+
v.run.currentCustomStage = customStage
|
|
43134
|
+
v.run.firstFloor = firstFloor
|
|
43048
43135
|
if stage == CUSTOM_FLOOR_STAGE then
|
|
43049
43136
|
level:SetStage(LevelStage.BASEMENT_1, StageType.ORIGINAL)
|
|
43050
43137
|
end
|
|
@@ -43063,7 +43150,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
|
|
|
43063
43150
|
self.gameReorderedCallbacks:reorderedCallbacksSetStage(targetStage, targetStageType)
|
|
43064
43151
|
if streakText then
|
|
43065
43152
|
self.runInNFrames:runNextGameFrame(function()
|
|
43066
|
-
topStreakTextStart(nil
|
|
43153
|
+
topStreakTextStart(nil)
|
|
43067
43154
|
end)
|
|
43068
43155
|
end
|
|
43069
43156
|
local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
|
|
@@ -43076,7 +43163,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
|
|
|
43076
43163
|
)
|
|
43077
43164
|
end
|
|
43078
43165
|
function CustomStages.prototype.disableCustomStage(self)
|
|
43079
|
-
|
|
43166
|
+
v.run.currentCustomStage = nil
|
|
43080
43167
|
end
|
|
43081
43168
|
__TS__Decorate({Exported}, CustomStages.prototype, "setCustomStage", true)
|
|
43082
43169
|
__TS__Decorate({Exported}, CustomStages.prototype, "disableCustomStage", true)
|
|
@@ -44550,9 +44637,9 @@ return ____exports
|
|
|
44550
44637
|
end,
|
|
44551
44638
|
["src.classes.features.other.PreventGridEntityRespawn"] = function(...)
|
|
44552
44639
|
local ____lualib = require("lualib_bundle")
|
|
44640
|
+
local __TS__New = ____lualib.__TS__New
|
|
44553
44641
|
local __TS__Class = ____lualib.__TS__Class
|
|
44554
44642
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
44555
|
-
local __TS__New = ____lualib.__TS__New
|
|
44556
44643
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
44557
44644
|
local ____exports = {}
|
|
44558
44645
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -44583,25 +44670,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
44583
44670
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
44584
44671
|
local ____Feature = require("src.classes.private.Feature")
|
|
44585
44672
|
local Feature = ____Feature.Feature
|
|
44673
|
+
local v = {
|
|
44674
|
+
level = {roomListIndexToDecorationGridIndexes = __TS__New(
|
|
44675
|
+
DefaultMap,
|
|
44676
|
+
function() return {} end
|
|
44677
|
+
)},
|
|
44678
|
+
room = {manuallyUsingShovel = false}
|
|
44679
|
+
}
|
|
44586
44680
|
____exports.PreventGridEntityRespawn = __TS__Class()
|
|
44587
44681
|
local PreventGridEntityRespawn = ____exports.PreventGridEntityRespawn
|
|
44588
44682
|
PreventGridEntityRespawn.name = "PreventGridEntityRespawn"
|
|
44589
44683
|
__TS__ClassExtends(PreventGridEntityRespawn, Feature)
|
|
44590
44684
|
function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
44591
44685
|
Feature.prototype.____constructor(self)
|
|
44592
|
-
self.v =
|
|
44593
|
-
level = {roomListIndexToDecorationGridIndexes = __TS__New(
|
|
44594
|
-
DefaultMap,
|
|
44595
|
-
function() return {} end
|
|
44596
|
-
)},
|
|
44597
|
-
room = {manuallyUsingShovel = false}
|
|
44598
|
-
}
|
|
44686
|
+
self.v = v
|
|
44599
44687
|
self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
44600
|
-
if
|
|
44688
|
+
if v.room.manuallyUsingShovel then
|
|
44601
44689
|
return nil
|
|
44602
44690
|
end
|
|
44603
44691
|
local roomListIndex = getRoomListIndex(nil)
|
|
44604
|
-
if not
|
|
44692
|
+
if not v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
|
|
44605
44693
|
return
|
|
44606
44694
|
end
|
|
44607
44695
|
local decorations = getGridEntities(nil, GridEntityType.DECORATION)
|
|
@@ -44618,10 +44706,10 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
|
44618
44706
|
if futureRoomListIndex ~= roomListIndex then
|
|
44619
44707
|
return
|
|
44620
44708
|
end
|
|
44621
|
-
|
|
44709
|
+
v.room.manuallyUsingShovel = true
|
|
44622
44710
|
futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
|
|
44623
|
-
|
|
44624
|
-
local decorationGridIndexes =
|
|
44711
|
+
v.room.manuallyUsingShovel = false
|
|
44712
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
|
|
44625
44713
|
emptyArray(nil, decorationGridIndexes)
|
|
44626
44714
|
self:preventGridEntityRespawn()
|
|
44627
44715
|
end)
|
|
@@ -44638,7 +44726,7 @@ end
|
|
|
44638
44726
|
function PreventGridEntityRespawn.prototype.setDecorationsInvisible(self)
|
|
44639
44727
|
local room = game:GetRoom()
|
|
44640
44728
|
local roomListIndex = getRoomListIndex(nil)
|
|
44641
|
-
local decorationGridIndexes =
|
|
44729
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
|
|
44642
44730
|
if decorationGridIndexes == nil then
|
|
44643
44731
|
return
|
|
44644
44732
|
end
|
|
@@ -44655,7 +44743,7 @@ end
|
|
|
44655
44743
|
function PreventGridEntityRespawn.prototype.preventGridEntityRespawn(self)
|
|
44656
44744
|
local room = game:GetRoom()
|
|
44657
44745
|
local roomListIndex = getRoomListIndex(nil)
|
|
44658
|
-
local decorationGridIndexes =
|
|
44746
|
+
local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
|
|
44659
44747
|
for ____, gridIndex in ipairs(getAllGridIndexes(nil)) do
|
|
44660
44748
|
do
|
|
44661
44749
|
local existingGridEntity = room:GetGridEntity(gridIndex)
|
|
@@ -44741,10 +44829,10 @@ return ____exports
|
|
|
44741
44829
|
end,
|
|
44742
44830
|
["src.classes.features.other.PreventCollectibleRotation"] = function(...)
|
|
44743
44831
|
local ____lualib = require("lualib_bundle")
|
|
44744
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
44745
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
44746
44832
|
local Map = ____lualib.Map
|
|
44747
44833
|
local __TS__New = ____lualib.__TS__New
|
|
44834
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
44835
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
44748
44836
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
44749
44837
|
local ____exports = {}
|
|
44750
44838
|
local getMapIndex
|
|
@@ -44770,15 +44858,16 @@ function getMapIndex(self, collectible)
|
|
|
44770
44858
|
local gridIndex = room:GetGridIndex(collectible.Position)
|
|
44771
44859
|
return (tostring(gridIndex) .. ",") .. tostring(collectible.InitSeed)
|
|
44772
44860
|
end
|
|
44861
|
+
local v = {room = {trackedCollectibles = __TS__New(Map)}}
|
|
44773
44862
|
____exports.PreventCollectibleRotation = __TS__Class()
|
|
44774
44863
|
local PreventCollectibleRotation = ____exports.PreventCollectibleRotation
|
|
44775
44864
|
PreventCollectibleRotation.name = "PreventCollectibleRotation"
|
|
44776
44865
|
__TS__ClassExtends(PreventCollectibleRotation, Feature)
|
|
44777
44866
|
function PreventCollectibleRotation.prototype.____constructor(self)
|
|
44778
44867
|
Feature.prototype.____constructor(self)
|
|
44779
|
-
self.v =
|
|
44868
|
+
self.v = v
|
|
44780
44869
|
self.useCardSoulOfIsaac = function()
|
|
44781
|
-
|
|
44870
|
+
v.room.trackedCollectibles:clear()
|
|
44782
44871
|
end
|
|
44783
44872
|
self.postPickupUpdateCollectible = function(____, pickup)
|
|
44784
44873
|
local collectible = pickup
|
|
@@ -44791,7 +44880,7 @@ function PreventCollectibleRotation.prototype.checkCollectibleRotated(self, coll
|
|
|
44791
44880
|
return
|
|
44792
44881
|
end
|
|
44793
44882
|
local index = getMapIndex(nil, collectible)
|
|
44794
|
-
local trackedCollectibleType =
|
|
44883
|
+
local trackedCollectibleType = v.room.trackedCollectibles:get(index)
|
|
44795
44884
|
if trackedCollectibleType ~= nil and collectible.SubType ~= trackedCollectibleType then
|
|
44796
44885
|
setCollectibleSubType(nil, collectible, trackedCollectibleType)
|
|
44797
44886
|
end
|
|
@@ -44802,7 +44891,7 @@ function PreventCollectibleRotation.prototype.preventCollectibleRotation(self, c
|
|
|
44802
44891
|
error("The \"preventCollectibleRotate\" function was given a non-collectible: " .. entityID)
|
|
44803
44892
|
end
|
|
44804
44893
|
local index = getMapIndex(nil, collectible)
|
|
44805
|
-
|
|
44894
|
+
v.room.trackedCollectibles:set(index, collectibleType)
|
|
44806
44895
|
self:checkCollectibleRotated(collectible)
|
|
44807
44896
|
end
|
|
44808
44897
|
__TS__Decorate({Exported}, PreventCollectibleRotation.prototype, "preventCollectibleRotation", true)
|
|
@@ -48495,58 +48584,58 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
48495
48584
|
self.v = v
|
|
48496
48585
|
self.commandFunctionMap = __TS__New(Map)
|
|
48497
48586
|
self.postUpdate = function()
|
|
48498
|
-
if
|
|
48587
|
+
if v.persistent.spamBloodRights then
|
|
48499
48588
|
local player = Isaac.GetPlayer()
|
|
48500
48589
|
player:UseActiveItem(CollectibleType.BLOOD_RIGHTS)
|
|
48501
48590
|
end
|
|
48502
48591
|
end
|
|
48503
48592
|
self.evaluateCacheDamage = function(____, player)
|
|
48504
|
-
if
|
|
48505
|
-
player.Damage =
|
|
48593
|
+
if v.persistent.damage then
|
|
48594
|
+
player.Damage = v.persistent.damageAmount
|
|
48506
48595
|
end
|
|
48507
48596
|
end
|
|
48508
48597
|
self.evaluateCacheFireDelay = function(____, player)
|
|
48509
|
-
if
|
|
48510
|
-
player.FireDelay =
|
|
48598
|
+
if v.persistent.tears then
|
|
48599
|
+
player.FireDelay = v.persistent.tearsAmount
|
|
48511
48600
|
end
|
|
48512
48601
|
end
|
|
48513
48602
|
self.evaluateCacheSpeed = function(____, player)
|
|
48514
|
-
if
|
|
48515
|
-
player.MoveSpeed =
|
|
48603
|
+
if v.persistent.speed then
|
|
48604
|
+
player.MoveSpeed = v.persistent.speedAmount
|
|
48516
48605
|
end
|
|
48517
48606
|
end
|
|
48518
48607
|
self.evaluateCacheFlying = function(____, player)
|
|
48519
|
-
if
|
|
48608
|
+
if v.persistent.flight then
|
|
48520
48609
|
player.CanFly = true
|
|
48521
48610
|
end
|
|
48522
48611
|
end
|
|
48523
48612
|
self.postCurseEval = function(____, curses)
|
|
48524
|
-
if
|
|
48613
|
+
if v.persistent.disableCurses then
|
|
48525
48614
|
return bitFlags(nil, LevelCurse.NONE)
|
|
48526
48615
|
end
|
|
48527
48616
|
local newCurses = curses
|
|
48528
|
-
if
|
|
48617
|
+
if v.persistent.darkness then
|
|
48529
48618
|
newCurses = addFlag(nil, newCurses, LevelCurse.DARKNESS)
|
|
48530
48619
|
end
|
|
48531
|
-
if
|
|
48620
|
+
if v.persistent.labyrinth then
|
|
48532
48621
|
newCurses = addFlag(nil, newCurses, LevelCurse.LABYRINTH)
|
|
48533
48622
|
end
|
|
48534
|
-
if
|
|
48623
|
+
if v.persistent.lost then
|
|
48535
48624
|
newCurses = addFlag(nil, newCurses, LevelCurse.LOST)
|
|
48536
48625
|
end
|
|
48537
|
-
if
|
|
48626
|
+
if v.persistent.unknown then
|
|
48538
48627
|
newCurses = addFlag(nil, newCurses, LevelCurse.UNKNOWN)
|
|
48539
48628
|
end
|
|
48540
|
-
if
|
|
48629
|
+
if v.persistent.cursed then
|
|
48541
48630
|
newCurses = addFlag(nil, newCurses, LevelCurse.CURSED)
|
|
48542
48631
|
end
|
|
48543
|
-
if
|
|
48632
|
+
if v.persistent.maze then
|
|
48544
48633
|
newCurses = addFlag(nil, newCurses, LevelCurse.MAZE)
|
|
48545
48634
|
end
|
|
48546
|
-
if
|
|
48635
|
+
if v.persistent.blind then
|
|
48547
48636
|
newCurses = addFlag(nil, newCurses, LevelCurse.BLIND)
|
|
48548
48637
|
end
|
|
48549
|
-
if
|
|
48638
|
+
if v.persistent.giant then
|
|
48550
48639
|
newCurses = addFlag(nil, newCurses, LevelCurse.GIANT)
|
|
48551
48640
|
end
|
|
48552
48641
|
local ____temp_0
|
|
@@ -48567,12 +48656,12 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
48567
48656
|
commandFunction(nil, params)
|
|
48568
48657
|
end
|
|
48569
48658
|
self.postFireTear = function(____, tear)
|
|
48570
|
-
if
|
|
48659
|
+
if v.persistent.chaosCardTears then
|
|
48571
48660
|
tear:ChangeVariant(TearVariant.CHAOS_CARD)
|
|
48572
48661
|
end
|
|
48573
48662
|
end
|
|
48574
48663
|
self.entityTakeDmgPlayer = function(____, _player, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
|
|
48575
|
-
if
|
|
48664
|
+
if v.persistent.spamBloodRights then
|
|
48576
48665
|
return false
|
|
48577
48666
|
end
|
|
48578
48667
|
return nil
|
|
@@ -48778,13 +48867,14 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
48778
48867
|
local getPlayerIndex = ____playerIndex.getPlayerIndex
|
|
48779
48868
|
local ____Feature = require("src.classes.private.Feature")
|
|
48780
48869
|
local Feature = ____Feature.Feature
|
|
48870
|
+
local v = {run = {buttonActionTuples = {}}}
|
|
48781
48871
|
____exports.PressInput = __TS__Class()
|
|
48782
48872
|
local PressInput = ____exports.PressInput
|
|
48783
48873
|
PressInput.name = "PressInput"
|
|
48784
48874
|
__TS__ClassExtends(PressInput, Feature)
|
|
48785
48875
|
function PressInput.prototype.____constructor(self)
|
|
48786
48876
|
Feature.prototype.____constructor(self)
|
|
48787
|
-
self.v =
|
|
48877
|
+
self.v = v
|
|
48788
48878
|
self.isActionTriggered = function(____, entity, _inputHook, buttonAction)
|
|
48789
48879
|
if entity == nil then
|
|
48790
48880
|
return nil
|
|
@@ -48795,12 +48885,12 @@ function PressInput.prototype.____constructor(self)
|
|
|
48795
48885
|
end
|
|
48796
48886
|
local playerIndex = getPlayerIndex(nil, player)
|
|
48797
48887
|
do
|
|
48798
|
-
local i = #
|
|
48888
|
+
local i = #v.run.buttonActionTuples - 1
|
|
48799
48889
|
while i >= 0 do
|
|
48800
|
-
local tuple =
|
|
48890
|
+
local tuple = v.run.buttonActionTuples[i + 1]
|
|
48801
48891
|
local tuplePlayerIndex, tupleButtonAction = table.unpack(tuple)
|
|
48802
48892
|
if tuplePlayerIndex == playerIndex and tupleButtonAction == buttonAction then
|
|
48803
|
-
__TS__ArraySplice(
|
|
48893
|
+
__TS__ArraySplice(v.run.buttonActionTuples, i)
|
|
48804
48894
|
return true
|
|
48805
48895
|
end
|
|
48806
48896
|
i = i - 1
|
|
@@ -48812,8 +48902,8 @@ function PressInput.prototype.____constructor(self)
|
|
|
48812
48902
|
end
|
|
48813
48903
|
function PressInput.prototype.pressInput(self, player, buttonAction)
|
|
48814
48904
|
local playerIndex = getPlayerIndex(nil, player)
|
|
48815
|
-
local
|
|
48816
|
-
|
|
48905
|
+
local ____v_run_buttonActionTuples_0 = v.run.buttonActionTuples
|
|
48906
|
+
____v_run_buttonActionTuples_0[#____v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
|
|
48817
48907
|
end
|
|
48818
48908
|
__TS__Decorate({Exported}, PressInput.prototype, "pressInput", true)
|
|
48819
48909
|
return ____exports
|
|
@@ -49010,13 +49100,14 @@ local ____decorators = require("src.decorators")
|
|
|
49010
49100
|
local Exported = ____decorators.Exported
|
|
49011
49101
|
local ____Feature = require("src.classes.private.Feature")
|
|
49012
49102
|
local Feature = ____Feature.Feature
|
|
49103
|
+
local v = {run = {familiarBlacklist = {}}}
|
|
49013
49104
|
____exports.NoSirenSteal = __TS__Class()
|
|
49014
49105
|
local NoSirenSteal = ____exports.NoSirenSteal
|
|
49015
49106
|
NoSirenSteal.name = "NoSirenSteal"
|
|
49016
49107
|
__TS__ClassExtends(NoSirenSteal, Feature)
|
|
49017
49108
|
function NoSirenSteal.prototype.____constructor(self)
|
|
49018
49109
|
Feature.prototype.____constructor(self)
|
|
49019
|
-
self.v =
|
|
49110
|
+
self.v = v
|
|
49020
49111
|
self.postNPCInitSirenHelper = function(____, npc)
|
|
49021
49112
|
self:checkReturnFamiliarToPlayer(npc)
|
|
49022
49113
|
end
|
|
@@ -49036,7 +49127,7 @@ function NoSirenSteal.prototype.checkReturnFamiliarToPlayer(self, npc)
|
|
|
49036
49127
|
end
|
|
49037
49128
|
end
|
|
49038
49129
|
function NoSirenSteal.prototype.blacklistEntryExists(self, incomingFamiliarVariant, incomingFamiliarSubType)
|
|
49039
|
-
for ____, familiarTuple in ipairs(
|
|
49130
|
+
for ____, familiarTuple in ipairs(v.run.familiarBlacklist) do
|
|
49040
49131
|
local familiarVariant, familiarSubType = table.unpack(familiarTuple)
|
|
49041
49132
|
if familiarVariant == incomingFamiliarVariant and familiarSubType == incomingFamiliarSubType then
|
|
49042
49133
|
return true
|
|
@@ -49051,18 +49142,18 @@ function NoSirenSteal.prototype.setFamiliarNoSirenSteal(self, familiarVariant, f
|
|
|
49051
49142
|
if self:blacklistEntryExists(familiarVariant, familiarSubType) then
|
|
49052
49143
|
return
|
|
49053
49144
|
end
|
|
49054
|
-
local
|
|
49055
|
-
|
|
49145
|
+
local ____v_run_familiarBlacklist_0 = v.run.familiarBlacklist
|
|
49146
|
+
____v_run_familiarBlacklist_0[#____v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
|
|
49056
49147
|
end
|
|
49057
49148
|
__TS__Decorate({Exported}, NoSirenSteal.prototype, "setFamiliarNoSirenSteal", true)
|
|
49058
49149
|
return ____exports
|
|
49059
49150
|
end,
|
|
49060
49151
|
["src.classes.features.other.PersistentEntities"] = function(...)
|
|
49061
49152
|
local ____lualib = require("lualib_bundle")
|
|
49062
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
49063
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49064
49153
|
local Map = ____lualib.Map
|
|
49065
49154
|
local __TS__New = ____lualib.__TS__New
|
|
49155
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
49156
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49066
49157
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
49067
49158
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
49068
49159
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
@@ -49083,20 +49174,21 @@ local ____roomData = require("src.functions.roomData")
|
|
|
49083
49174
|
local getRoomListIndex = ____roomData.getRoomListIndex
|
|
49084
49175
|
local ____Feature = require("src.classes.private.Feature")
|
|
49085
49176
|
local Feature = ____Feature.Feature
|
|
49177
|
+
local v = {
|
|
49178
|
+
run = {persistentEntityIndexCounter = 0},
|
|
49179
|
+
level = {persistentEntities = __TS__New(Map)},
|
|
49180
|
+
room = {spawnedPersistentEntities = __TS__New(Map)}
|
|
49181
|
+
}
|
|
49086
49182
|
____exports.PersistentEntities = __TS__Class()
|
|
49087
49183
|
local PersistentEntities = ____exports.PersistentEntities
|
|
49088
49184
|
PersistentEntities.name = "PersistentEntities"
|
|
49089
49185
|
__TS__ClassExtends(PersistentEntities, Feature)
|
|
49090
49186
|
function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
49091
49187
|
Feature.prototype.____constructor(self)
|
|
49092
|
-
self.v =
|
|
49093
|
-
run = {persistentEntityIndexCounter = 0},
|
|
49094
|
-
level = {persistentEntities = __TS__New(Map)},
|
|
49095
|
-
room = {spawnedPersistentEntities = __TS__New(Map)}
|
|
49096
|
-
}
|
|
49188
|
+
self.v = v
|
|
49097
49189
|
self.postEntityRemove = function(____, entity)
|
|
49098
49190
|
local ptrHash = GetPtrHash(entity)
|
|
49099
|
-
local tuple =
|
|
49191
|
+
local tuple = v.room.spawnedPersistentEntities:get(ptrHash)
|
|
49100
49192
|
if tuple == nil then
|
|
49101
49193
|
return
|
|
49102
49194
|
end
|
|
@@ -49109,7 +49201,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
|
49109
49201
|
end
|
|
49110
49202
|
self.postNewRoomReordered = function()
|
|
49111
49203
|
local roomListIndex = getRoomListIndex(nil)
|
|
49112
|
-
local persistentEntities = {__TS__Spread(
|
|
49204
|
+
local persistentEntities = {__TS__Spread(v.level.persistentEntities:entries())}
|
|
49113
49205
|
local persistentEntitiesInThisRoom = __TS__ArrayFilter(
|
|
49114
49206
|
persistentEntities,
|
|
49115
49207
|
function(____, ____bindingPattern0)
|
|
@@ -49122,7 +49214,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
|
49122
49214
|
for ____, ____value in ipairs(persistentEntitiesInThisRoom) do
|
|
49123
49215
|
local index = ____value[1]
|
|
49124
49216
|
local description = ____value[2]
|
|
49125
|
-
|
|
49217
|
+
v.level.persistentEntities:delete(index)
|
|
49126
49218
|
self:spawnAndTrack(
|
|
49127
49219
|
description.entityType,
|
|
49128
49220
|
description.variant,
|
|
@@ -49151,7 +49243,7 @@ function PersistentEntities.prototype.trackDespawningPickupPosition(self, entity
|
|
|
49151
49243
|
roomListIndex = previousRoomDescription.roomListIndex,
|
|
49152
49244
|
position = entity.Position
|
|
49153
49245
|
}
|
|
49154
|
-
|
|
49246
|
+
v.level.persistentEntities:set(index, persistentEntityDescription)
|
|
49155
49247
|
end
|
|
49156
49248
|
function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, subType, position, index, respawning)
|
|
49157
49249
|
if respawning == nil then
|
|
@@ -49172,15 +49264,15 @@ function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, s
|
|
|
49172
49264
|
index,
|
|
49173
49265
|
EntityPtr(entity)
|
|
49174
49266
|
}
|
|
49175
|
-
|
|
49267
|
+
v.room.spawnedPersistentEntities:set(ptrHash, tuple)
|
|
49176
49268
|
return entity
|
|
49177
49269
|
end
|
|
49178
49270
|
function PersistentEntities.prototype.removePersistentEntity(self, persistentEntityIndex, removeEntity)
|
|
49179
49271
|
if removeEntity == nil then
|
|
49180
49272
|
removeEntity = true
|
|
49181
49273
|
end
|
|
49182
|
-
|
|
49183
|
-
for ____, ____value in __TS__Iterator(
|
|
49274
|
+
v.level.persistentEntities:delete(persistentEntityIndex)
|
|
49275
|
+
for ____, ____value in __TS__Iterator(v.room.spawnedPersistentEntities) do
|
|
49184
49276
|
local ptrHash = ____value[1]
|
|
49185
49277
|
local tuple = ____value[2]
|
|
49186
49278
|
do
|
|
@@ -49188,7 +49280,7 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
|
|
|
49188
49280
|
if index ~= persistentEntityIndex then
|
|
49189
49281
|
goto __continue16
|
|
49190
49282
|
end
|
|
49191
|
-
|
|
49283
|
+
v.room.spawnedPersistentEntities:delete(ptrHash)
|
|
49192
49284
|
if removeEntity and entityPtr.Ref ~= nil then
|
|
49193
49285
|
entityPtr.Ref:Remove()
|
|
49194
49286
|
end
|
|
@@ -49197,16 +49289,16 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
|
|
|
49197
49289
|
end
|
|
49198
49290
|
end
|
|
49199
49291
|
function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, variant, subType, position)
|
|
49200
|
-
local
|
|
49201
|
-
|
|
49292
|
+
local ____v_run_0, ____persistentEntityIndexCounter_1 = v.run, "persistentEntityIndexCounter"
|
|
49293
|
+
____v_run_0[____persistentEntityIndexCounter_1] = ____v_run_0[____persistentEntityIndexCounter_1] + 1
|
|
49202
49294
|
local entity = self:spawnAndTrack(
|
|
49203
49295
|
entityType,
|
|
49204
49296
|
variant,
|
|
49205
49297
|
subType,
|
|
49206
49298
|
position,
|
|
49207
|
-
|
|
49299
|
+
v.run.persistentEntityIndexCounter
|
|
49208
49300
|
)
|
|
49209
|
-
return {entity,
|
|
49301
|
+
return {entity, v.run.persistentEntityIndexCounter}
|
|
49210
49302
|
end
|
|
49211
49303
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
49212
49304
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
|
@@ -49214,9 +49306,9 @@ return ____exports
|
|
|
49214
49306
|
end,
|
|
49215
49307
|
["src.classes.features.other.PlayerInventory"] = function(...)
|
|
49216
49308
|
local ____lualib = require("lualib_bundle")
|
|
49309
|
+
local __TS__New = ____lualib.__TS__New
|
|
49217
49310
|
local __TS__Class = ____lualib.__TS__Class
|
|
49218
49311
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49219
|
-
local __TS__New = ____lualib.__TS__New
|
|
49220
49312
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
49221
49313
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
49222
49314
|
local ____exports = {}
|
|
@@ -49236,22 +49328,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
49236
49328
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
49237
49329
|
local ____Feature = require("src.classes.private.Feature")
|
|
49238
49330
|
local Feature = ____Feature.Feature
|
|
49331
|
+
local v = {run = {playersInventory = __TS__New(
|
|
49332
|
+
DefaultMap,
|
|
49333
|
+
function() return {} end
|
|
49334
|
+
)}}
|
|
49239
49335
|
____exports.PlayerInventory = __TS__Class()
|
|
49240
49336
|
local PlayerInventory = ____exports.PlayerInventory
|
|
49241
49337
|
PlayerInventory.name = "PlayerInventory"
|
|
49242
49338
|
__TS__ClassExtends(PlayerInventory, Feature)
|
|
49243
49339
|
function PlayerInventory.prototype.____constructor(self)
|
|
49244
49340
|
Feature.prototype.____constructor(self)
|
|
49245
|
-
self.v =
|
|
49246
|
-
DefaultMap,
|
|
49247
|
-
function() return {} end
|
|
49248
|
-
)}}
|
|
49341
|
+
self.v = v
|
|
49249
49342
|
self.postCollectibleAdded = function(____, player, collectibleType)
|
|
49250
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
49343
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
49251
49344
|
inventory[#inventory + 1] = collectibleType
|
|
49252
49345
|
end
|
|
49253
49346
|
self.postCollectibleRemoved = function(____, player, collectibleType)
|
|
49254
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
49347
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
49255
49348
|
arrayRemoveInPlace(nil, inventory, collectibleType)
|
|
49256
49349
|
end
|
|
49257
49350
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED, self.postCollectibleAdded}, {ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED, self.postCollectibleRemoved}}
|
|
@@ -49260,7 +49353,7 @@ function PlayerInventory.prototype.getPlayerInventory(self, player, includeActiv
|
|
|
49260
49353
|
if includeActiveCollectibles == nil then
|
|
49261
49354
|
includeActiveCollectibles = true
|
|
49262
49355
|
end
|
|
49263
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
49356
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
49264
49357
|
if includeActiveCollectibles then
|
|
49265
49358
|
return copyArray(nil, inventory)
|
|
49266
49359
|
end
|
|
@@ -49279,10 +49372,10 @@ return ____exports
|
|
|
49279
49372
|
end,
|
|
49280
49373
|
["src.classes.features.other.PreventChildEntities"] = function(...)
|
|
49281
49374
|
local ____lualib = require("lualib_bundle")
|
|
49282
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
49283
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49284
49375
|
local Set = ____lualib.Set
|
|
49285
49376
|
local __TS__New = ____lualib.__TS__New
|
|
49377
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
49378
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49286
49379
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
49287
49380
|
local ____exports = {}
|
|
49288
49381
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -49291,16 +49384,17 @@ local ____decorators = require("src.decorators")
|
|
|
49291
49384
|
local Exported = ____decorators.Exported
|
|
49292
49385
|
local ____Feature = require("src.classes.private.Feature")
|
|
49293
49386
|
local Feature = ____Feature.Feature
|
|
49387
|
+
local v = {room = {preventingEntities = __TS__New(Set)}}
|
|
49294
49388
|
____exports.PreventChildEntities = __TS__Class()
|
|
49295
49389
|
local PreventChildEntities = ____exports.PreventChildEntities
|
|
49296
49390
|
PreventChildEntities.name = "PreventChildEntities"
|
|
49297
49391
|
__TS__ClassExtends(PreventChildEntities, Feature)
|
|
49298
49392
|
function PreventChildEntities.prototype.____constructor(self)
|
|
49299
49393
|
Feature.prototype.____constructor(self)
|
|
49300
|
-
self.v =
|
|
49394
|
+
self.v = v
|
|
49301
49395
|
self.postNPCInit = function(____, npc)
|
|
49302
|
-
local spawnerEntityMatch = npc.SpawnerEntity ~= nil and
|
|
49303
|
-
local parentMatch = npc.Parent ~= nil and
|
|
49396
|
+
local spawnerEntityMatch = npc.SpawnerEntity ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
|
|
49397
|
+
local parentMatch = npc.Parent ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.Parent))
|
|
49304
49398
|
if spawnerEntityMatch or parentMatch then
|
|
49305
49399
|
npc:Remove()
|
|
49306
49400
|
end
|
|
@@ -49309,7 +49403,7 @@ function PreventChildEntities.prototype.____constructor(self)
|
|
|
49309
49403
|
end
|
|
49310
49404
|
function PreventChildEntities.prototype.preventChildEntities(self, entity)
|
|
49311
49405
|
local ptrHash = GetPtrHash(entity)
|
|
49312
|
-
|
|
49406
|
+
v.room.preventingEntities:add(ptrHash)
|
|
49313
49407
|
end
|
|
49314
49408
|
__TS__Decorate({Exported}, PreventChildEntities.prototype, "preventChildEntities", true)
|
|
49315
49409
|
return ____exports
|
|
@@ -49889,10 +49983,10 @@ return ____exports
|
|
|
49889
49983
|
end,
|
|
49890
49984
|
["src.classes.features.other.TaintedLazarusPlayers"] = function(...)
|
|
49891
49985
|
local ____lualib = require("lualib_bundle")
|
|
49892
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
49893
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49894
49986
|
local Map = ____lualib.Map
|
|
49895
49987
|
local __TS__New = ____lualib.__TS__New
|
|
49988
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
49989
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
49896
49990
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
49897
49991
|
local ____exports = {}
|
|
49898
49992
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
@@ -49904,26 +49998,27 @@ local ____logMisc = require("src.functions.logMisc")
|
|
|
49904
49998
|
local logError = ____logMisc.logError
|
|
49905
49999
|
local ____Feature = require("src.classes.private.Feature")
|
|
49906
50000
|
local Feature = ____Feature.Feature
|
|
50001
|
+
local v = {run = {
|
|
50002
|
+
queuedTaintedLazarus = {},
|
|
50003
|
+
queuedDeadTaintedLazarus = {},
|
|
50004
|
+
subPlayerMap = __TS__New(Map)
|
|
50005
|
+
}}
|
|
49907
50006
|
____exports.TaintedLazarusPlayers = __TS__Class()
|
|
49908
50007
|
local TaintedLazarusPlayers = ____exports.TaintedLazarusPlayers
|
|
49909
50008
|
TaintedLazarusPlayers.name = "TaintedLazarusPlayers"
|
|
49910
50009
|
__TS__ClassExtends(TaintedLazarusPlayers, Feature)
|
|
49911
50010
|
function TaintedLazarusPlayers.prototype.____constructor(self)
|
|
49912
50011
|
Feature.prototype.____constructor(self)
|
|
49913
|
-
self.v =
|
|
49914
|
-
queuedTaintedLazarus = {},
|
|
49915
|
-
queuedDeadTaintedLazarus = {},
|
|
49916
|
-
subPlayerMap = __TS__New(Map)
|
|
49917
|
-
}}
|
|
50012
|
+
self.v = v
|
|
49918
50013
|
self.vConditionalFunc = function() return false end
|
|
49919
50014
|
self.postPlayerInit = function(____, player)
|
|
49920
50015
|
local character = player:GetPlayerType()
|
|
49921
50016
|
if character == PlayerType.LAZARUS_B then
|
|
49922
|
-
local
|
|
49923
|
-
|
|
50017
|
+
local ____v_run_queuedTaintedLazarus_0 = v.run.queuedTaintedLazarus
|
|
50018
|
+
____v_run_queuedTaintedLazarus_0[#____v_run_queuedTaintedLazarus_0 + 1] = player
|
|
49924
50019
|
elseif character == PlayerType.LAZARUS_2_B then
|
|
49925
|
-
local
|
|
49926
|
-
|
|
50020
|
+
local ____v_run_queuedDeadTaintedLazarus_1 = v.run.queuedDeadTaintedLazarus
|
|
50021
|
+
____v_run_queuedDeadTaintedLazarus_1[#____v_run_queuedDeadTaintedLazarus_1 + 1] = player
|
|
49927
50022
|
else
|
|
49928
50023
|
return
|
|
49929
50024
|
end
|
|
@@ -49932,11 +50027,11 @@ function TaintedLazarusPlayers.prototype.____constructor(self)
|
|
|
49932
50027
|
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
|
|
49933
50028
|
end
|
|
49934
50029
|
function TaintedLazarusPlayers.prototype.checkDequeue(self)
|
|
49935
|
-
if #
|
|
50030
|
+
if #v.run.queuedTaintedLazarus == 0 or #v.run.queuedDeadTaintedLazarus == 0 then
|
|
49936
50031
|
return
|
|
49937
50032
|
end
|
|
49938
|
-
local taintedLazarus = table.remove(
|
|
49939
|
-
local deadTaintedLazarus = table.remove(
|
|
50033
|
+
local taintedLazarus = table.remove(v.run.queuedTaintedLazarus, 1)
|
|
50034
|
+
local deadTaintedLazarus = table.remove(v.run.queuedDeadTaintedLazarus, 1)
|
|
49940
50035
|
if taintedLazarus == nil or deadTaintedLazarus == nil then
|
|
49941
50036
|
return
|
|
49942
50037
|
end
|
|
@@ -49946,12 +50041,12 @@ function TaintedLazarusPlayers.prototype.checkDequeue(self)
|
|
|
49946
50041
|
logError("Failed to cache the Tainted Lazarus player objects, since the hash for Tainted Lazarus and Dead Tainted Lazarus were the same.")
|
|
49947
50042
|
return
|
|
49948
50043
|
end
|
|
49949
|
-
|
|
49950
|
-
|
|
50044
|
+
v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
|
|
50045
|
+
v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
|
|
49951
50046
|
end
|
|
49952
50047
|
function TaintedLazarusPlayers.prototype.getTaintedLazarusSubPlayer(self, player)
|
|
49953
50048
|
local ptrHash = GetPtrHash(player)
|
|
49954
|
-
return
|
|
50049
|
+
return v.run.subPlayerMap:get(ptrHash)
|
|
49955
50050
|
end
|
|
49956
50051
|
__TS__Decorate({Exported}, TaintedLazarusPlayers.prototype, "getTaintedLazarusSubPlayer", true)
|
|
49957
50052
|
return ____exports
|
|
@@ -50554,11 +50649,15 @@ function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, va
|
|
|
50554
50649
|
if not isNumber(nil, modCallback) then
|
|
50555
50650
|
error("Failed to get the callback number from the callback tuple for class: " .. tstlClassName)
|
|
50556
50651
|
end
|
|
50557
|
-
local
|
|
50652
|
+
local priority = callbackTuple[2]
|
|
50653
|
+
if not isNumber(nil, priority) then
|
|
50654
|
+
error("Failed to get the callback priority from the callback tuple for class: " .. tstlClassName)
|
|
50655
|
+
end
|
|
50656
|
+
local callback = callbackTuple[3]
|
|
50558
50657
|
if not isFunction(nil, callback) then
|
|
50559
50658
|
error("Failed to get the callback function from the callback tuple for class: " .. tstlClassName)
|
|
50560
50659
|
end
|
|
50561
|
-
local parameters = callbackTuple[
|
|
50660
|
+
local parameters = callbackTuple[4]
|
|
50562
50661
|
if not isArray(nil, parameters, false) then
|
|
50563
50662
|
error("Failed to get the callback parameters from the callback tuple for class: " .. tstlClassName)
|
|
50564
50663
|
end
|
|
@@ -50570,6 +50669,7 @@ function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, va
|
|
|
50570
50669
|
modFeatureConstructor,
|
|
50571
50670
|
mod,
|
|
50572
50671
|
modCallback,
|
|
50672
|
+
priority,
|
|
50573
50673
|
callback,
|
|
50574
50674
|
parameters,
|
|
50575
50675
|
vanilla
|
|
@@ -50585,7 +50685,7 @@ function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, va
|
|
|
50585
50685
|
end
|
|
50586
50686
|
end
|
|
50587
50687
|
end
|
|
50588
|
-
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
50688
|
+
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, priority, callback, parameters, vanilla)
|
|
50589
50689
|
local function wrappedCallback(____, ...)
|
|
50590
50690
|
local conditionalFunc = modFeature.shouldCallbackMethodsFire
|
|
50591
50691
|
if conditionalFunc ~= nil then
|
|
@@ -50615,14 +50715,16 @@ function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback,
|
|
|
50615
50715
|
wrappedMethodsMap:set(modCallbackCustom, wrappedCallback)
|
|
50616
50716
|
end
|
|
50617
50717
|
if vanilla then
|
|
50618
|
-
mod:
|
|
50718
|
+
mod:AddPriorityCallback(
|
|
50619
50719
|
modCallback,
|
|
50720
|
+
priority,
|
|
50620
50721
|
wrappedCallback,
|
|
50621
50722
|
table.unpack(parameters)
|
|
50622
50723
|
)
|
|
50623
50724
|
else
|
|
50624
|
-
mod:
|
|
50725
|
+
mod:AddPriorityCallbackCustom(
|
|
50625
50726
|
modCallback,
|
|
50727
|
+
priority,
|
|
50626
50728
|
wrappedCallback,
|
|
50627
50729
|
table.unpack(parameters)
|
|
50628
50730
|
)
|
|
@@ -51093,17 +51195,19 @@ return ____exports
|
|
|
51093
51195
|
end,
|
|
51094
51196
|
["src.functions.decorators"] = function(...)
|
|
51095
51197
|
local ____exports = {}
|
|
51198
|
+
local ____CallbackPriority = require("lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority")
|
|
51199
|
+
local CallbackPriority = ____CallbackPriority.CallbackPriority
|
|
51096
51200
|
local ____ModFeature = require("src.classes.ModFeature")
|
|
51097
51201
|
local MOD_FEATURE_CALLBACKS_KEY = ____ModFeature.MOD_FEATURE_CALLBACKS_KEY
|
|
51098
51202
|
local MOD_FEATURE_CUSTOM_CALLBACKS_KEY = ____ModFeature.MOD_FEATURE_CUSTOM_CALLBACKS_KEY
|
|
51099
51203
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
51100
51204
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
51101
|
-
function ____exports.
|
|
51205
|
+
function ____exports.PriorityCallback(self, modCallback, priority, ...)
|
|
51102
51206
|
local optionalArgs = {...}
|
|
51103
51207
|
return function(____, target, propertyKey, _descriptor)
|
|
51104
51208
|
local methodName = propertyKey
|
|
51105
51209
|
local method = target[methodName]
|
|
51106
|
-
local callbackTuple = {modCallback, method, optionalArgs}
|
|
51210
|
+
local callbackTuple = {modCallback, priority, method, optionalArgs}
|
|
51107
51211
|
local constructor = target.constructor
|
|
51108
51212
|
if constructor == nil then
|
|
51109
51213
|
local tstlClassName = getTSTLClassName(nil, target) or "Unknown"
|
|
@@ -51116,12 +51220,12 @@ function ____exports.Callback(self, modCallback, ...)
|
|
|
51116
51220
|
callbackTuples[#callbackTuples + 1] = callbackTuple
|
|
51117
51221
|
end
|
|
51118
51222
|
end
|
|
51119
|
-
function ____exports.
|
|
51223
|
+
function ____exports.PriorityCallbackCustom(self, modCallbackCustom, priority, ...)
|
|
51120
51224
|
local optionalArgs = {...}
|
|
51121
51225
|
return function(____, target, propertyKey, _descriptor)
|
|
51122
51226
|
local methodName = propertyKey
|
|
51123
51227
|
local method = target[methodName]
|
|
51124
|
-
local callbackTuple = {modCallbackCustom, method, optionalArgs}
|
|
51228
|
+
local callbackTuple = {modCallbackCustom, priority, method, optionalArgs}
|
|
51125
51229
|
local constructor = target.constructor
|
|
51126
51230
|
if constructor == nil then
|
|
51127
51231
|
local tstlClassName = getTSTLClassName(nil, target) or "Unknown"
|
|
@@ -51134,6 +51238,12 @@ function ____exports.CallbackCustom(self, modCallbackCustom, ...)
|
|
|
51134
51238
|
callbackTuples[#callbackTuples + 1] = callbackTuple
|
|
51135
51239
|
end
|
|
51136
51240
|
end
|
|
51241
|
+
function ____exports.Callback(self, modCallback, ...)
|
|
51242
|
+
return ____exports.PriorityCallback(nil, modCallback, CallbackPriority.DEFAULT, ...)
|
|
51243
|
+
end
|
|
51244
|
+
function ____exports.CallbackCustom(self, modCallbackCustom, ...)
|
|
51245
|
+
return ____exports.PriorityCallbackCustom(nil, modCallbackCustom, CallbackPriority.DEFAULT, ...)
|
|
51246
|
+
end
|
|
51137
51247
|
return ____exports
|
|
51138
51248
|
end,
|
|
51139
51249
|
["src.functions.globals"] = function(...)
|