isaacscript-common 18.3.0 → 18.3.1
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.d.ts +25 -20
- package/dist/isaacscript-common.lua +291 -319
- package/dist/src/classes/ModFeature.d.ts +2 -2
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/ModFeature.lua +18 -17
- package/dist/src/classes/ModUpgradedBase.d.ts.map +1 -1
- package/dist/src/classes/ModUpgradedBase.lua +10 -10
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
- package/dist/src/classes/callbacks/InputActionFilter.lua +1 -1
- package/dist/src/classes/callbacks/InputActionPlayer.lua +1 -1
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +1 -1
- package/dist/src/classes/callbacks/PostBombExploded.lua +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +2 -2
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +19 -21
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +1 -1
- package/dist/src/classes/callbacks/PostDoorRender.lua +1 -1
- package/dist/src/classes/callbacks/PostDoorUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +1 -1
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.lua +2 -2
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCInitFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNewRoomEarly.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostPitRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPitUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeType.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +19 -21
- package/dist/src/classes/callbacks/PostPlayerInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPoopRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPoopUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPurchase.lua +1 -1
- package/dist/src/classes/callbacks/PostRockRender.lua +1 -1
- package/dist/src/classes/callbacks/PostRockUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +2 -2
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.lua +4 -8
- package/dist/src/classes/callbacks/PostSlotCollision.lua +1 -1
- package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSlotDestroyed.lua +2 -2
- package/dist/src/classes/callbacks/PostSpikesRender.lua +1 -1
- package/dist/src/classes/callbacks/PostSpikesUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostTNTRender.lua +1 -1
- package/dist/src/classes/callbacks/PostTNTUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +1 -1
- package/dist/src/classes/callbacks/PostTransformation.lua +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.lua +5 -11
- package/dist/src/classes/callbacks/PreBerserkDeath.lua +1 -1
- package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreGetPedestal.lua +1 -1
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +2 -2
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +2 -2
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +5 -5
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +2 -2
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +4 -3
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +8 -3
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +16 -21
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +2 -2
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +2 -2
- package/dist/src/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
- package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
- package/dist/src/classes/features/other/CharacterStats.lua +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +1 -1
- package/dist/src/classes/features/other/CustomHotkeys.lua +1 -1
- package/dist/src/classes/features/other/CustomItemPools.lua +1 -1
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomPickups.lua +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +2 -2
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +2 -2
- package/dist/src/classes/features/other/DisableAllSound.lua +1 -1
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.lua +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +17 -16
- package/dist/src/classes/features/other/FadeInRemover.lua +1 -1
- package/dist/src/classes/features/other/FastReset.lua +1 -1
- package/dist/src/classes/features/other/ModdedElementDetection.lua +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.lua +1 -1
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +2 -2
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +1 -1
- package/dist/src/classes/features/other/PlayerInventory.lua +1 -1
- package/dist/src/classes/features/other/PonyDetection.lua +1 -1
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.lua +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
- package/dist/src/classes/features/other/RoomClearFrame.lua +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +1 -1
- package/dist/src/classes/features/other/RunInNFrames.lua +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +1 -1
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +2 -2
- package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/StageHistory.lua +1 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
- package/dist/src/classes/private/CustomCallback.d.ts +2 -2
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/classes/private/CustomCallback.lua +7 -10
- package/dist/src/functions/array.d.ts +5 -1
- package/dist/src/functions/array.d.ts.map +1 -1
- package/dist/src/functions/array.lua +17 -8
- package/dist/src/functions/decorators.d.ts.map +1 -1
- package/dist/src/functions/decorators.lua +12 -22
- package/dist/src/functions/logMisc.d.ts +1 -0
- package/dist/src/functions/logMisc.d.ts.map +1 -1
- package/dist/src/functions/logMisc.lua +2 -1
- package/dist/src/types/ModUpgraded.d.ts +1 -1
- package/dist/src/types/ModUpgraded.d.ts.map +1 -1
- package/dist/src/types/private/CallbackTuple.d.ts +17 -8
- package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/ModFeature.ts +43 -21
- package/src/classes/ModUpgradedBase.ts +18 -10
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +1 -1
- package/src/classes/callbacks/EntityTakeDmgPlayer.ts +2 -1
- package/src/classes/callbacks/InputActionFilter.ts +1 -1
- package/src/classes/callbacks/InputActionPlayer.ts +1 -1
- package/src/classes/callbacks/PostAmbushFinished.ts +1 -1
- package/src/classes/callbacks/PostAmbushStarted.ts +1 -1
- package/src/classes/callbacks/PostBombExploded.ts +1 -1
- package/src/classes/callbacks/PostBombInitLate.ts +1 -1
- package/src/classes/callbacks/PostBoneSwing.ts +1 -1
- package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
- package/src/classes/callbacks/PostCursedTeleport.ts +52 -60
- package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
- package/src/classes/callbacks/PostDoorRender.ts +1 -1
- package/src/classes/callbacks/PostDoorUpdate.ts +1 -1
- package/src/classes/callbacks/PostEffectInitLate.ts +1 -1
- package/src/classes/callbacks/PostEffectStateChanged.ts +1 -1
- package/src/classes/callbacks/PostFamiliarInitLate.ts +1 -1
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +1 -1
- package/src/classes/callbacks/PostGreedModeWave.ts +1 -1
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +1 -1
- package/src/classes/callbacks/PostItemDischarge.ts +3 -2
- package/src/classes/callbacks/PostKnifeInitLate.ts +1 -1
- package/src/classes/callbacks/PostLaserInitLate.ts +1 -1
- package/src/classes/callbacks/PostNPCDeathFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCInitFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCInitLate.ts +1 -1
- package/src/classes/callbacks/PostNPCRenderFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +1 -1
- package/src/classes/callbacks/PostNewRoomEarly.ts +2 -2
- package/src/classes/callbacks/PostPickupCollect.ts +1 -1
- package/src/classes/callbacks/PostPickupInitFirst.ts +1 -1
- package/src/classes/callbacks/PostPickupInitLate.ts +1 -1
- package/src/classes/callbacks/PostPickupStateChanged.ts +1 -1
- package/src/classes/callbacks/PostPitRender.ts +1 -1
- package/src/classes/callbacks/PostPitUpdate.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeStat.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +39 -48
- package/src/classes/callbacks/PostPlayerInitFirst.ts +2 -2
- package/src/classes/callbacks/PostPlayerInitLate.ts +1 -1
- package/src/classes/callbacks/PostPoopRender.ts +1 -1
- package/src/classes/callbacks/PostPoopUpdate.ts +1 -1
- package/src/classes/callbacks/PostPressurePlateRender.ts +1 -1
- package/src/classes/callbacks/PostPressurePlateUpdate.ts +1 -1
- package/src/classes/callbacks/PostProjectileInitLate.ts +1 -1
- package/src/classes/callbacks/PostPurchase.ts +1 -1
- package/src/classes/callbacks/PostRockRender.ts +1 -1
- package/src/classes/callbacks/PostRockUpdate.ts +1 -1
- package/src/classes/callbacks/PostRoomClearChanged.ts +2 -2
- package/src/classes/callbacks/PostSacrifice.ts +5 -20
- package/src/classes/callbacks/PostSlotCollision.ts +1 -1
- package/src/classes/callbacks/PostSlotDestroyed.ts +3 -2
- package/src/classes/callbacks/PostSpikesRender.ts +1 -1
- package/src/classes/callbacks/PostSpikesUpdate.ts +1 -1
- package/src/classes/callbacks/PostTNTRender.ts +1 -1
- package/src/classes/callbacks/PostTNTUpdate.ts +1 -1
- package/src/classes/callbacks/PostTearInitLate.ts +1 -1
- package/src/classes/callbacks/PostTearInitVeryLate.ts +1 -1
- package/src/classes/callbacks/PostTransformation.ts +1 -1
- package/src/classes/callbacks/PostTrinketBreak.ts +4 -18
- package/src/classes/callbacks/PreBerserkDeath.ts +1 -1
- package/src/classes/callbacks/PreGetPedestal.ts +2 -1
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +1 -1
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +1 -1
- package/src/classes/callbacks/PreNewLevel.ts +1 -1
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +5 -3
- package/src/classes/features/callbackLogic/CustomRevive.ts +19 -18
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +6 -2
- package/src/classes/features/callbackLogic/FlipDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +13 -5
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +3 -2
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +8 -5
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +67 -71
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +10 -5
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +2 -1
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +3 -2
- package/src/classes/features/other/CharacterHealthConversion.ts +3 -2
- package/src/classes/features/other/CharacterStats.ts +1 -1
- package/src/classes/features/other/CollectibleItemPoolType.ts +2 -1
- package/src/classes/features/other/CustomHotkeys.ts +1 -1
- package/src/classes/features/other/CustomItemPools.ts +1 -1
- package/src/classes/features/other/CustomPickups.ts +3 -2
- package/src/classes/features/other/CustomStages.ts +7 -6
- package/src/classes/features/other/CustomTrapdoors.ts +4 -6
- package/src/classes/features/other/DisableAllSound.ts +1 -1
- package/src/classes/features/other/DisableInputs.ts +6 -3
- package/src/classes/features/other/ExtraConsoleCommands.ts +32 -31
- package/src/classes/features/other/FadeInRemover.ts +1 -1
- package/src/classes/features/other/FastReset.ts +1 -1
- package/src/classes/features/other/ModdedElementDetection.ts +1 -1
- package/src/classes/features/other/NoSirenSteal.ts +2 -1
- package/src/classes/features/other/Pause.ts +3 -2
- package/src/classes/features/other/PersistentEntities.ts +2 -2
- package/src/classes/features/other/PickupIndexCreation.ts +3 -2
- package/src/classes/features/other/PlayerInventory.ts +2 -2
- package/src/classes/features/other/PonyDetection.ts +1 -1
- package/src/classes/features/other/PressInput.ts +2 -1
- package/src/classes/features/other/PreventChildEntities.ts +1 -1
- package/src/classes/features/other/PreventCollectibleRotation.ts +4 -2
- package/src/classes/features/other/PreventGridEntityRespawn.ts +3 -2
- package/src/classes/features/other/RoomClearFrame.ts +1 -1
- package/src/classes/features/other/RoomHistory.ts +1 -1
- package/src/classes/features/other/RunInNFrames.ts +2 -2
- package/src/classes/features/other/RunNextRoom.ts +1 -1
- package/src/classes/features/other/SaveDataManager.ts +6 -5
- package/src/classes/features/other/StageHistory.ts +1 -4
- package/src/classes/features/other/TaintedLazarusPlayers.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +1 -1
- package/src/classes/private/CustomCallback.ts +19 -15
- package/src/functions/array.ts +14 -5
- package/src/functions/decorators.ts +14 -20
- package/src/functions/logMisc.ts +4 -1
- package/src/types/ModUpgraded.ts +1 -1
- package/src/types/private/CallbackTuple.ts +17 -8
- package/dist/src/types/private/AllButFirst.d.ts +0 -5
- package/dist/src/types/private/AllButFirst.d.ts.map +0 -1
- package/dist/src/types/private/AllButFirst.lua +0 -2
- package/src/types/private/AllButFirst.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 18.3.
|
|
3
|
+
isaacscript-common 18.3.1
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -15408,7 +15408,11 @@ local validateInterfaceMatchesEnum = ____utils.validateInterfaceMatchesEnum
|
|
|
15408
15408
|
validateInterfaceMatchesEnum(nil)
|
|
15409
15409
|
return ____exports
|
|
15410
15410
|
end,
|
|
15411
|
-
["src.types.
|
|
15411
|
+
["src.types.AllButFirst"] = function(...)
|
|
15412
|
+
local ____exports = {}
|
|
15413
|
+
return ____exports
|
|
15414
|
+
end,
|
|
15415
|
+
["src.types.AnyFunction"] = function(...)
|
|
15412
15416
|
local ____exports = {}
|
|
15413
15417
|
return ____exports
|
|
15414
15418
|
end,
|
|
@@ -16631,7 +16635,10 @@ function ____exports.getRandomArrayElementAndRemove(self, array, seedOrRNG, exce
|
|
|
16631
16635
|
____exports.arrayRemoveInPlace(nil, array, randomArrayElement)
|
|
16632
16636
|
return randomArrayElement
|
|
16633
16637
|
end
|
|
16634
|
-
function ____exports.isArray(self, object)
|
|
16638
|
+
function ____exports.isArray(self, object, ensureContiguousValues)
|
|
16639
|
+
if ensureContiguousValues == nil then
|
|
16640
|
+
ensureContiguousValues = true
|
|
16641
|
+
end
|
|
16635
16642
|
if not isTable(nil, object) then
|
|
16636
16643
|
return false
|
|
16637
16644
|
end
|
|
@@ -16650,14 +16657,16 @@ function ____exports.isArray(self, object)
|
|
|
16650
16657
|
if not hasAllNumberKeys then
|
|
16651
16658
|
return false
|
|
16652
16659
|
end
|
|
16653
|
-
|
|
16654
|
-
|
|
16655
|
-
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16660
|
+
if ensureContiguousValues then
|
|
16661
|
+
do
|
|
16662
|
+
local i = 1
|
|
16663
|
+
while i <= #keys do
|
|
16664
|
+
local element = object[i]
|
|
16665
|
+
if element == nil then
|
|
16666
|
+
return false
|
|
16667
|
+
end
|
|
16668
|
+
i = i + 1
|
|
16659
16669
|
end
|
|
16660
|
-
i = i + 1
|
|
16661
16670
|
end
|
|
16662
16671
|
end
|
|
16663
16672
|
return true
|
|
@@ -17276,7 +17285,6 @@ local ____lualib = require("lualib_bundle")
|
|
|
17276
17285
|
local __TS__Class = ____lualib.__TS__Class
|
|
17277
17286
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
17278
17287
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
17279
|
-
local __TS__ArraySlice = ____lualib.__TS__ArraySlice
|
|
17280
17288
|
local __TS__ArrayFindIndex = ____lualib.__TS__ArrayFindIndex
|
|
17281
17289
|
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
17282
17290
|
local ____exports = {}
|
|
@@ -17291,13 +17299,10 @@ function CustomCallback.prototype.____constructor(self, ...)
|
|
|
17291
17299
|
self.subscriptions = {}
|
|
17292
17300
|
self.fire = function(____, ...)
|
|
17293
17301
|
local fireArgs = {...}
|
|
17294
|
-
for ____,
|
|
17295
|
-
local
|
|
17296
|
-
local optionalArgsArray = __TS__ArraySlice(____value, 1)
|
|
17297
|
-
local optionalArgs = optionalArgsArray
|
|
17302
|
+
for ____, subscription in ipairs(self.subscriptions) do
|
|
17303
|
+
local callbackFunc, optionalArgs = table.unpack(subscription)
|
|
17298
17304
|
if self:shouldFire(fireArgs, optionalArgs) then
|
|
17299
|
-
local
|
|
17300
|
-
local value = callbackCasted(
|
|
17305
|
+
local value = callbackFunc(
|
|
17301
17306
|
nil,
|
|
17302
17307
|
__TS__Spread(fireArgs)
|
|
17303
17308
|
)
|
|
@@ -17310,10 +17315,11 @@ function CustomCallback.prototype.____constructor(self, ...)
|
|
|
17310
17315
|
end
|
|
17311
17316
|
self.shouldFire = function() return true end
|
|
17312
17317
|
end
|
|
17313
|
-
function CustomCallback.prototype.addSubscriber(self, ...)
|
|
17314
|
-
local
|
|
17318
|
+
function CustomCallback.prototype.addSubscriber(self, callbackFunc, ...)
|
|
17319
|
+
local optionalArgs = {...}
|
|
17320
|
+
local subscription = {callbackFunc, optionalArgs}
|
|
17315
17321
|
local ____self_subscriptions_0 = self.subscriptions
|
|
17316
|
-
____self_subscriptions_0[#____self_subscriptions_0 + 1] =
|
|
17322
|
+
____self_subscriptions_0[#____self_subscriptions_0 + 1] = subscription
|
|
17317
17323
|
end
|
|
17318
17324
|
function CustomCallback.prototype.removeSubscriber(self, callback)
|
|
17319
17325
|
local subscriptionIndexMatchingCallback = __TS__ArrayFindIndex(
|
|
@@ -17354,7 +17360,7 @@ function EntityTakeDmgFilter.prototype.____constructor(self)
|
|
|
17354
17360
|
source,
|
|
17355
17361
|
countdownFrames
|
|
17356
17362
|
) end
|
|
17357
|
-
self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG,
|
|
17363
|
+
self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, self.entityTakeDmg}}
|
|
17358
17364
|
end
|
|
17359
17365
|
return ____exports
|
|
17360
17366
|
end,
|
|
@@ -17390,7 +17396,7 @@ function EntityTakeDmgPlayer.prototype.____constructor(self)
|
|
|
17390
17396
|
countdownFrames
|
|
17391
17397
|
)
|
|
17392
17398
|
end
|
|
17393
|
-
self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG,
|
|
17399
|
+
self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, self.entityTakeDmgPlayer, {EntityType.PLAYER}}}
|
|
17394
17400
|
end
|
|
17395
17401
|
return ____exports
|
|
17396
17402
|
end,
|
|
@@ -17415,7 +17421,7 @@ function InputActionFilter.prototype.____constructor(self)
|
|
|
17415
17421
|
return (callbackInputHook == nil or callbackInputHook == inputHook) and (callbackButtonAction == nil or callbackButtonAction == buttonAction)
|
|
17416
17422
|
end
|
|
17417
17423
|
self.inputAction = function(____, entity, inputHook, buttonAction) return self:fire(entity, inputHook, buttonAction) end
|
|
17418
|
-
self.callbacksUsed = {{ModCallback.INPUT_ACTION,
|
|
17424
|
+
self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.inputAction}}
|
|
17419
17425
|
end
|
|
17420
17426
|
return ____exports
|
|
17421
17427
|
end,
|
|
@@ -17450,7 +17456,7 @@ function InputActionPlayer.prototype.____constructor(self)
|
|
|
17450
17456
|
end
|
|
17451
17457
|
return self:fire(player, inputHook, buttonAction)
|
|
17452
17458
|
end
|
|
17453
|
-
self.callbacksUsed = {{ModCallback.INPUT_ACTION,
|
|
17459
|
+
self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.inputAction}}
|
|
17454
17460
|
end
|
|
17455
17461
|
return ____exports
|
|
17456
17462
|
end,
|
|
@@ -17526,7 +17532,7 @@ function PostAmbushFinished.prototype.____constructor(self)
|
|
|
17526
17532
|
self:fire(ambushType)
|
|
17527
17533
|
end
|
|
17528
17534
|
end
|
|
17529
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
17535
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
17530
17536
|
end
|
|
17531
17537
|
return ____exports
|
|
17532
17538
|
end,
|
|
@@ -17568,7 +17574,7 @@ function PostAmbushStarted.prototype.____constructor(self)
|
|
|
17568
17574
|
self:fire(ambushType)
|
|
17569
17575
|
end
|
|
17570
17576
|
end
|
|
17571
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
17577
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
17572
17578
|
end
|
|
17573
17579
|
return ____exports
|
|
17574
17580
|
end,
|
|
@@ -17597,7 +17603,7 @@ function PostBombExploded.prototype.____constructor(self)
|
|
|
17597
17603
|
self:fire(bomb)
|
|
17598
17604
|
end
|
|
17599
17605
|
end
|
|
17600
|
-
self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE,
|
|
17606
|
+
self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, self.postBombUpdate}}
|
|
17601
17607
|
end
|
|
17602
17608
|
return ____exports
|
|
17603
17609
|
end,
|
|
@@ -17629,7 +17635,7 @@ function PostBombInitLate.prototype.____constructor(self)
|
|
|
17629
17635
|
self:fire(bomb)
|
|
17630
17636
|
end
|
|
17631
17637
|
end
|
|
17632
|
-
self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE,
|
|
17638
|
+
self.callbacksUsed = {{ModCallback.POST_BOMB_UPDATE, self.postBombUpdate}}
|
|
17633
17639
|
end
|
|
17634
17640
|
return ____exports
|
|
17635
17641
|
end,
|
|
@@ -17659,7 +17665,7 @@ function PostBoneSwing.prototype.____constructor(self)
|
|
|
17659
17665
|
self:postKnifeRenderBoneClub(knife)
|
|
17660
17666
|
end
|
|
17661
17667
|
end
|
|
17662
|
-
self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER,
|
|
17668
|
+
self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER, self.postKnifeRender}}
|
|
17663
17669
|
end
|
|
17664
17670
|
function PostBoneSwing.prototype.postKnifeRenderBoneClub(self, knife)
|
|
17665
17671
|
local sprite = knife:GetSprite()
|
|
@@ -17715,7 +17721,7 @@ function PostCollectibleEmpty.prototype.____constructor(self)
|
|
|
17715
17721
|
self:collectibleTypeChanged(collectible, oldCollectibleType)
|
|
17716
17722
|
end
|
|
17717
17723
|
end
|
|
17718
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE,
|
|
17724
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE, self.postPickupUpdateCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
17719
17725
|
end
|
|
17720
17726
|
function PostCollectibleEmpty.prototype.collectibleTypeChanged(self, collectible, oldCollectibleType)
|
|
17721
17727
|
if collectible.SubType == CollectibleType.NULL then
|
|
@@ -21013,7 +21019,7 @@ function PostCollectibleInitFirst.prototype.____constructor(self)
|
|
|
21013
21019
|
self.v.run.seenCollectibles:add(collectibleIndex)
|
|
21014
21020
|
self:fire(collectible)
|
|
21015
21021
|
end
|
|
21016
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT,
|
|
21022
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
21017
21023
|
end
|
|
21018
21024
|
return ____exports
|
|
21019
21025
|
end,
|
|
@@ -22040,13 +22046,14 @@ local playerIsTeleportingFromCursedTeleport
|
|
|
22040
22046
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
22041
22047
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
22042
22048
|
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
22043
|
-
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
22044
22049
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
22045
22050
|
local PlayerVariant = ____isaac_2Dtypescript_2Ddefinitions.PlayerVariant
|
|
22046
22051
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
22047
22052
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
22048
22053
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
22049
22054
|
local game = ____cachedClasses.game
|
|
22055
|
+
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
22056
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
22050
22057
|
local ____flag = require("src.functions.flag")
|
|
22051
22058
|
local hasFlag = ____flag.hasFlag
|
|
22052
22059
|
local ____playerDataStructures = require("src.functions.playerDataStructures")
|
|
@@ -22087,11 +22094,6 @@ function PostCursedTeleport.prototype.____constructor(self)
|
|
|
22087
22094
|
level = {numSacrifices = 0}
|
|
22088
22095
|
}
|
|
22089
22096
|
self.shouldFire = shouldFirePlayer
|
|
22090
|
-
self.entityTakeDmgPlayer = function(____, entity, _amount, damageFlags, _source, _countdownFrames)
|
|
22091
|
-
self:incrementNumSacrifices(damageFlags)
|
|
22092
|
-
self:setDamageFrame(entity, damageFlags)
|
|
22093
|
-
return nil
|
|
22094
|
-
end
|
|
22095
22097
|
self.postPlayerRenderPlayer = function(____, player, _renderOffset)
|
|
22096
22098
|
local trackingArray = mapGetPlayer(nil, self.v.run.playersDamageFrameMap, player)
|
|
22097
22099
|
if trackingArray == nil then
|
|
@@ -22109,14 +22111,25 @@ function PostCursedTeleport.prototype.____constructor(self)
|
|
|
22109
22111
|
mapSetPlayer(nil, self.v.run.playersDamageFrameMap, player, newTrackingArray)
|
|
22110
22112
|
self:fire(player)
|
|
22111
22113
|
end
|
|
22112
|
-
self.
|
|
22114
|
+
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
22115
|
+
self:incrementNumSacrifices(damageFlags)
|
|
22116
|
+
self:setDamageFrame(player, damageFlags)
|
|
22117
|
+
return nil
|
|
22118
|
+
end
|
|
22119
|
+
self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER, self.postPlayerRenderPlayer, {PlayerVariant.PLAYER}}}
|
|
22120
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}}
|
|
22113
22121
|
end
|
|
22114
|
-
function PostCursedTeleport.prototype.
|
|
22115
|
-
local
|
|
22116
|
-
local
|
|
22117
|
-
|
|
22118
|
-
|
|
22122
|
+
function PostCursedTeleport.prototype.incrementNumSacrifices(self, damageFlags)
|
|
22123
|
+
local room = game:GetRoom()
|
|
22124
|
+
local roomType = room:GetType()
|
|
22125
|
+
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
22126
|
+
if roomType == RoomType.SACRIFICE and isSpikeDamage then
|
|
22127
|
+
local ____self_v_level_0, ____numSacrifices_1 = self.v.level, "numSacrifices"
|
|
22128
|
+
____self_v_level_0[____numSacrifices_1] = ____self_v_level_0[____numSacrifices_1] + 1
|
|
22119
22129
|
end
|
|
22130
|
+
end
|
|
22131
|
+
function PostCursedTeleport.prototype.setDamageFrame(self, player, damageFlags)
|
|
22132
|
+
local gameFrameCount = game:GetFrameCount()
|
|
22120
22133
|
local trackingArray = mapGetPlayer(nil, self.v.run.playersDamageFrameMap, player)
|
|
22121
22134
|
if trackingArray ~= nil then
|
|
22122
22135
|
local lastDamageFrame, callbackFiredOnThisFrame = table.unpack(trackingArray)
|
|
@@ -22136,15 +22149,6 @@ function PostCursedTeleport.prototype.isPotentialNaturalTeleportFromSacrificeRoo
|
|
|
22136
22149
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
22137
22150
|
return roomType == RoomType.SACRIFICE and isSpikeDamage and (self.v.level.numSacrifices == 6 or self.v.level.numSacrifices >= 12)
|
|
22138
22151
|
end
|
|
22139
|
-
function PostCursedTeleport.prototype.incrementNumSacrifices(self, damageFlags)
|
|
22140
|
-
local room = game:GetRoom()
|
|
22141
|
-
local roomType = room:GetType()
|
|
22142
|
-
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
22143
|
-
if roomType == RoomType.SACRIFICE and isSpikeDamage then
|
|
22144
|
-
local ____self_v_level_0, ____numSacrifices_1 = self.v.level, "numSacrifices"
|
|
22145
|
-
____self_v_level_0[____numSacrifices_1] = ____self_v_level_0[____numSacrifices_1] + 1
|
|
22146
|
-
end
|
|
22147
|
-
end
|
|
22148
22152
|
return ____exports
|
|
22149
22153
|
end,
|
|
22150
22154
|
["src.classes.callbacks.PostCustomRevive"] = function(...)
|
|
@@ -22316,7 +22320,7 @@ function PostDiceRoomActivated.prototype.____constructor(self)
|
|
|
22316
22320
|
self:fire(closestPlayer, effect.SubType)
|
|
22317
22321
|
end
|
|
22318
22322
|
end
|
|
22319
|
-
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE,
|
|
22323
|
+
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE, self.postEffectUpdateDiceFloor, {EffectVariant.DICE_FLOOR}}}
|
|
22320
22324
|
end
|
|
22321
22325
|
return ____exports
|
|
22322
22326
|
end,
|
|
@@ -22345,7 +22349,7 @@ function PostDoorRender.prototype.____constructor(self)
|
|
|
22345
22349
|
self:fire(door)
|
|
22346
22350
|
end
|
|
22347
22351
|
end
|
|
22348
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
22352
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
22349
22353
|
end
|
|
22350
22354
|
return ____exports
|
|
22351
22355
|
end,
|
|
@@ -22374,7 +22378,7 @@ function PostDoorUpdate.prototype.____constructor(self)
|
|
|
22374
22378
|
self:fire(door)
|
|
22375
22379
|
end
|
|
22376
22380
|
end
|
|
22377
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
22381
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
22378
22382
|
end
|
|
22379
22383
|
return ____exports
|
|
22380
22384
|
end,
|
|
@@ -22406,7 +22410,7 @@ function PostEffectInitLate.prototype.____constructor(self)
|
|
|
22406
22410
|
self:fire(effect)
|
|
22407
22411
|
end
|
|
22408
22412
|
end
|
|
22409
|
-
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE,
|
|
22413
|
+
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE, self.postEffectUpdate}}
|
|
22410
22414
|
end
|
|
22411
22415
|
return ____exports
|
|
22412
22416
|
end,
|
|
@@ -22444,7 +22448,7 @@ function PostEffectStateChanged.prototype.____constructor(self)
|
|
|
22444
22448
|
self:fire(effect, previousState, currentState)
|
|
22445
22449
|
end
|
|
22446
22450
|
end
|
|
22447
|
-
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE,
|
|
22451
|
+
self.callbacksUsed = {{ModCallback.POST_EFFECT_UPDATE, self.postEffectUpdate}}
|
|
22448
22452
|
end
|
|
22449
22453
|
return ____exports
|
|
22450
22454
|
end,
|
|
@@ -22495,7 +22499,7 @@ function PostFamiliarInitLate.prototype.____constructor(self)
|
|
|
22495
22499
|
self:fire(familiar)
|
|
22496
22500
|
end
|
|
22497
22501
|
end
|
|
22498
|
-
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_UPDATE,
|
|
22502
|
+
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_UPDATE, self.postFamiliarUpdate}}
|
|
22499
22503
|
end
|
|
22500
22504
|
return ____exports
|
|
22501
22505
|
end,
|
|
@@ -22533,7 +22537,7 @@ function PostFamiliarStateChanged.prototype.____constructor(self)
|
|
|
22533
22537
|
self:fire(familiar, previousState, currentState)
|
|
22534
22538
|
end
|
|
22535
22539
|
end
|
|
22536
|
-
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_UPDATE,
|
|
22540
|
+
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_UPDATE, self.postFamiliarUpdate}}
|
|
22537
22541
|
end
|
|
22538
22542
|
return ____exports
|
|
22539
22543
|
end,
|
|
@@ -23460,7 +23464,7 @@ function PostGreedModeWave.prototype.____constructor(self)
|
|
|
23460
23464
|
self:fire(oldWave, newWave)
|
|
23461
23465
|
end
|
|
23462
23466
|
end
|
|
23463
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
23467
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
23464
23468
|
end
|
|
23465
23469
|
return ____exports
|
|
23466
23470
|
end,
|
|
@@ -23818,7 +23822,7 @@ function PostHolyMantleRemoved.prototype.____constructor(self)
|
|
|
23818
23822
|
self:fire(player, oldNumHolyMantles, newNumHolyMantles)
|
|
23819
23823
|
end
|
|
23820
23824
|
end
|
|
23821
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
23825
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
23822
23826
|
end
|
|
23823
23827
|
return ____exports
|
|
23824
23828
|
end,
|
|
@@ -24728,8 +24732,8 @@ function PostItemDischarge.prototype.____constructor(self)
|
|
|
24728
24732
|
::__continue9::
|
|
24729
24733
|
end
|
|
24730
24734
|
end
|
|
24731
|
-
self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION,
|
|
24732
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
24735
|
+
self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION, self.preNPCCollisionSucker, {EntityType.SUCKER}}}
|
|
24736
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
24733
24737
|
end
|
|
24734
24738
|
function PostItemDischarge.prototype.preNPCCollisionBulb(self, _npc, collider)
|
|
24735
24739
|
self:checkPlayerCollidedWithBulb(collider)
|
|
@@ -24802,7 +24806,7 @@ function PostKnifeInitLate.prototype.____constructor(self)
|
|
|
24802
24806
|
self:fire(knife)
|
|
24803
24807
|
end
|
|
24804
24808
|
end
|
|
24805
|
-
self.callbacksUsed = {{ModCallback.POST_KNIFE_UPDATE,
|
|
24809
|
+
self.callbacksUsed = {{ModCallback.POST_KNIFE_UPDATE, self.postKnifeUpdate}}
|
|
24806
24810
|
end
|
|
24807
24811
|
return ____exports
|
|
24808
24812
|
end,
|
|
@@ -24834,7 +24838,7 @@ function PostLaserInitLate.prototype.____constructor(self)
|
|
|
24834
24838
|
self:fire(laser)
|
|
24835
24839
|
end
|
|
24836
24840
|
end
|
|
24837
|
-
self.callbacksUsed = {{ModCallback.POST_LASER_UPDATE,
|
|
24841
|
+
self.callbacksUsed = {{ModCallback.POST_LASER_UPDATE, self.postLaserUpdate}}
|
|
24838
24842
|
end
|
|
24839
24843
|
return ____exports
|
|
24840
24844
|
end,
|
|
@@ -27487,7 +27491,7 @@ function ____exports.logFlags(self, flags, flagEnum, description)
|
|
|
27487
27491
|
end
|
|
27488
27492
|
end
|
|
27489
27493
|
function ____exports.logArray(self, array)
|
|
27490
|
-
if not isArray(nil, array) then
|
|
27494
|
+
if not isArray(nil, array, false) then
|
|
27491
27495
|
log(nil, "Tried to log an array, but the given object was not an array.")
|
|
27492
27496
|
return
|
|
27493
27497
|
end
|
|
@@ -27938,7 +27942,7 @@ function PostNewRoomEarly.prototype.____constructor(self)
|
|
|
27938
27942
|
self:checkRoomChanged()
|
|
27939
27943
|
return nil
|
|
27940
27944
|
end
|
|
27941
|
-
self.callbacksUsed = {{ModCallback.POST_NEW_ROOM,
|
|
27945
|
+
self.callbacksUsed = {{ModCallback.POST_NEW_ROOM, self.postNewRoom}, {ModCallback.PRE_ENTITY_SPAWN, self.preEntitySpawn}}
|
|
27942
27946
|
end
|
|
27943
27947
|
function PostNewRoomEarly.prototype.checkRoomChanged(self)
|
|
27944
27948
|
if self:isNewRoom() then
|
|
@@ -28013,7 +28017,7 @@ function PostNPCDeathFilter.prototype.____constructor(self)
|
|
|
28013
28017
|
self.postNPCDeath = function(____, npc)
|
|
28014
28018
|
self:fire(npc)
|
|
28015
28019
|
end
|
|
28016
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_DEATH,
|
|
28020
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_DEATH, self.postNPCDeath}}
|
|
28017
28021
|
end
|
|
28018
28022
|
return ____exports
|
|
28019
28023
|
end,
|
|
@@ -28038,7 +28042,7 @@ function PostNPCInitFilter.prototype.____constructor(self)
|
|
|
28038
28042
|
self.postNPCInit = function(____, npc)
|
|
28039
28043
|
self:fire(npc)
|
|
28040
28044
|
end
|
|
28041
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_INIT,
|
|
28045
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_INIT, self.postNPCInit}}
|
|
28042
28046
|
end
|
|
28043
28047
|
return ____exports
|
|
28044
28048
|
end,
|
|
@@ -28070,7 +28074,7 @@ function PostNPCInitLate.prototype.____constructor(self)
|
|
|
28070
28074
|
self:fire(npc)
|
|
28071
28075
|
end
|
|
28072
28076
|
end
|
|
28073
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE,
|
|
28077
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE, self.postNPCUpdate}}
|
|
28074
28078
|
end
|
|
28075
28079
|
return ____exports
|
|
28076
28080
|
end,
|
|
@@ -28095,7 +28099,7 @@ function PostNPCRenderFilter.prototype.____constructor(self)
|
|
|
28095
28099
|
self.postNPCRender = function(____, npc, renderOffset)
|
|
28096
28100
|
self:fire(npc, renderOffset)
|
|
28097
28101
|
end
|
|
28098
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_RENDER,
|
|
28102
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_RENDER, self.postNPCRender}}
|
|
28099
28103
|
end
|
|
28100
28104
|
return ____exports
|
|
28101
28105
|
end,
|
|
@@ -28133,7 +28137,7 @@ function PostNPCStateChanged.prototype.____constructor(self)
|
|
|
28133
28137
|
self:fire(npc, previousState, currentState)
|
|
28134
28138
|
end
|
|
28135
28139
|
end
|
|
28136
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE,
|
|
28140
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE, self.postNPCUpdate}}
|
|
28137
28141
|
end
|
|
28138
28142
|
return ____exports
|
|
28139
28143
|
end,
|
|
@@ -28158,7 +28162,7 @@ function PostNPCUpdateFilter.prototype.____constructor(self)
|
|
|
28158
28162
|
self.postNPCUpdate = function(____, npc)
|
|
28159
28163
|
self:fire(npc)
|
|
28160
28164
|
end
|
|
28161
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE,
|
|
28165
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_UPDATE, self.postNPCUpdate}}
|
|
28162
28166
|
end
|
|
28163
28167
|
return ____exports
|
|
28164
28168
|
end,
|
|
@@ -28220,7 +28224,7 @@ function PostPickupCollect.prototype.____constructor(self)
|
|
|
28220
28224
|
self:fire(pickup, player)
|
|
28221
28225
|
end
|
|
28222
28226
|
end
|
|
28223
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_RENDER,
|
|
28227
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_RENDER, self.postPickupRender}}
|
|
28224
28228
|
end
|
|
28225
28229
|
return ____exports
|
|
28226
28230
|
end,
|
|
@@ -28257,7 +28261,7 @@ function PostPickupInitFirst.prototype.____constructor(self)
|
|
|
28257
28261
|
self:fire(pickup)
|
|
28258
28262
|
end
|
|
28259
28263
|
end
|
|
28260
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT,
|
|
28264
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInit}}
|
|
28261
28265
|
end
|
|
28262
28266
|
return ____exports
|
|
28263
28267
|
end,
|
|
@@ -28289,7 +28293,7 @@ function PostPickupInitLate.prototype.____constructor(self)
|
|
|
28289
28293
|
self:fire(pickup)
|
|
28290
28294
|
end
|
|
28291
28295
|
end
|
|
28292
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE,
|
|
28296
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE, self.postPickupUpdate}}
|
|
28293
28297
|
end
|
|
28294
28298
|
return ____exports
|
|
28295
28299
|
end,
|
|
@@ -28327,7 +28331,7 @@ function PostPickupStateChanged.prototype.____constructor(self)
|
|
|
28327
28331
|
self:fire(pickup, previousState, currentState)
|
|
28328
28332
|
end
|
|
28329
28333
|
end
|
|
28330
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE,
|
|
28334
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_UPDATE, self.postPickupUpdate}}
|
|
28331
28335
|
end
|
|
28332
28336
|
return ____exports
|
|
28333
28337
|
end,
|
|
@@ -28704,7 +28708,7 @@ function PostPitRender.prototype.____constructor(self)
|
|
|
28704
28708
|
self:fire(pit)
|
|
28705
28709
|
end
|
|
28706
28710
|
end
|
|
28707
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
28711
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
28708
28712
|
end
|
|
28709
28713
|
return ____exports
|
|
28710
28714
|
end,
|
|
@@ -28733,7 +28737,7 @@ function PostPitUpdate.prototype.____constructor(self)
|
|
|
28733
28737
|
self:fire(pit)
|
|
28734
28738
|
end
|
|
28735
28739
|
end
|
|
28736
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
28740
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
28737
28741
|
end
|
|
28738
28742
|
return ____exports
|
|
28739
28743
|
end,
|
|
@@ -28790,7 +28794,7 @@ function PostPlayerChangeHealth.prototype.____constructor(self)
|
|
|
28790
28794
|
end
|
|
28791
28795
|
end
|
|
28792
28796
|
end
|
|
28793
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
28797
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectReordered}}
|
|
28794
28798
|
end
|
|
28795
28799
|
return ____exports
|
|
28796
28800
|
end,
|
|
@@ -28912,7 +28916,7 @@ function PostPlayerChangeStat.prototype.____constructor(self)
|
|
|
28912
28916
|
::__continue5::
|
|
28913
28917
|
end
|
|
28914
28918
|
end
|
|
28915
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
28919
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectReordered}}
|
|
28916
28920
|
end
|
|
28917
28921
|
return ____exports
|
|
28918
28922
|
end,
|
|
@@ -28952,7 +28956,7 @@ function PostPlayerChangeType.prototype.____constructor(self)
|
|
|
28952
28956
|
self:fire(player, storedCharacter, character)
|
|
28953
28957
|
end
|
|
28954
28958
|
end
|
|
28955
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
28959
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectReordered}}
|
|
28956
28960
|
end
|
|
28957
28961
|
return ____exports
|
|
28958
28962
|
end,
|
|
@@ -29218,10 +29222,11 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescri
|
|
|
29218
29222
|
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
29219
29223
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
29220
29224
|
local DamageFlagZero = ____isaac_2Dtypescript_2Ddefinitions.DamageFlagZero
|
|
29221
|
-
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
29222
29225
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
29223
29226
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
29224
29227
|
local game = ____cachedClasses.game
|
|
29228
|
+
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
29229
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
29225
29230
|
local ____playerDataStructures = require("src.functions.playerDataStructures")
|
|
29226
29231
|
local mapGetPlayer = ____playerDataStructures.mapGetPlayer
|
|
29227
29232
|
local mapSetPlayer = ____playerDataStructures.mapSetPlayer
|
|
@@ -29244,11 +29249,23 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
|
29244
29249
|
CustomCallback.prototype.____constructor(self)
|
|
29245
29250
|
self.v = {run = {playersLastDamageGameFrame = __TS__New(Map)}}
|
|
29246
29251
|
self.shouldFire = shouldFirePlayer
|
|
29247
|
-
self.
|
|
29248
|
-
|
|
29249
|
-
if player == nil then
|
|
29252
|
+
self.preUseItemBible = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
29253
|
+
if not inBossRoomOf(nil, BossID.SATAN) then
|
|
29250
29254
|
return nil
|
|
29251
29255
|
end
|
|
29256
|
+
local shouldSustainDeath = self:fire(
|
|
29257
|
+
player,
|
|
29258
|
+
0,
|
|
29259
|
+
DamageFlagZero,
|
|
29260
|
+
EntityRef(player),
|
|
29261
|
+
0
|
|
29262
|
+
)
|
|
29263
|
+
if shouldSustainDeath ~= nil then
|
|
29264
|
+
return not shouldSustainDeath
|
|
29265
|
+
end
|
|
29266
|
+
return nil
|
|
29267
|
+
end
|
|
29268
|
+
self.entityTakeDmgPlayer = function(____, player, amount, damageFlags, source, countdownFrames)
|
|
29252
29269
|
if isChildPlayer(nil, player) then
|
|
29253
29270
|
return nil
|
|
29254
29271
|
end
|
|
@@ -29279,23 +29296,8 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
|
29279
29296
|
end
|
|
29280
29297
|
return nil
|
|
29281
29298
|
end
|
|
29282
|
-
self.
|
|
29283
|
-
|
|
29284
|
-
return nil
|
|
29285
|
-
end
|
|
29286
|
-
local shouldSustainDeath = self:fire(
|
|
29287
|
-
player,
|
|
29288
|
-
0,
|
|
29289
|
-
DamageFlagZero,
|
|
29290
|
-
EntityRef(player),
|
|
29291
|
-
0
|
|
29292
|
-
)
|
|
29293
|
-
if shouldSustainDeath ~= nil then
|
|
29294
|
-
return not shouldSustainDeath
|
|
29295
|
-
end
|
|
29296
|
-
return nil
|
|
29297
|
-
end
|
|
29298
|
-
self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, {self.entityTakeDmgPlayer, EntityType.PLAYER}}, {ModCallback.PRE_USE_ITEM, {self.preUseItemBible, CollectibleType.BIBLE}}}
|
|
29299
|
+
self.callbacksUsed = {{ModCallback.PRE_USE_ITEM, self.preUseItemBible, {CollectibleType.BIBLE}}}
|
|
29300
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}}
|
|
29299
29301
|
end
|
|
29300
29302
|
return ____exports
|
|
29301
29303
|
end,
|
|
@@ -29336,7 +29338,7 @@ function PostPlayerInitFirst.prototype.____constructor(self)
|
|
|
29336
29338
|
end
|
|
29337
29339
|
self:fire(player)
|
|
29338
29340
|
end
|
|
29339
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
29341
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}, {ModCallbackCustom.POST_PLAYER_INIT_LATE, self.postPlayerInitLate}}
|
|
29340
29342
|
end
|
|
29341
29343
|
return ____exports
|
|
29342
29344
|
end,
|
|
@@ -29370,7 +29372,7 @@ function PostPlayerInitLate.prototype.____constructor(self)
|
|
|
29370
29372
|
self:fire(player)
|
|
29371
29373
|
end
|
|
29372
29374
|
end
|
|
29373
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
29375
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
29374
29376
|
end
|
|
29375
29377
|
return ____exports
|
|
29376
29378
|
end,
|
|
@@ -29443,7 +29445,7 @@ function PostPoopRender.prototype.____constructor(self)
|
|
|
29443
29445
|
self:fire(poop)
|
|
29444
29446
|
end
|
|
29445
29447
|
end
|
|
29446
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
29448
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
29447
29449
|
end
|
|
29448
29450
|
return ____exports
|
|
29449
29451
|
end,
|
|
@@ -29472,7 +29474,7 @@ function PostPoopUpdate.prototype.____constructor(self)
|
|
|
29472
29474
|
self:fire(poop)
|
|
29473
29475
|
end
|
|
29474
29476
|
end
|
|
29475
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
29477
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
29476
29478
|
end
|
|
29477
29479
|
return ____exports
|
|
29478
29480
|
end,
|
|
@@ -29501,7 +29503,7 @@ function PostPressurePlateRender.prototype.____constructor(self)
|
|
|
29501
29503
|
self:fire(pressurePlate)
|
|
29502
29504
|
end
|
|
29503
29505
|
end
|
|
29504
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
29506
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
29505
29507
|
end
|
|
29506
29508
|
return ____exports
|
|
29507
29509
|
end,
|
|
@@ -29530,7 +29532,7 @@ function PostPressurePlateUpdate.prototype.____constructor(self)
|
|
|
29530
29532
|
self:fire(pressurePlate)
|
|
29531
29533
|
end
|
|
29532
29534
|
end
|
|
29533
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
29535
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
29534
29536
|
end
|
|
29535
29537
|
return ____exports
|
|
29536
29538
|
end,
|
|
@@ -29562,7 +29564,7 @@ function PostProjectileInitLate.prototype.____constructor(self)
|
|
|
29562
29564
|
self:fire(projectile)
|
|
29563
29565
|
end
|
|
29564
29566
|
end
|
|
29565
|
-
self.callbacksUsed = {{ModCallback.POST_PROJECTILE_UPDATE,
|
|
29567
|
+
self.callbacksUsed = {{ModCallback.POST_PROJECTILE_UPDATE, self.postProjectileUpdate}}
|
|
29566
29568
|
end
|
|
29567
29569
|
return ____exports
|
|
29568
29570
|
end,
|
|
@@ -29604,7 +29606,7 @@ function PostPurchase.prototype.____constructor(self)
|
|
|
29604
29606
|
self:playerPickedUpNewItem(player)
|
|
29605
29607
|
end
|
|
29606
29608
|
end
|
|
29607
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
29609
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
29608
29610
|
end
|
|
29609
29611
|
function PostPurchase.prototype.playerPickedUpNewItem(self, player)
|
|
29610
29612
|
local pickups = getPickups(nil)
|
|
@@ -29643,7 +29645,7 @@ function PostRockRender.prototype.____constructor(self)
|
|
|
29643
29645
|
self:fire(rock)
|
|
29644
29646
|
end
|
|
29645
29647
|
end
|
|
29646
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
29648
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
29647
29649
|
end
|
|
29648
29650
|
return ____exports
|
|
29649
29651
|
end,
|
|
@@ -29672,7 +29674,7 @@ function PostRockUpdate.prototype.____constructor(self)
|
|
|
29672
29674
|
self:fire(rock)
|
|
29673
29675
|
end
|
|
29674
29676
|
end
|
|
29675
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
29677
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
29676
29678
|
end
|
|
29677
29679
|
return ____exports
|
|
29678
29680
|
end,
|
|
@@ -29714,8 +29716,8 @@ function PostRoomClearChanged.prototype.____constructor(self)
|
|
|
29714
29716
|
local roomClear = room:IsClear()
|
|
29715
29717
|
self.v.room.cleared = roomClear
|
|
29716
29718
|
end
|
|
29717
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
29718
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
29719
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
29720
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
29719
29721
|
end
|
|
29720
29722
|
return ____exports
|
|
29721
29723
|
end,
|
|
@@ -29726,11 +29728,11 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
|
29726
29728
|
local ____exports = {}
|
|
29727
29729
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
29728
29730
|
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
29729
|
-
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
29730
|
-
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
29731
29731
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
29732
29732
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
29733
29733
|
local game = ____cachedClasses.game
|
|
29734
|
+
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
29735
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
29734
29736
|
local ____flag = require("src.functions.flag")
|
|
29735
29737
|
local hasFlag = ____flag.hasFlag
|
|
29736
29738
|
local ____shouldFire = require("src.shouldFire")
|
|
@@ -29745,11 +29747,7 @@ function PostSacrifice.prototype.____constructor(self)
|
|
|
29745
29747
|
CustomCallback.prototype.____constructor(self)
|
|
29746
29748
|
self.v = {level = {numSacrifices = 0}}
|
|
29747
29749
|
self.shouldFire = shouldFirePlayer
|
|
29748
|
-
self.entityTakeDmgPlayer = function(____,
|
|
29749
|
-
local player = entity:ToPlayer()
|
|
29750
|
-
if player == nil then
|
|
29751
|
-
return nil
|
|
29752
|
-
end
|
|
29750
|
+
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
29753
29751
|
local room = game:GetRoom()
|
|
29754
29752
|
local roomType = room:GetType()
|
|
29755
29753
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
@@ -29760,7 +29758,7 @@ function PostSacrifice.prototype.____constructor(self)
|
|
|
29760
29758
|
end
|
|
29761
29759
|
return nil
|
|
29762
29760
|
end
|
|
29763
|
-
self.
|
|
29761
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}}
|
|
29764
29762
|
end
|
|
29765
29763
|
return ____exports
|
|
29766
29764
|
end,
|
|
@@ -29821,7 +29819,7 @@ function PostSlotCollision.prototype.____constructor(self)
|
|
|
29821
29819
|
end
|
|
29822
29820
|
return nil
|
|
29823
29821
|
end
|
|
29824
|
-
self.callbacksUsed = {{ModCallback.PRE_PLAYER_COLLISION,
|
|
29822
|
+
self.callbacksUsed = {{ModCallback.PRE_PLAYER_COLLISION, self.prePlayerCollision}}
|
|
29825
29823
|
end
|
|
29826
29824
|
return ____exports
|
|
29827
29825
|
end,
|
|
@@ -29890,8 +29888,8 @@ function PostSlotDestroyed.prototype.____constructor(self)
|
|
|
29890
29888
|
self.v.room.slotPrizeAnimationGameFrame:delete(ptrHash)
|
|
29891
29889
|
end
|
|
29892
29890
|
end
|
|
29893
|
-
self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE,
|
|
29894
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED,
|
|
29891
|
+
self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE, self.postEntityRemoveSlot, {EntityType.SLOT}}}
|
|
29892
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED, self.postSlotAnimationChanged}}
|
|
29895
29893
|
end
|
|
29896
29894
|
return ____exports
|
|
29897
29895
|
end,
|
|
@@ -29986,7 +29984,7 @@ function PostSpikesRender.prototype.____constructor(self)
|
|
|
29986
29984
|
self:fire(spikes)
|
|
29987
29985
|
end
|
|
29988
29986
|
end
|
|
29989
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
29987
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
29990
29988
|
end
|
|
29991
29989
|
return ____exports
|
|
29992
29990
|
end,
|
|
@@ -30015,7 +30013,7 @@ function PostSpikesUpdate.prototype.____constructor(self)
|
|
|
30015
30013
|
self:fire(spikes)
|
|
30016
30014
|
end
|
|
30017
30015
|
end
|
|
30018
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
30016
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
30019
30017
|
end
|
|
30020
30018
|
return ____exports
|
|
30021
30019
|
end,
|
|
@@ -30047,7 +30045,7 @@ function PostTearInitLate.prototype.____constructor(self)
|
|
|
30047
30045
|
self:fire(tear)
|
|
30048
30046
|
end
|
|
30049
30047
|
end
|
|
30050
|
-
self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE,
|
|
30048
|
+
self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, self.postTearUpdate}}
|
|
30051
30049
|
end
|
|
30052
30050
|
return ____exports
|
|
30053
30051
|
end,
|
|
@@ -30082,7 +30080,7 @@ function PostTearInitVeryLate.prototype.____constructor(self)
|
|
|
30082
30080
|
self:fire(tear)
|
|
30083
30081
|
end
|
|
30084
30082
|
end
|
|
30085
|
-
self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE,
|
|
30083
|
+
self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, self.postTearUpdate}}
|
|
30086
30084
|
end
|
|
30087
30085
|
return ____exports
|
|
30088
30086
|
end,
|
|
@@ -30111,7 +30109,7 @@ function PostTNTRender.prototype.____constructor(self)
|
|
|
30111
30109
|
self:fire(tnt)
|
|
30112
30110
|
end
|
|
30113
30111
|
end
|
|
30114
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
30112
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
30115
30113
|
end
|
|
30116
30114
|
return ____exports
|
|
30117
30115
|
end,
|
|
@@ -30140,7 +30138,7 @@ function PostTNTUpdate.prototype.____constructor(self)
|
|
|
30140
30138
|
self:fire(tnt)
|
|
30141
30139
|
end
|
|
30142
30140
|
end
|
|
30143
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
30141
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
30144
30142
|
end
|
|
30145
30143
|
return ____exports
|
|
30146
30144
|
end,
|
|
@@ -30192,7 +30190,7 @@ function PostTransformation.prototype.____constructor(self)
|
|
|
30192
30190
|
end
|
|
30193
30191
|
end
|
|
30194
30192
|
end
|
|
30195
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
30193
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
30196
30194
|
end
|
|
30197
30195
|
return ____exports
|
|
30198
30196
|
end,
|
|
@@ -30205,7 +30203,6 @@ local __TS__New = ____lualib.__TS__New
|
|
|
30205
30203
|
local ____exports = {}
|
|
30206
30204
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
30207
30205
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
30208
|
-
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
30209
30206
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
30210
30207
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
30211
30208
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
@@ -30230,11 +30227,7 @@ function PostTrinketBreak.prototype.____constructor(self)
|
|
|
30230
30227
|
function() return __TS__New(Map) end
|
|
30231
30228
|
)}}
|
|
30232
30229
|
self.shouldFire = shouldFireTrinketType
|
|
30233
|
-
self.entityTakeDmgPlayer = function(____,
|
|
30234
|
-
local player = entity:ToPlayer()
|
|
30235
|
-
if player == nil then
|
|
30236
|
-
return nil
|
|
30237
|
-
end
|
|
30230
|
+
self.entityTakeDmgPlayer = function(____, player, _amount, _damageFlags, _source, _countdownFrames)
|
|
30238
30231
|
local trinketMap = defaultMapGetPlayer(nil, self.v.run.playersTrinketMap, player)
|
|
30239
30232
|
for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
|
|
30240
30233
|
do
|
|
@@ -30244,16 +30237,16 @@ function PostTrinketBreak.prototype.____constructor(self)
|
|
|
30244
30237
|
oldNumTrinketsHeld = 0
|
|
30245
30238
|
end
|
|
30246
30239
|
if numTrinketsHeld >= oldNumTrinketsHeld then
|
|
30247
|
-
goto
|
|
30240
|
+
goto __continue5
|
|
30248
30241
|
end
|
|
30249
30242
|
trinketMap:set(trinketType, numTrinketsHeld)
|
|
30250
30243
|
local numTrinketsOnGround = Isaac.CountEntities(nil, EntityType.PICKUP, PickupVariant.TRINKET, trinketType)
|
|
30251
30244
|
if numTrinketsOnGround > 0 then
|
|
30252
|
-
goto
|
|
30245
|
+
goto __continue5
|
|
30253
30246
|
end
|
|
30254
30247
|
self:fire(player, trinketType)
|
|
30255
30248
|
end
|
|
30256
|
-
::
|
|
30249
|
+
::__continue5::
|
|
30257
30250
|
end
|
|
30258
30251
|
return nil
|
|
30259
30252
|
end
|
|
@@ -30264,8 +30257,7 @@ function PostTrinketBreak.prototype.____constructor(self)
|
|
|
30264
30257
|
trinketMap:set(trinketType, numTrinkets)
|
|
30265
30258
|
end
|
|
30266
30259
|
end
|
|
30267
|
-
self.
|
|
30268
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, {self.postPEffectUpdateReordered}}}
|
|
30260
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
30269
30261
|
end
|
|
30270
30262
|
return ____exports
|
|
30271
30263
|
end,
|
|
@@ -30306,7 +30298,7 @@ function PreBerserkDeath.prototype.____constructor(self)
|
|
|
30306
30298
|
self:fire(player)
|
|
30307
30299
|
end
|
|
30308
30300
|
end
|
|
30309
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
30301
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
30310
30302
|
end
|
|
30311
30303
|
return ____exports
|
|
30312
30304
|
end,
|
|
@@ -30373,7 +30365,7 @@ function PreGetPedestal.prototype.____constructor(self)
|
|
|
30373
30365
|
end
|
|
30374
30366
|
return self:fire(player, collectible)
|
|
30375
30367
|
end
|
|
30376
|
-
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION,
|
|
30368
|
+
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, self.prePickupCollision, {PickupVariant.COLLECTIBLE}}}
|
|
30377
30369
|
end
|
|
30378
30370
|
return ____exports
|
|
30379
30371
|
end,
|
|
@@ -30439,7 +30431,7 @@ function PreNewLevel.prototype.____constructor(self)
|
|
|
30439
30431
|
self:fire(player)
|
|
30440
30432
|
end
|
|
30441
30433
|
end
|
|
30442
|
-
self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER,
|
|
30434
|
+
self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
|
|
30443
30435
|
end
|
|
30444
30436
|
return ____exports
|
|
30445
30437
|
end,
|
|
@@ -30462,7 +30454,7 @@ function PreNPCCollisionFilter.prototype.____constructor(self)
|
|
|
30462
30454
|
CustomCallback.prototype.____constructor(self)
|
|
30463
30455
|
self.shouldFire = shouldFireNPC
|
|
30464
30456
|
self.preNPCCollision = function(____, npc, collider, low) return self:fire(npc, collider, low) end
|
|
30465
|
-
self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION,
|
|
30457
|
+
self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION, self.preNPCCollision}}
|
|
30466
30458
|
end
|
|
30467
30459
|
return ____exports
|
|
30468
30460
|
end,
|
|
@@ -30485,7 +30477,7 @@ function PreNPCUpdateFilter.prototype.____constructor(self)
|
|
|
30485
30477
|
CustomCallback.prototype.____constructor(self)
|
|
30486
30478
|
self.shouldFire = shouldFireNPC
|
|
30487
30479
|
self.preNPCUpdate = function(____, npc) return self:fire(npc) end
|
|
30488
|
-
self.callbacksUsed = {{ModCallback.PRE_NPC_UPDATE,
|
|
30480
|
+
self.callbacksUsed = {{ModCallback.PRE_NPC_UPDATE, self.preNPCUpdate}}
|
|
30489
30481
|
end
|
|
30490
30482
|
return ____exports
|
|
30491
30483
|
end,
|
|
@@ -31226,7 +31218,7 @@ function RunInNFrames.prototype.____constructor(self)
|
|
|
31226
31218
|
checkExecuteQueuedFunctions(nil, renderFrameCount, self.v.run.queuedRenderFunctionTuples)
|
|
31227
31219
|
checkExecuteIntervalFunctions(nil, renderFrameCount, self.v.run.intervalRenderFunctionTuples)
|
|
31228
31220
|
end
|
|
31229
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
31221
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_RENDER, self.postRender}}
|
|
31230
31222
|
end
|
|
31231
31223
|
function RunInNFrames.prototype.restartNextRenderFrame(self, character)
|
|
31232
31224
|
self:runNextRenderFrame(function()
|
|
@@ -31391,8 +31383,8 @@ function CustomGridEntities.prototype.____constructor(self, runInNFrames)
|
|
|
31391
31383
|
end
|
|
31392
31384
|
end
|
|
31393
31385
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
31394
|
-
self.callbacksUsed = {{ModCallback.PRE_USE_ITEM,
|
|
31395
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
31386
|
+
self.callbacksUsed = {{ModCallback.PRE_USE_ITEM, self.preUseItemWeNeedToGoDeeper, {CollectibleType.WE_NEED_TO_GO_DEEPER}}}
|
|
31387
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
31396
31388
|
self.runInNFrames = runInNFrames
|
|
31397
31389
|
end
|
|
31398
31390
|
function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityTypeCustom, gridIndexOrPosition, gridCollisionClass, anm2Path, defaultAnimation, baseGridEntityType, baseGridEntityVariant)
|
|
@@ -31565,9 +31557,6 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
31565
31557
|
end
|
|
31566
31558
|
sfxManager:Stop(SoundEffect.ONE_UP)
|
|
31567
31559
|
end
|
|
31568
|
-
self.postPEffectUpdate = function(____, player)
|
|
31569
|
-
self:checkWaitingForItemAnimation(player)
|
|
31570
|
-
end
|
|
31571
31560
|
self.postNewRoomReordered = function()
|
|
31572
31561
|
if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
31573
31562
|
return
|
|
@@ -31575,6 +31564,9 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
31575
31564
|
self.v.run.state = CustomReviveState.WAITING_FOR_ITEM_ANIMATION
|
|
31576
31565
|
self:logStateChanged()
|
|
31577
31566
|
end
|
|
31567
|
+
self.postPEffectUpdateReordered = function(____, player)
|
|
31568
|
+
self:checkWaitingForItemAnimation(player)
|
|
31569
|
+
end
|
|
31578
31570
|
self.postPlayerFatalDamage = function(____, player)
|
|
31579
31571
|
self:playerIsAboutToDie(player)
|
|
31580
31572
|
return nil
|
|
@@ -31583,8 +31575,8 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
31583
31575
|
self:playerIsAboutToDie(player)
|
|
31584
31576
|
end
|
|
31585
31577
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
31586
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
31587
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
31578
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
31579
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}, {ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE, self.postPlayerFatalDamage}, {ModCallbackCustom.PRE_BERSERK_DEATH, self.preBerserkDeath}}
|
|
31588
31580
|
self.preCustomRevive = preCustomRevive
|
|
31589
31581
|
self.postCustomRevive = postCustomRevive
|
|
31590
31582
|
self.runInNFrames = runInNFrames
|
|
@@ -31701,7 +31693,7 @@ function EsauJrDetection.prototype.____constructor(self, postEsauJr, postFirstEs
|
|
|
31701
31693
|
self.v.run.usedEsauJrControllerIndex = player.ControllerIndex
|
|
31702
31694
|
return nil
|
|
31703
31695
|
end
|
|
31704
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
31696
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_USE_ITEM, self.useItemEsauJr, {CollectibleType.ESAU_JR}}}
|
|
31705
31697
|
self.postEsauJr = postEsauJr
|
|
31706
31698
|
self.postFirstEsauJr = postFirstEsauJr
|
|
31707
31699
|
end
|
|
@@ -31761,7 +31753,7 @@ function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
|
|
|
31761
31753
|
self.postFlip:fire(newLazarus, player)
|
|
31762
31754
|
return nil
|
|
31763
31755
|
end
|
|
31764
|
-
self.callbacksUsed = {{ModCallback.POST_USE_ITEM,
|
|
31756
|
+
self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemFlip, {CollectibleType.FLIP}}}
|
|
31765
31757
|
self.postFlip = postFlip
|
|
31766
31758
|
self.postFirstFlip = postFirstFlip
|
|
31767
31759
|
end
|
|
@@ -31834,7 +31826,7 @@ function GameReorderedCallbacks.prototype.____constructor(self, postGameStartedR
|
|
|
31834
31826
|
self.forceNewRoom = false
|
|
31835
31827
|
self.postNewRoomReordered:fire()
|
|
31836
31828
|
end
|
|
31837
|
-
self.callbacksUsed = {{ModCallback.POST_USE_ITEM,
|
|
31829
|
+
self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemGlowingHourGlass, {CollectibleType.GLOWING_HOUR_GLASS}}, {ModCallback.POST_GAME_STARTED, self.postGameStarted}, {ModCallback.POST_NEW_LEVEL, self.postNewLevel}, {ModCallback.POST_NEW_ROOM, self.postNewRoom}}
|
|
31838
31830
|
self.postGameStartedReordered = postGameStartedReordered
|
|
31839
31831
|
self.postNewLevelReordered = postNewLevelReordered
|
|
31840
31832
|
self.postNewRoomReordered = postNewRoomReordered
|
|
@@ -31926,7 +31918,7 @@ function GridEntityCollisionDetection.prototype.____constructor(self, postGridEn
|
|
|
31926
31918
|
end
|
|
31927
31919
|
end
|
|
31928
31920
|
end
|
|
31929
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
31921
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
31930
31922
|
self.postGridEntityCollision = postGridEntityCollision
|
|
31931
31923
|
self.postGridEntityCustomCollision = postGridEntityCustomCollision
|
|
31932
31924
|
self.customGridEntities = customGridEntities
|
|
@@ -31961,7 +31953,7 @@ function GridEntityRenderDetection.prototype.____constructor(self, postGridEntit
|
|
|
31961
31953
|
end
|
|
31962
31954
|
end
|
|
31963
31955
|
end
|
|
31964
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
31956
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
31965
31957
|
self.postGridEntityRender = postGridEntityRender
|
|
31966
31958
|
self.postGridEntityCustomRender = postGridEntityCustomRender
|
|
31967
31959
|
self.customGridEntities = customGridEntities
|
|
@@ -32019,8 +32011,8 @@ function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntit
|
|
|
32019
32011
|
end
|
|
32020
32012
|
end
|
|
32021
32013
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
32022
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
32023
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
32014
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
32015
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
32024
32016
|
self.postGridEntityInit = postGridEntityInit
|
|
32025
32017
|
self.postGridEntityCustomInit = postGridEntityCustomInit
|
|
32026
32018
|
self.postGridEntityUpdate = postGridEntityUpdate
|
|
@@ -32104,7 +32096,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
32104
32096
|
local ____exports = {}
|
|
32105
32097
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
32106
32098
|
local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
|
|
32107
|
-
local
|
|
32099
|
+
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
32100
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
32108
32101
|
local ____playerDataStructures = require("src.functions.playerDataStructures")
|
|
32109
32102
|
local defaultMapGetPlayer = ____playerDataStructures.defaultMapGetPlayer
|
|
32110
32103
|
local ____types = require("src.functions.types")
|
|
@@ -32126,7 +32119,7 @@ function ItemPickupDetection.prototype.____constructor(self, postItemPickup, pre
|
|
|
32126
32119
|
DefaultMap,
|
|
32127
32120
|
function() return newPickingUpItem(nil) end
|
|
32128
32121
|
)}}
|
|
32129
|
-
self.
|
|
32122
|
+
self.postPEffectUpdateReordered = function(____, player)
|
|
32130
32123
|
local pickingUpItem = defaultMapGetPlayer(nil, self.v.run.playersPickingUpItemMap, player)
|
|
32131
32124
|
if player:IsItemQueueEmpty() then
|
|
32132
32125
|
self:queueEmpty(player, pickingUpItem)
|
|
@@ -32134,7 +32127,7 @@ function ItemPickupDetection.prototype.____constructor(self, postItemPickup, pre
|
|
|
32134
32127
|
self:queueNotEmpty(player, pickingUpItem)
|
|
32135
32128
|
end
|
|
32136
32129
|
end
|
|
32137
|
-
self.
|
|
32130
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
32138
32131
|
self.postItemPickup = postItemPickup
|
|
32139
32132
|
self.preItemPickup = preItemPickup
|
|
32140
32133
|
end
|
|
@@ -32523,7 +32516,7 @@ function ModdedElementDetection.prototype.____constructor(self)
|
|
|
32523
32516
|
self.postPlayerInit = function(____, _player)
|
|
32524
32517
|
self.atLeastOneCallbackFired = true
|
|
32525
32518
|
end
|
|
32526
|
-
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT,
|
|
32519
|
+
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
|
|
32527
32520
|
end
|
|
32528
32521
|
function ModdedElementDetection.prototype.errorIfNoCallbacksFired(self, constantType)
|
|
32529
32522
|
if not self.atLeastOneCallbackFired then
|
|
@@ -33398,7 +33391,6 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescri
|
|
|
33398
33391
|
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
33399
33392
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
33400
33393
|
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
33401
|
-
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
33402
33394
|
local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
|
|
33403
33395
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
33404
33396
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
@@ -33444,27 +33436,10 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
|
|
|
33444
33436
|
self:updateCollectibleMapAndFire(player, nil)
|
|
33445
33437
|
return nil
|
|
33446
33438
|
end
|
|
33447
|
-
self.
|
|
33448
|
-
local oldCollectibleCount = defaultMapGetPlayer(nil, self.v.run.playersCollectibleCount, player)
|
|
33449
|
-
local newCollectibleCount = player:GetCollectibleCount()
|
|
33450
|
-
mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
|
|
33451
|
-
local difference = newCollectibleCount - oldCollectibleCount
|
|
33452
|
-
if difference > 0 then
|
|
33453
|
-
self:updateCollectibleMapAndFire(player, difference)
|
|
33454
|
-
elseif difference < 0 then
|
|
33455
|
-
self:updateCollectibleMapAndFire(player, difference * -1)
|
|
33456
|
-
elseif difference == 0 then
|
|
33457
|
-
self:checkActiveItemsChanged(player)
|
|
33458
|
-
end
|
|
33459
|
-
end
|
|
33460
|
-
self.entityTakeDmgPlayer = function(____, entity, _amount, damageFlags, _source, _countdownFrames)
|
|
33439
|
+
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
33461
33440
|
if hasFlag(nil, damageFlags, DamageFlag.FAKE) then
|
|
33462
33441
|
return nil
|
|
33463
33442
|
end
|
|
33464
|
-
local player = entity:ToPlayer()
|
|
33465
|
-
if player == nil then
|
|
33466
|
-
return nil
|
|
33467
|
-
end
|
|
33468
33443
|
local character = player:GetPlayerType()
|
|
33469
33444
|
if character ~= PlayerType.EDEN_B then
|
|
33470
33445
|
return nil
|
|
@@ -33486,9 +33461,22 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
|
|
|
33486
33461
|
mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
|
|
33487
33462
|
self:updateCollectibleMapAndFire(player, 1)
|
|
33488
33463
|
end
|
|
33464
|
+
self.postPEffectUpdateReordered = function(____, player)
|
|
33465
|
+
local oldCollectibleCount = defaultMapGetPlayer(nil, self.v.run.playersCollectibleCount, player)
|
|
33466
|
+
local newCollectibleCount = player:GetCollectibleCount()
|
|
33467
|
+
mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
|
|
33468
|
+
local difference = newCollectibleCount - oldCollectibleCount
|
|
33469
|
+
if difference > 0 then
|
|
33470
|
+
self:updateCollectibleMapAndFire(player, difference)
|
|
33471
|
+
elseif difference < 0 then
|
|
33472
|
+
self:updateCollectibleMapAndFire(player, difference * -1)
|
|
33473
|
+
elseif difference == 0 then
|
|
33474
|
+
self:checkActiveItemsChanged(player)
|
|
33475
|
+
end
|
|
33476
|
+
end
|
|
33489
33477
|
self.featuresUsed = {ISCFeature.MODDED_ELEMENT_SETS, ISCFeature.RUN_IN_N_FRAMES}
|
|
33490
|
-
self.callbacksUsed = {{ModCallback.POST_USE_ITEM,
|
|
33491
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_ITEM_PICKUP,
|
|
33478
|
+
self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemD4, {CollectibleType.D4}}}
|
|
33479
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}, {ModCallbackCustom.POST_ITEM_PICKUP, self.postItemPickup}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
33492
33480
|
self.postPlayerCollectibleAdded = postPlayerCollectibleAdded
|
|
33493
33481
|
self.postPlayerCollectibleRemoved = postPlayerCollectibleRemoved
|
|
33494
33482
|
self.moddedElementSets = moddedElementSets
|
|
@@ -33617,8 +33605,8 @@ function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpd
|
|
|
33617
33605
|
dequeue(nil, self.v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
|
|
33618
33606
|
dequeue(nil, self.v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
|
|
33619
33607
|
end
|
|
33620
|
-
self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE,
|
|
33621
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST,
|
|
33608
|
+
self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, self.postPEffectUpdate}, {ModCallback.POST_PLAYER_UPDATE, self.postPlayerUpdate}, {ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
|
|
33609
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, self.postGameStartedReorderedLast}}
|
|
33622
33610
|
self.postPEffectUpdateReordered = postPEffectUpdateReordered
|
|
33623
33611
|
self.postPlayerRenderReordered = postPlayerRenderReordered
|
|
33624
33612
|
self.postPlayerUpdateReordered = postPlayerUpdateReordered
|
|
@@ -33662,7 +33650,7 @@ function SlotRenderDetection.prototype.____constructor(self, postSlotRender, pos
|
|
|
33662
33650
|
self:checkSlotAnimationChanged(slot)
|
|
33663
33651
|
end
|
|
33664
33652
|
end
|
|
33665
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
33653
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
33666
33654
|
self.postSlotRender = postSlotRender
|
|
33667
33655
|
self.postSlotAnimationChanged = postSlotAnimationChanged
|
|
33668
33656
|
end
|
|
@@ -33711,8 +33699,8 @@ function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postS
|
|
|
33711
33699
|
self:checkNewEntity(slot)
|
|
33712
33700
|
end
|
|
33713
33701
|
end
|
|
33714
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
33715
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
33702
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
33703
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
33716
33704
|
self.postSlotInit = postSlotInit
|
|
33717
33705
|
self.postSlotUpdate = postSlotUpdate
|
|
33718
33706
|
end
|
|
@@ -34336,8 +34324,8 @@ function CharacterHealthConversion.prototype.____constructor(self)
|
|
|
34336
34324
|
convertRedHeartContainers(nil, player, conversionHeartSubType)
|
|
34337
34325
|
removeRedHearts(nil, player)
|
|
34338
34326
|
end
|
|
34339
|
-
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION,
|
|
34340
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
34327
|
+
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, self.prePickupCollisionHeart, {PickupVariant.HEART}}}
|
|
34328
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
34341
34329
|
end
|
|
34342
34330
|
function CharacterHealthConversion.prototype.registerCharacterHealthConversion(self, playerType, conversionHeartSubType)
|
|
34343
34331
|
if self.characterHealthReplacementMap:has(playerType) then
|
|
@@ -34522,7 +34510,7 @@ function CharacterStats.prototype.____constructor(self)
|
|
|
34522
34510
|
local delta = stat - defaultStat
|
|
34523
34511
|
addStat(nil, player, cacheFlag, delta)
|
|
34524
34512
|
end
|
|
34525
|
-
self.callbacksUsed = {{ModCallback.EVALUATE_CACHE,
|
|
34513
|
+
self.callbacksUsed = {{ModCallback.EVALUATE_CACHE, self.evaluateCache}}
|
|
34526
34514
|
end
|
|
34527
34515
|
function CharacterStats.prototype.registerCharacterStats(self, playerType, statMap)
|
|
34528
34516
|
self.charactersStatMap:set(playerType, statMap)
|
|
@@ -34601,7 +34589,7 @@ function RoomHistory.prototype.____constructor(self)
|
|
|
34601
34589
|
local ____self_v_run_roomHistory_0 = self.v.run.roomHistory
|
|
34602
34590
|
____self_v_run_roomHistory_0[#____self_v_run_roomHistory_0 + 1] = roomDescription
|
|
34603
34591
|
end
|
|
34604
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY,
|
|
34592
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
34605
34593
|
end
|
|
34606
34594
|
function RoomHistory.prototype.getRoomHistory(self)
|
|
34607
34595
|
return self.v.run.roomHistory
|
|
@@ -36354,8 +36342,8 @@ function SaveDataManager.prototype.____constructor(self, mod)
|
|
|
36354
36342
|
makeGlowingHourGlassBackup(nil, self.saveDataMap, self.saveDataConditionalFuncMap, self.saveDataGlowingHourGlassMap)
|
|
36355
36343
|
end
|
|
36356
36344
|
end
|
|
36357
|
-
self.callbacksUsed = {{ModCallback.POST_USE_ITEM,
|
|
36358
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY,
|
|
36345
|
+
self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.postUseItemGlowingHourGlass, {CollectibleType.GLOWING_HOUR_GLASS}}, {ModCallback.POST_PLAYER_INIT, self.postPlayerInit}, {ModCallback.PRE_GAME_EXIT, self.preGameExit}, {ModCallback.POST_NEW_LEVEL, self.postNewLevel}}
|
|
36346
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
36359
36347
|
self.mod = mod
|
|
36360
36348
|
end
|
|
36361
36349
|
function SaveDataManager.prototype.saveDataManager(self, key, v, conditionalFunc)
|
|
@@ -36518,7 +36506,7 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDa
|
|
|
36518
36506
|
self:checkDespawningFromPlayerLeavingRoom(entity)
|
|
36519
36507
|
end
|
|
36520
36508
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY, ISCFeature.SAVE_DATA_MANAGER}
|
|
36521
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT,
|
|
36509
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInit}, {ModCallback.POST_ENTITY_REMOVE, self.postEntityRemovePickup, {EntityType.PICKUP}}}
|
|
36522
36510
|
self.roomHistory = roomHistory
|
|
36523
36511
|
self.saveDataManager = saveDataManager
|
|
36524
36512
|
end
|
|
@@ -36686,7 +36674,7 @@ function CollectibleItemPoolType.prototype.____constructor(self, pickupIndexCrea
|
|
|
36686
36674
|
self.v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
|
|
36687
36675
|
end
|
|
36688
36676
|
self.featuresUsed = {ISCFeature.PICKUP_INDEX_CREATION}
|
|
36689
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT,
|
|
36677
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
36690
36678
|
self.pickupIndexCreation = pickupIndexCreation
|
|
36691
36679
|
end
|
|
36692
36680
|
function CollectibleItemPoolType.prototype.getCollectibleItemPoolType(self, collectible)
|
|
@@ -36954,7 +36942,7 @@ function CustomHotkeys.prototype.____constructor(self)
|
|
|
36954
36942
|
end
|
|
36955
36943
|
end
|
|
36956
36944
|
end
|
|
36957
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
36945
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
36958
36946
|
end
|
|
36959
36947
|
function CustomHotkeys.prototype.checkIfTriggered(self, keyboard, triggerFunc)
|
|
36960
36948
|
local isPressed = isKeyboardPressed(nil, keyboard)
|
|
@@ -37133,7 +37121,7 @@ function CustomItemPools.prototype.____constructor(self)
|
|
|
37133
37121
|
end
|
|
37134
37122
|
self.v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
|
|
37135
37123
|
end
|
|
37136
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED,
|
|
37124
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED, self.postGameStartedReordered}}
|
|
37137
37125
|
end
|
|
37138
37126
|
function CustomItemPools.prototype.registerCustomItemPool(self, itemPoolTypeCustom, collectibles)
|
|
37139
37127
|
if self.customItemPoolMap:has(itemPoolTypeCustom) then
|
|
@@ -37249,7 +37237,7 @@ function CustomPickups.prototype.____constructor(self)
|
|
|
37249
37237
|
effect:Remove()
|
|
37250
37238
|
end
|
|
37251
37239
|
end
|
|
37252
|
-
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION,
|
|
37240
|
+
self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, self.prePickupCollision}, {ModCallback.POST_EFFECT_RENDER, self.postEffectRenderPickupEffect, {PICKUP_EFFECT_VARIANT}}}
|
|
37253
37241
|
end
|
|
37254
37242
|
function CustomPickups.prototype.registerCustomPickup(self, pickupVariantCustom, subType, collectFunc, collisionFunc)
|
|
37255
37243
|
if collisionFunc == nil then
|
|
@@ -37962,7 +37950,7 @@ function DisableInputs.prototype.____constructor(self)
|
|
|
37962
37950
|
self.isActionPressed = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
37963
37951
|
self.isActionTriggered = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
37964
37952
|
self.getActionValue = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, false) end
|
|
37965
|
-
self.callbacksUsed = {{ModCallback.INPUT_ACTION,
|
|
37953
|
+
self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.isActionPressed, {InputHook.IS_ACTION_PRESSED}}, {ModCallback.INPUT_ACTION, self.isActionTriggered, {InputHook.IS_ACTION_TRIGGERED}}, {ModCallback.INPUT_ACTION, self.getActionValue, {InputHook.GET_ACTION_VALUE}}}
|
|
37966
37954
|
end
|
|
37967
37955
|
function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallback)
|
|
37968
37956
|
local ____booleanCallback_0
|
|
@@ -38081,7 +38069,7 @@ function PonyDetection.prototype.____constructor(self)
|
|
|
38081
38069
|
setDeletePlayer(nil, self.v.run.playersIsPonyActive, player)
|
|
38082
38070
|
end
|
|
38083
38071
|
end
|
|
38084
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED,
|
|
38072
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
38085
38073
|
end
|
|
38086
38074
|
function PonyDetection.prototype.isPlayerUsingPony(self, player)
|
|
38087
38075
|
return setHasPlayer(nil, self.v.run.playersIsPonyActive, player)
|
|
@@ -38125,7 +38113,7 @@ function RoomClearFrame.prototype.____constructor(self)
|
|
|
38125
38113
|
self.v.room.roomClearGameFrame = gameFrameCount
|
|
38126
38114
|
self.v.room.roomClearRoomFrame = roomFrameCount
|
|
38127
38115
|
end
|
|
38128
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED,
|
|
38116
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
|
|
38129
38117
|
end
|
|
38130
38118
|
function RoomClearFrame.prototype.getRoomClearGameFrame(self)
|
|
38131
38119
|
return self.v.room.roomClearGameFrame
|
|
@@ -38164,7 +38152,7 @@ function RunNextRoom.prototype.____constructor(self)
|
|
|
38164
38152
|
end
|
|
38165
38153
|
emptyArray(nil, self.v.run.queuedFunctions)
|
|
38166
38154
|
end
|
|
38167
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
38155
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
38168
38156
|
end
|
|
38169
38157
|
function RunNextRoom.prototype.runNextRoom(self, func)
|
|
38170
38158
|
local ____self_v_run_queuedFunctions_0 = self.v.run.queuedFunctions
|
|
@@ -38340,7 +38328,7 @@ function StageHistory.prototype.____constructor(self)
|
|
|
38340
38328
|
local ____self_v_run_stageHistory_0 = self.v.run.stageHistory
|
|
38341
38329
|
____self_v_run_stageHistory_0[#____self_v_run_stageHistory_0 + 1] = {stage, stageType}
|
|
38342
38330
|
end
|
|
38343
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED,
|
|
38331
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED, self.postNewLevelReordered}}
|
|
38344
38332
|
end
|
|
38345
38333
|
function StageHistory.prototype.getNextStageTypeWithHistory(self, upwards)
|
|
38346
38334
|
if upwards == nil then
|
|
@@ -38663,8 +38651,8 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
|
|
|
38663
38651
|
ISCFeature.RUN_NEXT_ROOM,
|
|
38664
38652
|
ISCFeature.STAGE_HISTORY
|
|
38665
38653
|
}
|
|
38666
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
38667
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_UPDATE,
|
|
38654
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
38655
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_UPDATE, self.postGridEntityCustomUpdateTrapdoor, {GridEntityTypeCustom.TRAPDOOR_CUSTOM}}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
|
|
38668
38656
|
self.customGridEntities = customGridEntities
|
|
38669
38657
|
self.disableInputs = disableInputs
|
|
38670
38658
|
self.ponyDetection = ponyDetection
|
|
@@ -41035,7 +41023,7 @@ function DisableAllSound.prototype.____constructor(self)
|
|
|
41035
41023
|
end
|
|
41036
41024
|
stopAllSoundEffects(nil)
|
|
41037
41025
|
end
|
|
41038
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
41026
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
41039
41027
|
end
|
|
41040
41028
|
function DisableAllSound.prototype.enableAllSound(self, key)
|
|
41041
41029
|
if not self.v.run.disableSoundSet:has(key) then
|
|
@@ -41125,7 +41113,7 @@ function Pause.prototype.____constructor(self, disableInputs)
|
|
|
41125
41113
|
self.v.run.shouldUnpause = false
|
|
41126
41114
|
return 1
|
|
41127
41115
|
end
|
|
41128
|
-
self.callbacksUsed = {{ModCallback.POST_UPDATE,
|
|
41116
|
+
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.INPUT_ACTION, self.inputActionGetActionValue, {InputHook.GET_ACTION_VALUE}}}
|
|
41129
41117
|
self.disableInputs = disableInputs
|
|
41130
41118
|
end
|
|
41131
41119
|
function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
@@ -41686,8 +41674,8 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
41686
41674
|
ISCFeature.PAUSE,
|
|
41687
41675
|
ISCFeature.RUN_IN_N_FRAMES
|
|
41688
41676
|
}
|
|
41689
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
41690
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_GRID_ENTITY_BROKEN,
|
|
41677
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}, {ModCallback.POST_CURSE_EVAL, self.postCurseEval}, {ModCallback.GET_SHADER_PARAMS, self.getShaderParams}}
|
|
41678
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_GRID_ENTITY_BROKEN, self.postGridEntityBrokenRockAlt, {GridEntityType.ROCK_ALT}}, {ModCallbackCustom.POST_GRID_ENTITY_INIT, self.postGridEntityInit}, {ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
41691
41679
|
self.customGridEntities = customGridEntities
|
|
41692
41680
|
self.customTrapdoors = customTrapdoors
|
|
41693
41681
|
self.disableAllSound = disableAllSound
|
|
@@ -41901,7 +41889,7 @@ function DebugDisplayBomb.prototype.____constructor(self)
|
|
|
41901
41889
|
local text = self:textCallback(bomb)
|
|
41902
41890
|
renderTextOnEntity(nil, bomb, text)
|
|
41903
41891
|
end
|
|
41904
|
-
self.callbacksUsed = {{ModCallback.POST_BOMB_RENDER,
|
|
41892
|
+
self.callbacksUsed = {{ModCallback.POST_BOMB_RENDER, self.postBombRender}}
|
|
41905
41893
|
end
|
|
41906
41894
|
return ____exports
|
|
41907
41895
|
end,
|
|
@@ -41928,7 +41916,7 @@ function DebugDisplayDoor.prototype.____constructor(self)
|
|
|
41928
41916
|
local text = self:textCallback(door)
|
|
41929
41917
|
renderTextOnEntity(nil, door, text)
|
|
41930
41918
|
end
|
|
41931
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_DOOR_RENDER,
|
|
41919
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_DOOR_RENDER, self.postDoorRender}}
|
|
41932
41920
|
end
|
|
41933
41921
|
return ____exports
|
|
41934
41922
|
end,
|
|
@@ -41955,7 +41943,7 @@ function DebugDisplayEffect.prototype.____constructor(self)
|
|
|
41955
41943
|
local text = self:textCallback(effect)
|
|
41956
41944
|
renderTextOnEntity(nil, effect, text)
|
|
41957
41945
|
end
|
|
41958
|
-
self.callbacksUsed = {{ModCallback.POST_EFFECT_RENDER,
|
|
41946
|
+
self.callbacksUsed = {{ModCallback.POST_EFFECT_RENDER, self.postEffectRender}}
|
|
41959
41947
|
end
|
|
41960
41948
|
return ____exports
|
|
41961
41949
|
end,
|
|
@@ -41982,7 +41970,7 @@ function DebugDisplayFamiliar.prototype.____constructor(self)
|
|
|
41982
41970
|
local text = self:textCallback(familiar)
|
|
41983
41971
|
renderTextOnEntity(nil, familiar, text)
|
|
41984
41972
|
end
|
|
41985
|
-
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_RENDER,
|
|
41973
|
+
self.callbacksUsed = {{ModCallback.POST_FAMILIAR_RENDER, self.postFamiliarRender}}
|
|
41986
41974
|
end
|
|
41987
41975
|
return ____exports
|
|
41988
41976
|
end,
|
|
@@ -42009,7 +41997,7 @@ function DebugDisplayKnife.prototype.____constructor(self)
|
|
|
42009
41997
|
local text = self:textCallback(knife)
|
|
42010
41998
|
renderTextOnEntity(nil, knife, text)
|
|
42011
41999
|
end
|
|
42012
|
-
self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER,
|
|
42000
|
+
self.callbacksUsed = {{ModCallback.POST_KNIFE_RENDER, self.postKnifeRender}}
|
|
42013
42001
|
end
|
|
42014
42002
|
return ____exports
|
|
42015
42003
|
end,
|
|
@@ -42036,7 +42024,7 @@ function DebugDisplayLaser.prototype.____constructor(self)
|
|
|
42036
42024
|
local text = self:textCallback(laser)
|
|
42037
42025
|
renderTextOnEntity(nil, laser, text)
|
|
42038
42026
|
end
|
|
42039
|
-
self.callbacksUsed = {{ModCallback.POST_LASER_RENDER,
|
|
42027
|
+
self.callbacksUsed = {{ModCallback.POST_LASER_RENDER, self.postLaserRender}}
|
|
42040
42028
|
end
|
|
42041
42029
|
return ____exports
|
|
42042
42030
|
end,
|
|
@@ -42063,7 +42051,7 @@ function DebugDisplayNPC.prototype.____constructor(self)
|
|
|
42063
42051
|
local text = self:textCallback(npc)
|
|
42064
42052
|
renderTextOnEntity(nil, npc, text)
|
|
42065
42053
|
end
|
|
42066
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_RENDER,
|
|
42054
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_RENDER, self.postNPCRender}}
|
|
42067
42055
|
end
|
|
42068
42056
|
return ____exports
|
|
42069
42057
|
end,
|
|
@@ -42090,7 +42078,7 @@ function DebugDisplayPickup.prototype.____constructor(self)
|
|
|
42090
42078
|
local text = self:textCallback(pickup)
|
|
42091
42079
|
renderTextOnEntity(nil, pickup, text)
|
|
42092
42080
|
end
|
|
42093
|
-
self.callbacksUsed = {{ModCallback.POST_PICKUP_RENDER,
|
|
42081
|
+
self.callbacksUsed = {{ModCallback.POST_PICKUP_RENDER, self.postPickupRender}}
|
|
42094
42082
|
end
|
|
42095
42083
|
return ____exports
|
|
42096
42084
|
end,
|
|
@@ -42117,7 +42105,7 @@ function DebugDisplayPit.prototype.____constructor(self)
|
|
|
42117
42105
|
local text = self:textCallback(pit)
|
|
42118
42106
|
renderTextOnEntity(nil, pit, text)
|
|
42119
42107
|
end
|
|
42120
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PIT_RENDER,
|
|
42108
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PIT_RENDER, self.postPitRender}}
|
|
42121
42109
|
end
|
|
42122
42110
|
return ____exports
|
|
42123
42111
|
end,
|
|
@@ -42144,7 +42132,7 @@ function DebugDisplayPlayer.prototype.____constructor(self)
|
|
|
42144
42132
|
local text = self:textCallback(player)
|
|
42145
42133
|
renderTextOnEntity(nil, player, text)
|
|
42146
42134
|
end
|
|
42147
|
-
self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER,
|
|
42135
|
+
self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
|
|
42148
42136
|
end
|
|
42149
42137
|
return ____exports
|
|
42150
42138
|
end,
|
|
@@ -42171,7 +42159,7 @@ function DebugDisplayPoop.prototype.____constructor(self)
|
|
|
42171
42159
|
local text = self:textCallback(poop)
|
|
42172
42160
|
renderTextOnEntity(nil, poop, text)
|
|
42173
42161
|
end
|
|
42174
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_POOP_RENDER,
|
|
42162
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_POOP_RENDER, self.postPoopRender}}
|
|
42175
42163
|
end
|
|
42176
42164
|
return ____exports
|
|
42177
42165
|
end,
|
|
@@ -42198,7 +42186,7 @@ function DebugDisplayPressurePlate.prototype.____constructor(self)
|
|
|
42198
42186
|
local text = self:textCallback(pressurePlate)
|
|
42199
42187
|
renderTextOnEntity(nil, pressurePlate, text)
|
|
42200
42188
|
end
|
|
42201
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PRESSURE_PLATE_RENDER,
|
|
42189
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PRESSURE_PLATE_RENDER, self.postPressurePlateRender}}
|
|
42202
42190
|
end
|
|
42203
42191
|
return ____exports
|
|
42204
42192
|
end,
|
|
@@ -42225,7 +42213,7 @@ function DebugDisplayProjectile.prototype.____constructor(self)
|
|
|
42225
42213
|
local text = self:textCallback(projectile)
|
|
42226
42214
|
renderTextOnEntity(nil, projectile, text)
|
|
42227
42215
|
end
|
|
42228
|
-
self.callbacksUsed = {{ModCallback.POST_PROJECTILE_RENDER,
|
|
42216
|
+
self.callbacksUsed = {{ModCallback.POST_PROJECTILE_RENDER, self.postProjectileRender}}
|
|
42229
42217
|
end
|
|
42230
42218
|
return ____exports
|
|
42231
42219
|
end,
|
|
@@ -42252,7 +42240,7 @@ function DebugDisplayRock.prototype.____constructor(self)
|
|
|
42252
42240
|
local text = self:textCallback(rock)
|
|
42253
42241
|
renderTextOnEntity(nil, rock, text)
|
|
42254
42242
|
end
|
|
42255
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROCK_RENDER,
|
|
42243
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_ROCK_RENDER, self.postRockRender}}
|
|
42256
42244
|
end
|
|
42257
42245
|
return ____exports
|
|
42258
42246
|
end,
|
|
@@ -42279,7 +42267,7 @@ function DebugDisplaySlot.prototype.____constructor(self)
|
|
|
42279
42267
|
local text = self:textCallback(slot)
|
|
42280
42268
|
renderTextOnEntity(nil, slot, text)
|
|
42281
42269
|
end
|
|
42282
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_RENDER,
|
|
42270
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_RENDER, self.postSlotRender}}
|
|
42283
42271
|
end
|
|
42284
42272
|
return ____exports
|
|
42285
42273
|
end,
|
|
@@ -42306,7 +42294,7 @@ function DebugDisplaySpikes.prototype.____constructor(self)
|
|
|
42306
42294
|
local text = self:textCallback(spikes)
|
|
42307
42295
|
renderTextOnEntity(nil, spikes, text)
|
|
42308
42296
|
end
|
|
42309
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_SPIKES_RENDER,
|
|
42297
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_SPIKES_RENDER, self.postSpikesRender}}
|
|
42310
42298
|
end
|
|
42311
42299
|
return ____exports
|
|
42312
42300
|
end,
|
|
@@ -42333,7 +42321,7 @@ function DebugDisplayTear.prototype.____constructor(self)
|
|
|
42333
42321
|
local text = self:textCallback(tear)
|
|
42334
42322
|
renderTextOnEntity(nil, tear, text)
|
|
42335
42323
|
end
|
|
42336
|
-
self.callbacksUsed = {{ModCallback.POST_TEAR_RENDER,
|
|
42324
|
+
self.callbacksUsed = {{ModCallback.POST_TEAR_RENDER, self.postTearRender}}
|
|
42337
42325
|
end
|
|
42338
42326
|
return ____exports
|
|
42339
42327
|
end,
|
|
@@ -42360,7 +42348,7 @@ function DebugDisplayTNT.prototype.____constructor(self)
|
|
|
42360
42348
|
local text = self:textCallback(tnt)
|
|
42361
42349
|
renderTextOnEntity(nil, tnt, text)
|
|
42362
42350
|
end
|
|
42363
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_TNT_RENDER,
|
|
42351
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_TNT_RENDER, self.postTNTRender}}
|
|
42364
42352
|
end
|
|
42365
42353
|
return ____exports
|
|
42366
42354
|
end,
|
|
@@ -43320,8 +43308,8 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
|
43320
43308
|
self:setDecorationsInvisible()
|
|
43321
43309
|
end
|
|
43322
43310
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
43323
|
-
self.callbacksUsed = {{ModCallback.PRE_USE_ITEM,
|
|
43324
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
43311
|
+
self.callbacksUsed = {{ModCallback.PRE_USE_ITEM, self.preUseItemWeNeedToGoDeeper, {CollectibleType.WE_NEED_TO_GO_DEEPER}}}
|
|
43312
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
43325
43313
|
self.runInNFrames = runInNFrames
|
|
43326
43314
|
end
|
|
43327
43315
|
function PreventGridEntityRespawn.prototype.setDecorationsInvisible(self)
|
|
@@ -43473,7 +43461,7 @@ function PreventCollectibleRotation.prototype.____constructor(self)
|
|
|
43473
43461
|
local collectible = pickup
|
|
43474
43462
|
self:checkCollectibleRotated(collectible)
|
|
43475
43463
|
end
|
|
43476
|
-
self.callbacksUsed = {{ModCallback.POST_USE_CARD,
|
|
43464
|
+
self.callbacksUsed = {{ModCallback.POST_USE_CARD, self.useCardSoulOfIsaac, {CardType.SOUL_ISAAC}}, {ModCallback.POST_PICKUP_UPDATE, self.postPickupUpdateCollectible, {PickupVariant.COLLECTIBLE}}}
|
|
43477
43465
|
end
|
|
43478
43466
|
function PreventCollectibleRotation.prototype.checkCollectibleRotated(self, collectible)
|
|
43479
43467
|
if collectible.SubType == CollectibleType.NULL then
|
|
@@ -47228,12 +47216,13 @@ local ____exports = {}
|
|
|
47228
47216
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
47229
47217
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
47230
47218
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
47231
|
-
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
47232
47219
|
local LevelCurse = ____isaac_2Dtypescript_2Ddefinitions.LevelCurse
|
|
47233
47220
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
47234
47221
|
local TearVariant = ____isaac_2Dtypescript_2Ddefinitions.TearVariant
|
|
47235
47222
|
local ____decorators = require("src.decorators")
|
|
47236
47223
|
local Exported = ____decorators.Exported
|
|
47224
|
+
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
47225
|
+
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
47237
47226
|
local ____flag = require("src.functions.flag")
|
|
47238
47227
|
local addFlag = ____flag.addFlag
|
|
47239
47228
|
local bitFlags = ____flag.bitFlags
|
|
@@ -47281,12 +47270,6 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
47281
47270
|
player.CanFly = true
|
|
47282
47271
|
end
|
|
47283
47272
|
end
|
|
47284
|
-
self.entityTakeDmgPlayer = function(____, _entity, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
|
|
47285
|
-
if self.v.persistent.spamBloodRights then
|
|
47286
|
-
return false
|
|
47287
|
-
end
|
|
47288
|
-
return nil
|
|
47289
|
-
end
|
|
47290
47273
|
self.postCurseEval = function(____, curses)
|
|
47291
47274
|
if self.v.persistent.disableCurses then
|
|
47292
47275
|
return bitFlags(nil, LevelCurse.NONE)
|
|
@@ -47339,17 +47322,23 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
47339
47322
|
tear:ChangeVariant(TearVariant.CHAOS_CARD)
|
|
47340
47323
|
end
|
|
47341
47324
|
end
|
|
47325
|
+
self.entityTakeDmgPlayer = function(____, _player, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
|
|
47326
|
+
if self.v.persistent.spamBloodRights then
|
|
47327
|
+
return false
|
|
47328
|
+
end
|
|
47329
|
+
return nil
|
|
47330
|
+
end
|
|
47342
47331
|
self.callbacksUsed = {
|
|
47343
|
-
{ModCallback.POST_UPDATE,
|
|
47344
|
-
{ModCallback.EVALUATE_CACHE,
|
|
47345
|
-
{ModCallback.EVALUATE_CACHE,
|
|
47346
|
-
{ModCallback.EVALUATE_CACHE,
|
|
47347
|
-
{ModCallback.EVALUATE_CACHE,
|
|
47348
|
-
{ModCallback.
|
|
47349
|
-
{ModCallback.
|
|
47350
|
-
{ModCallback.
|
|
47351
|
-
{ModCallback.POST_FIRE_TEAR, {self.postFireTear}}
|
|
47332
|
+
{ModCallback.POST_UPDATE, self.postUpdate},
|
|
47333
|
+
{ModCallback.EVALUATE_CACHE, self.evaluateCacheDamage, {CacheFlag.DAMAGE}},
|
|
47334
|
+
{ModCallback.EVALUATE_CACHE, self.evaluateCacheFireDelay, {CacheFlag.FIRE_DELAY}},
|
|
47335
|
+
{ModCallback.EVALUATE_CACHE, self.evaluateCacheSpeed, {CacheFlag.SPEED}},
|
|
47336
|
+
{ModCallback.EVALUATE_CACHE, self.evaluateCacheFlying, {CacheFlag.FLYING}},
|
|
47337
|
+
{ModCallback.POST_CURSE_EVAL, self.postCurseEval},
|
|
47338
|
+
{ModCallback.EXECUTE_CMD, self.executeCmd},
|
|
47339
|
+
{ModCallback.POST_FIRE_TEAR, self.postFireTear}
|
|
47352
47340
|
}
|
|
47341
|
+
self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}}
|
|
47353
47342
|
for ____, ____value in ipairs(__TS__ObjectEntries(commands)) do
|
|
47354
47343
|
local funcName = ____value[1]
|
|
47355
47344
|
local func = ____value[2]
|
|
@@ -47402,7 +47391,7 @@ function FadeInRemover.prototype.____constructor(self)
|
|
|
47402
47391
|
game:Fadein(FADE_IN_SPEED)
|
|
47403
47392
|
end
|
|
47404
47393
|
end
|
|
47405
|
-
self.callbacksUsed = {{ModCallback.POST_GAME_STARTED,
|
|
47394
|
+
self.callbacksUsed = {{ModCallback.POST_GAME_STARTED, self.postGameStarted}}
|
|
47406
47395
|
end
|
|
47407
47396
|
function FadeInRemover.prototype.removeFadeIn(self)
|
|
47408
47397
|
self.enabled = true
|
|
@@ -47463,7 +47452,7 @@ function FastReset.prototype.____constructor(self)
|
|
|
47463
47452
|
end
|
|
47464
47453
|
checkResetInput(nil)
|
|
47465
47454
|
end
|
|
47466
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER,
|
|
47455
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
|
|
47467
47456
|
end
|
|
47468
47457
|
function FastReset.prototype.enableFastReset(self)
|
|
47469
47458
|
self.enabled = true
|
|
@@ -47570,7 +47559,7 @@ function PressInput.prototype.____constructor(self)
|
|
|
47570
47559
|
end
|
|
47571
47560
|
return nil
|
|
47572
47561
|
end
|
|
47573
|
-
self.callbacksUsed = {{ModCallback.INPUT_ACTION,
|
|
47562
|
+
self.callbacksUsed = {{ModCallback.INPUT_ACTION, self.isActionTriggered, {InputHook.IS_ACTION_TRIGGERED}}}
|
|
47574
47563
|
end
|
|
47575
47564
|
function PressInput.prototype.pressInput(self, player, buttonAction)
|
|
47576
47565
|
local playerIndex = getPlayerIndex(nil, player)
|
|
@@ -47782,7 +47771,7 @@ function NoSirenSteal.prototype.____constructor(self)
|
|
|
47782
47771
|
self.postNPCInitSirenHelper = function(____, npc)
|
|
47783
47772
|
self:checkReturnFamiliarToPlayer(npc)
|
|
47784
47773
|
end
|
|
47785
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_INIT,
|
|
47774
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_INIT, self.postNPCInitSirenHelper, {EntityType.SIREN_HELPER}}}
|
|
47786
47775
|
end
|
|
47787
47776
|
function NoSirenSteal.prototype.checkReturnFamiliarToPlayer(self, npc)
|
|
47788
47777
|
if npc.Target == nil then
|
|
@@ -47896,8 +47885,8 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
|
47896
47885
|
end
|
|
47897
47886
|
end
|
|
47898
47887
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY}
|
|
47899
|
-
self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE,
|
|
47900
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED,
|
|
47888
|
+
self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE, self.postEntityRemove}}
|
|
47889
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
47901
47890
|
self.roomHistory = roomHistory
|
|
47902
47891
|
end
|
|
47903
47892
|
function PersistentEntities.prototype.trackDespawningPickupPosition(self, entity, index)
|
|
@@ -48016,7 +48005,7 @@ function PlayerInventory.prototype.____constructor(self)
|
|
|
48016
48005
|
local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
|
|
48017
48006
|
arrayRemoveInPlace(nil, inventory, collectibleType)
|
|
48018
48007
|
end
|
|
48019
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED,
|
|
48008
|
+
self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED, self.postCollectibleAdded}, {ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED, self.postCollectibleRemoved}}
|
|
48020
48009
|
end
|
|
48021
48010
|
function PlayerInventory.prototype.getPlayerInventory(self, player, includeActiveCollectibles)
|
|
48022
48011
|
if includeActiveCollectibles == nil then
|
|
@@ -48067,7 +48056,7 @@ function PreventChildEntities.prototype.____constructor(self)
|
|
|
48067
48056
|
npc:Remove()
|
|
48068
48057
|
end
|
|
48069
48058
|
end
|
|
48070
|
-
self.callbacksUsed = {{ModCallback.POST_NPC_INIT,
|
|
48059
|
+
self.callbacksUsed = {{ModCallback.POST_NPC_INIT, self.postNPCInit}}
|
|
48071
48060
|
end
|
|
48072
48061
|
function PreventChildEntities.prototype.preventChildEntities(self, entity)
|
|
48073
48062
|
local ptrHash = GetPtrHash(entity)
|
|
@@ -48691,7 +48680,7 @@ function TaintedLazarusPlayers.prototype.____constructor(self)
|
|
|
48691
48680
|
end
|
|
48692
48681
|
self:checkDequeue()
|
|
48693
48682
|
end
|
|
48694
|
-
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT,
|
|
48683
|
+
self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
|
|
48695
48684
|
end
|
|
48696
48685
|
function TaintedLazarusPlayers.prototype.checkDequeue(self)
|
|
48697
48686
|
if #self.v.run.queuedTaintedLazarus == 0 or #self.v.run.queuedDeadTaintedLazarus == 0 then
|
|
@@ -48956,10 +48945,6 @@ function ____exports.getFeatures(self, mod, callbacks)
|
|
|
48956
48945
|
}
|
|
48957
48946
|
return features
|
|
48958
48947
|
end
|
|
48959
|
-
return ____exports
|
|
48960
|
-
end,
|
|
48961
|
-
["src.types.AnyFunction"] = function(...)
|
|
48962
|
-
local ____exports = {}
|
|
48963
48948
|
return ____exports
|
|
48964
48949
|
end,
|
|
48965
48950
|
["src.functions.debugFunctions"] = function(...)
|
|
@@ -49193,19 +49178,21 @@ function ModUpgradedBase.prototype.initFeature(self, feature)
|
|
|
49193
49178
|
end
|
|
49194
49179
|
if feature.callbacksUsed ~= nil then
|
|
49195
49180
|
for ____, callbackTuple in ipairs(feature.callbacksUsed) do
|
|
49196
|
-
local modCallback,
|
|
49181
|
+
local modCallback, callbackFunc, optionalArgs = table.unpack(callbackTuple)
|
|
49197
49182
|
self:AddCallback(
|
|
49198
49183
|
modCallback,
|
|
49199
|
-
|
|
49184
|
+
callbackFunc,
|
|
49185
|
+
table.unpack(optionalArgs or ({}))
|
|
49200
49186
|
)
|
|
49201
49187
|
end
|
|
49202
49188
|
end
|
|
49203
49189
|
if feature.customCallbacksUsed ~= nil then
|
|
49204
49190
|
for ____, callbackTuple in ipairs(feature.customCallbacksUsed) do
|
|
49205
|
-
local modCallback,
|
|
49191
|
+
local modCallback, callbackFunc, optionalArgs = table.unpack(callbackTuple)
|
|
49206
49192
|
self:AddCallbackCustom(
|
|
49207
49193
|
modCallback,
|
|
49208
|
-
|
|
49194
|
+
callbackFunc,
|
|
49195
|
+
table.unpack(optionalArgs or ({}))
|
|
49209
49196
|
)
|
|
49210
49197
|
end
|
|
49211
49198
|
end
|
|
@@ -49240,16 +49227,14 @@ function ModUpgradedBase.prototype.uninitFeature(self, feature)
|
|
|
49240
49227
|
end
|
|
49241
49228
|
if feature.callbacksUsed ~= nil then
|
|
49242
49229
|
for ____, callbackTuple in ipairs(feature.callbacksUsed) do
|
|
49243
|
-
local modCallback,
|
|
49244
|
-
|
|
49245
|
-
self:RemoveCallback(modCallback, callback)
|
|
49230
|
+
local modCallback, callbackFunc = table.unpack(callbackTuple)
|
|
49231
|
+
self:RemoveCallback(modCallback, callbackFunc)
|
|
49246
49232
|
end
|
|
49247
49233
|
end
|
|
49248
49234
|
if feature.customCallbacksUsed ~= nil then
|
|
49249
49235
|
for ____, callbackTuple in ipairs(feature.customCallbacksUsed) do
|
|
49250
|
-
local modCallback,
|
|
49251
|
-
|
|
49252
|
-
self:RemoveCallbackCustom(modCallback, callback)
|
|
49236
|
+
local modCallback, callbackFunc = table.unpack(callbackTuple)
|
|
49237
|
+
self:RemoveCallbackCustom(modCallback, callbackFunc)
|
|
49253
49238
|
end
|
|
49254
49239
|
end
|
|
49255
49240
|
if feature.v ~= nil then
|
|
@@ -49294,8 +49279,6 @@ local ____exports = {}
|
|
|
49294
49279
|
local initDecoratedCallbacks, addCallback, removeCallback, initSaveDataManager, WRAPPED_CALLBACK_METHODS_KEY, WRAPPED_CUSTOM_CALLBACK_METHODS_KEY
|
|
49295
49280
|
local ____array = require("src.functions.array")
|
|
49296
49281
|
local isArray = ____array.isArray
|
|
49297
|
-
local ____deepCopy = require("src.functions.deepCopy")
|
|
49298
|
-
local deepCopy = ____deepCopy.deepCopy
|
|
49299
49282
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
49300
49283
|
local getTSTLClassConstructor = ____tstlClass.getTSTLClassConstructor
|
|
49301
49284
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
@@ -49305,26 +49288,29 @@ local isNumber = ____types.isNumber
|
|
|
49305
49288
|
local isTable = ____types.isTable
|
|
49306
49289
|
function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, vanilla, init)
|
|
49307
49290
|
local modFeatureConstructor = constructor
|
|
49308
|
-
local
|
|
49309
|
-
local
|
|
49310
|
-
if
|
|
49291
|
+
local callbackTuplesKey = vanilla and ____exports.MOD_FEATURE_CALLBACKS_KEY or ____exports.MOD_FEATURE_CUSTOM_CALLBACKS_KEY
|
|
49292
|
+
local callbackTuples = modFeatureConstructor[callbackTuplesKey]
|
|
49293
|
+
if callbackTuples == nil then
|
|
49311
49294
|
return
|
|
49312
49295
|
end
|
|
49313
|
-
if not isArray(nil,
|
|
49314
|
-
error(("Failed to initialize/uninitialize the decorated callbacks on a mod feature since the callback arguments on the key of \"" ..
|
|
49296
|
+
if not isArray(nil, callbackTuples) then
|
|
49297
|
+
error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuples))
|
|
49315
49298
|
end
|
|
49316
|
-
for ____,
|
|
49317
|
-
if not isArray(nil,
|
|
49318
|
-
error("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments was not an array
|
|
49299
|
+
for ____, callbackTuple in ipairs(callbackTuples) do
|
|
49300
|
+
if not isArray(nil, callbackTuple) then
|
|
49301
|
+
error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuple))
|
|
49319
49302
|
end
|
|
49320
|
-
local
|
|
49321
|
-
local modCallback = table.remove(parameters, 1)
|
|
49303
|
+
local modCallback = callbackTuple[1]
|
|
49322
49304
|
if not isNumber(nil, modCallback) then
|
|
49323
|
-
error("Failed to get the callback number from the
|
|
49305
|
+
error("Failed to get the callback number from the callback tuple for class: " .. tstlClassName)
|
|
49324
49306
|
end
|
|
49325
|
-
local callback =
|
|
49307
|
+
local callback = callbackTuple[2]
|
|
49326
49308
|
if not isFunction(nil, callback) then
|
|
49327
|
-
error("Failed to get the callback function from the
|
|
49309
|
+
error("Failed to get the callback function from the callback tuple for class: " .. tstlClassName)
|
|
49310
|
+
end
|
|
49311
|
+
local parameters = callbackTuple[3]
|
|
49312
|
+
if not isArray(nil, parameters, false) then
|
|
49313
|
+
error("Failed to get the callback parameters from the callback tuple for class: " .. tstlClassName)
|
|
49328
49314
|
end
|
|
49329
49315
|
local mod = modFeature.mod
|
|
49330
49316
|
if init then
|
|
@@ -49435,8 +49421,8 @@ function initSaveDataManager(self, modFeature, tstlClassName, init)
|
|
|
49435
49421
|
saveDataManagerMethod(nil, tstlClassName)
|
|
49436
49422
|
end
|
|
49437
49423
|
end
|
|
49438
|
-
____exports.
|
|
49439
|
-
____exports.
|
|
49424
|
+
____exports.MOD_FEATURE_CALLBACKS_KEY = "__callbacks"
|
|
49425
|
+
____exports.MOD_FEATURE_CUSTOM_CALLBACKS_KEY = "__customCallbacks"
|
|
49440
49426
|
WRAPPED_CALLBACK_METHODS_KEY = "__wrappedCallbackMethods"
|
|
49441
49427
|
WRAPPED_CUSTOM_CALLBACK_METHODS_KEY = "__wrappedCustomCallbacksMethods"
|
|
49442
49428
|
____exports.ModFeature = __TS__Class()
|
|
@@ -49868,19 +49854,13 @@ function ____exports.hasCurse(self, curse)
|
|
|
49868
49854
|
local curses = level:GetCurses()
|
|
49869
49855
|
return hasFlag(nil, curses, curse)
|
|
49870
49856
|
end
|
|
49871
|
-
return ____exports
|
|
49872
|
-
end,
|
|
49873
|
-
["src.types.AllButFirst"] = function(...)
|
|
49874
|
-
local ____exports = {}
|
|
49875
49857
|
return ____exports
|
|
49876
49858
|
end,
|
|
49877
49859
|
["src.functions.decorators"] = function(...)
|
|
49878
|
-
local ____lualib = require("lualib_bundle")
|
|
49879
|
-
local __TS__Spread = ____lualib.__TS__Spread
|
|
49880
49860
|
local ____exports = {}
|
|
49881
49861
|
local ____ModFeature = require("src.classes.ModFeature")
|
|
49882
|
-
local
|
|
49883
|
-
local
|
|
49862
|
+
local MOD_FEATURE_CALLBACKS_KEY = ____ModFeature.MOD_FEATURE_CALLBACKS_KEY
|
|
49863
|
+
local MOD_FEATURE_CUSTOM_CALLBACKS_KEY = ____ModFeature.MOD_FEATURE_CUSTOM_CALLBACKS_KEY
|
|
49884
49864
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
49885
49865
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
49886
49866
|
function ____exports.Callback(self, modCallback, ...)
|
|
@@ -49888,21 +49868,17 @@ function ____exports.Callback(self, modCallback, ...)
|
|
|
49888
49868
|
return function(____, target, propertyKey, _descriptor)
|
|
49889
49869
|
local methodName = propertyKey
|
|
49890
49870
|
local method = target[methodName]
|
|
49891
|
-
local
|
|
49892
|
-
modCallback,
|
|
49893
|
-
method,
|
|
49894
|
-
__TS__Spread(optionalArgs)
|
|
49895
|
-
}
|
|
49871
|
+
local callbackTuple = {modCallback, method, optionalArgs}
|
|
49896
49872
|
local constructor = target.constructor
|
|
49897
49873
|
if constructor == nil then
|
|
49898
49874
|
local tstlClassName = getTSTLClassName(nil, target) or "Unknown"
|
|
49899
49875
|
error(("Failed to get the constructor for class \"" .. tstlClassName) .. "\". Did you decorate a static method? You can only decorate non-static class methods, because the \"Mod\" object is not present before the class is instantiated.")
|
|
49900
49876
|
end
|
|
49901
|
-
if not (constructor[
|
|
49902
|
-
constructor[
|
|
49877
|
+
if not (constructor[MOD_FEATURE_CALLBACKS_KEY] ~= nil) then
|
|
49878
|
+
constructor[MOD_FEATURE_CALLBACKS_KEY] = {}
|
|
49903
49879
|
end
|
|
49904
|
-
local callbackTuples = constructor[
|
|
49905
|
-
callbackTuples[#callbackTuples + 1] =
|
|
49880
|
+
local callbackTuples = constructor[MOD_FEATURE_CALLBACKS_KEY]
|
|
49881
|
+
callbackTuples[#callbackTuples + 1] = callbackTuple
|
|
49906
49882
|
end
|
|
49907
49883
|
end
|
|
49908
49884
|
function ____exports.CallbackCustom(self, modCallbackCustom, ...)
|
|
@@ -49910,21 +49886,17 @@ function ____exports.CallbackCustom(self, modCallbackCustom, ...)
|
|
|
49910
49886
|
return function(____, target, propertyKey, _descriptor)
|
|
49911
49887
|
local methodName = propertyKey
|
|
49912
49888
|
local method = target[methodName]
|
|
49913
|
-
local
|
|
49914
|
-
modCallbackCustom,
|
|
49915
|
-
method,
|
|
49916
|
-
__TS__Spread(optionalArgs)
|
|
49917
|
-
}
|
|
49889
|
+
local callbackTuple = {modCallbackCustom, method, optionalArgs}
|
|
49918
49890
|
local constructor = target.constructor
|
|
49919
49891
|
if constructor == nil then
|
|
49920
49892
|
local tstlClassName = getTSTLClassName(nil, target) or "Unknown"
|
|
49921
49893
|
error(("Failed to get the constructor for class \"" .. tstlClassName) .. "\". Did you decorate a static method? You can only decorate non-static class methods, because the \"Mod\" object is not present before the class is instantiated.")
|
|
49922
49894
|
end
|
|
49923
|
-
if not (constructor[
|
|
49924
|
-
constructor[
|
|
49895
|
+
if not (constructor[MOD_FEATURE_CUSTOM_CALLBACKS_KEY] ~= nil) then
|
|
49896
|
+
constructor[MOD_FEATURE_CUSTOM_CALLBACKS_KEY] = {}
|
|
49925
49897
|
end
|
|
49926
|
-
local callbackTuples = constructor[
|
|
49927
|
-
callbackTuples[#callbackTuples + 1] =
|
|
49898
|
+
local callbackTuples = constructor[MOD_FEATURE_CUSTOM_CALLBACKS_KEY]
|
|
49899
|
+
callbackTuples[#callbackTuples + 1] = callbackTuple
|
|
49928
49900
|
end
|
|
49929
49901
|
end
|
|
49930
49902
|
return ____exports
|