isaacscript-common 6.20.2 → 6.22.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/callbacks/customRevive.d.ts +2 -1
- package/dist/callbacks/customRevive.d.ts.map +1 -1
- package/dist/callbacks/customRevive.lua +1 -3
- package/dist/callbacks/itemPickup.d.ts +2 -1
- package/dist/callbacks/itemPickup.d.ts.map +1 -1
- package/dist/callbacks/itemPickup.lua +0 -2
- package/dist/callbacks/postAmbush.d.ts +2 -1
- package/dist/callbacks/postAmbush.d.ts.map +1 -1
- package/dist/callbacks/postAmbush.lua +1 -3
- package/dist/callbacks/postBombExploded.d.ts +2 -1
- package/dist/callbacks/postBombExploded.d.ts.map +1 -1
- package/dist/callbacks/postBombExploded.lua +1 -3
- package/dist/callbacks/postBombInitLate.d.ts +2 -1
- package/dist/callbacks/postBombInitLate.d.ts.map +1 -1
- package/dist/callbacks/postBombInitLate.lua +0 -2
- package/dist/callbacks/postBoneSwing.d.ts +2 -1
- package/dist/callbacks/postBoneSwing.d.ts.map +1 -1
- package/dist/callbacks/postBoneSwing.lua +0 -2
- package/dist/callbacks/postCollectibleEmpty.d.ts +2 -1
- package/dist/callbacks/postCollectibleEmpty.d.ts.map +1 -1
- package/dist/callbacks/postCollectibleEmpty.lua +0 -2
- package/dist/callbacks/postCollectibleInitFirst.d.ts +2 -1
- package/dist/callbacks/postCollectibleInitFirst.d.ts.map +1 -1
- package/dist/callbacks/postCollectibleInitFirst.lua +0 -2
- package/dist/callbacks/postCursedTeleport.d.ts +2 -1
- package/dist/callbacks/postCursedTeleport.d.ts.map +1 -1
- package/dist/callbacks/postCursedTeleport.lua +1 -3
- package/dist/callbacks/postCustomDoorEnter.d.ts +3 -48
- package/dist/callbacks/postCustomDoorEnter.d.ts.map +1 -1
- package/dist/callbacks/postCustomDoorEnter.lua +3 -47
- package/dist/callbacks/postDiceRoomActivated.d.ts +2 -1
- package/dist/callbacks/postDiceRoomActivated.d.ts.map +1 -1
- package/dist/callbacks/postDiceRoomActivated.lua +0 -2
- package/dist/callbacks/postDoorRender.d.ts +2 -1
- package/dist/callbacks/postDoorRender.d.ts.map +1 -1
- package/dist/callbacks/postDoorRender.lua +0 -2
- package/dist/callbacks/postDoorUpdate.d.ts +2 -1
- package/dist/callbacks/postDoorUpdate.d.ts.map +1 -1
- package/dist/callbacks/postDoorUpdate.lua +0 -2
- package/dist/callbacks/postEffectInitLate.d.ts +2 -1
- package/dist/callbacks/postEffectInitLate.d.ts.map +1 -1
- package/dist/callbacks/postEffectInitLate.lua +0 -2
- package/dist/callbacks/postEffectStateChanged.d.ts +2 -1
- package/dist/callbacks/postEffectStateChanged.d.ts.map +1 -1
- package/dist/callbacks/postEffectStateChanged.lua +0 -2
- package/dist/callbacks/postEsauJr.d.ts +2 -1
- package/dist/callbacks/postEsauJr.d.ts.map +1 -1
- package/dist/callbacks/postEsauJr.lua +1 -3
- package/dist/callbacks/postFamiliarInitLate.d.ts +2 -1
- package/dist/callbacks/postFamiliarInitLate.d.ts.map +1 -1
- package/dist/callbacks/postFamiliarInitLate.lua +0 -2
- package/dist/callbacks/postFamiliarStateChanged.d.ts +2 -1
- package/dist/callbacks/postFamiliarStateChanged.d.ts.map +1 -1
- package/dist/callbacks/postFamiliarStateChanged.lua +0 -2
- package/dist/callbacks/postFlip.d.ts +2 -1
- package/dist/callbacks/postFlip.d.ts.map +1 -1
- package/dist/callbacks/postFlip.lua +0 -2
- package/dist/callbacks/postGreedModeWave.d.ts +2 -1
- package/dist/callbacks/postGreedModeWave.d.ts.map +1 -1
- package/dist/callbacks/postGreedModeWave.lua +1 -3
- package/dist/callbacks/postGridEntity.d.ts +2 -1
- package/dist/callbacks/postGridEntity.d.ts.map +1 -1
- package/dist/callbacks/postGridEntity.lua +0 -2
- package/dist/callbacks/postGridEntityCollision.d.ts +2 -1
- package/dist/callbacks/postGridEntityCollision.d.ts.map +1 -1
- package/dist/callbacks/postGridEntityCollision.lua +0 -2
- package/dist/callbacks/postGridEntityCustomCollision.d.ts +2 -1
- package/dist/callbacks/postGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/callbacks/postGridEntityCustomCollision.lua +0 -2
- package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -1
- package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -1
- package/dist/callbacks/postGridEntityCustomRender.lua +0 -2
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -1
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -1
- package/dist/callbacks/postGridEntityCustomUpdate.lua +0 -2
- package/dist/callbacks/postGridEntityRender.d.ts +2 -1
- package/dist/callbacks/postGridEntityRender.d.ts.map +1 -1
- package/dist/callbacks/postGridEntityRender.lua +0 -2
- package/dist/callbacks/postHolyMantleRemoved.d.ts +2 -1
- package/dist/callbacks/postHolyMantleRemoved.d.ts.map +1 -1
- package/dist/callbacks/postHolyMantleRemoved.lua +0 -2
- package/dist/callbacks/postItemDischarged.d.ts.map +1 -1
- package/dist/callbacks/postItemDischarged.lua +16 -16
- package/dist/callbacks/postKnifeInitLate.d.ts +2 -1
- package/dist/callbacks/postKnifeInitLate.d.ts.map +1 -1
- package/dist/callbacks/postKnifeInitLate.lua +0 -2
- package/dist/callbacks/postLaserInitLate.d.ts +2 -1
- package/dist/callbacks/postLaserInitLate.d.ts.map +1 -1
- package/dist/callbacks/postLaserInitLate.lua +0 -2
- package/dist/callbacks/postNPCInitLate.d.ts +2 -1
- package/dist/callbacks/postNPCInitLate.d.ts.map +1 -1
- package/dist/callbacks/postNPCInitLate.lua +0 -2
- package/dist/callbacks/postNPCStateChanged.d.ts +2 -1
- package/dist/callbacks/postNPCStateChanged.d.ts.map +1 -1
- package/dist/callbacks/postNPCStateChanged.lua +0 -2
- package/dist/callbacks/postNewRoomEarly.d.ts +2 -1
- package/dist/callbacks/postNewRoomEarly.d.ts.map +1 -1
- package/dist/callbacks/postNewRoomEarly.lua +1 -3
- package/dist/callbacks/postPickupCollect.d.ts +2 -1
- package/dist/callbacks/postPickupCollect.d.ts.map +1 -1
- package/dist/callbacks/postPickupCollect.lua +0 -2
- package/dist/callbacks/postPickupInitFirst.d.ts +2 -1
- package/dist/callbacks/postPickupInitFirst.d.ts.map +1 -1
- package/dist/callbacks/postPickupInitFirst.lua +1 -3
- package/dist/callbacks/postPickupInitLate.d.ts +2 -1
- package/dist/callbacks/postPickupInitLate.d.ts.map +1 -1
- package/dist/callbacks/postPickupInitLate.lua +0 -2
- package/dist/callbacks/postPickupStateChanged.d.ts +2 -1
- package/dist/callbacks/postPickupStateChanged.d.ts.map +1 -1
- package/dist/callbacks/postPickupStateChanged.lua +0 -2
- package/dist/callbacks/postPitRender.d.ts +2 -1
- package/dist/callbacks/postPitRender.d.ts.map +1 -1
- package/dist/callbacks/postPitRender.lua +0 -2
- package/dist/callbacks/postPitUpdate.d.ts +2 -1
- package/dist/callbacks/postPitUpdate.d.ts.map +1 -1
- package/dist/callbacks/postPitUpdate.lua +0 -2
- package/dist/callbacks/postPlayerChangeHealth.d.ts +2 -1
- package/dist/callbacks/postPlayerChangeHealth.d.ts.map +1 -1
- package/dist/callbacks/postPlayerChangeHealth.lua +0 -2
- package/dist/callbacks/postPlayerChangeType.d.ts +2 -1
- package/dist/callbacks/postPlayerChangeType.d.ts.map +1 -1
- package/dist/callbacks/postPlayerChangeType.lua +0 -2
- package/dist/callbacks/postPlayerCollectible.d.ts +2 -1
- package/dist/callbacks/postPlayerCollectible.d.ts.map +1 -1
- package/dist/callbacks/postPlayerCollectible.lua +0 -2
- package/dist/callbacks/postPlayerFatalDamage.d.ts +2 -1
- package/dist/callbacks/postPlayerFatalDamage.d.ts.map +1 -1
- package/dist/callbacks/postPlayerFatalDamage.lua +1 -3
- package/dist/callbacks/postPlayerInitFirst.d.ts +2 -1
- package/dist/callbacks/postPlayerInitFirst.d.ts.map +1 -1
- package/dist/callbacks/postPlayerInitFirst.lua +0 -2
- package/dist/callbacks/postPlayerInitLate.d.ts +2 -1
- package/dist/callbacks/postPlayerInitLate.d.ts.map +1 -1
- package/dist/callbacks/postPlayerInitLate.lua +0 -2
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts +2 -1
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/callbacks/postPlayerReorderedCallbacks.lua +0 -2
- package/dist/callbacks/postPoopRender.d.ts +2 -1
- package/dist/callbacks/postPoopRender.d.ts.map +1 -1
- package/dist/callbacks/postPoopRender.lua +0 -2
- package/dist/callbacks/postPoopUpdate.d.ts +2 -1
- package/dist/callbacks/postPoopUpdate.d.ts.map +1 -1
- package/dist/callbacks/postPoopUpdate.lua +0 -2
- package/dist/callbacks/postPressurePlateRender.d.ts +2 -1
- package/dist/callbacks/postPressurePlateRender.d.ts.map +1 -1
- package/dist/callbacks/postPressurePlateRender.lua +0 -2
- package/dist/callbacks/postPressurePlateUpdate.d.ts +2 -1
- package/dist/callbacks/postPressurePlateUpdate.d.ts.map +1 -1
- package/dist/callbacks/postPressurePlateUpdate.lua +0 -2
- package/dist/callbacks/postProjectileInitLate.d.ts +2 -1
- package/dist/callbacks/postProjectileInitLate.d.ts.map +1 -1
- package/dist/callbacks/postProjectileInitLate.lua +0 -2
- package/dist/callbacks/postPurchase.d.ts +2 -1
- package/dist/callbacks/postPurchase.d.ts.map +1 -1
- package/dist/callbacks/postPurchase.lua +0 -2
- package/dist/callbacks/postRockRender.d.ts +2 -1
- package/dist/callbacks/postRockRender.d.ts.map +1 -1
- package/dist/callbacks/postRockRender.lua +0 -2
- package/dist/callbacks/postRockUpdate.d.ts +2 -1
- package/dist/callbacks/postRockUpdate.d.ts.map +1 -1
- package/dist/callbacks/postRockUpdate.lua +0 -2
- package/dist/callbacks/postRoomClearChanged.d.ts +2 -1
- package/dist/callbacks/postRoomClearChanged.d.ts.map +1 -1
- package/dist/callbacks/postRoomClearChanged.lua +1 -3
- package/dist/callbacks/postSacrifice.d.ts +2 -1
- package/dist/callbacks/postSacrifice.d.ts.map +1 -1
- package/dist/callbacks/postSacrifice.lua +1 -3
- package/dist/callbacks/postSlotDestroyed.d.ts +2 -1
- package/dist/callbacks/postSlotDestroyed.d.ts.map +1 -1
- package/dist/callbacks/postSlotDestroyed.lua +1 -3
- package/dist/callbacks/postSlotInitUpdate.d.ts +2 -1
- package/dist/callbacks/postSlotInitUpdate.d.ts.map +1 -1
- package/dist/callbacks/postSlotInitUpdate.lua +0 -2
- package/dist/callbacks/postSlotRender.d.ts +2 -1
- package/dist/callbacks/postSlotRender.d.ts.map +1 -1
- package/dist/callbacks/postSlotRender.lua +0 -2
- package/dist/callbacks/postSpikesRender.d.ts +2 -1
- package/dist/callbacks/postSpikesRender.d.ts.map +1 -1
- package/dist/callbacks/postSpikesRender.lua +0 -2
- package/dist/callbacks/postSpikesUpdate.d.ts +2 -1
- package/dist/callbacks/postSpikesUpdate.d.ts.map +1 -1
- package/dist/callbacks/postSpikesUpdate.lua +0 -2
- package/dist/callbacks/postTNTRender.d.ts +2 -1
- package/dist/callbacks/postTNTRender.d.ts.map +1 -1
- package/dist/callbacks/postTNTRender.lua +0 -2
- package/dist/callbacks/postTNTUpdate.d.ts +2 -1
- package/dist/callbacks/postTNTUpdate.d.ts.map +1 -1
- package/dist/callbacks/postTNTUpdate.lua +0 -2
- package/dist/callbacks/postTearInitLate.d.ts +2 -1
- package/dist/callbacks/postTearInitLate.d.ts.map +1 -1
- package/dist/callbacks/postTearInitLate.lua +0 -2
- package/dist/callbacks/postTearInitVeryLate.d.ts +2 -1
- package/dist/callbacks/postTearInitVeryLate.d.ts.map +1 -1
- package/dist/callbacks/postTearInitVeryLate.lua +0 -2
- package/dist/callbacks/postTransformation.d.ts +2 -1
- package/dist/callbacks/postTransformation.d.ts.map +1 -1
- package/dist/callbacks/postTransformation.lua +0 -2
- package/dist/callbacks/postTrinketBreak.d.ts +2 -1
- package/dist/callbacks/postTrinketBreak.d.ts.map +1 -1
- package/dist/callbacks/postTrinketBreak.lua +0 -2
- package/dist/callbacks/preBerserkDeath.d.ts +2 -1
- package/dist/callbacks/preBerserkDeath.d.ts.map +1 -1
- package/dist/callbacks/preBerserkDeath.lua +0 -2
- package/dist/callbacks/preNewLevel.d.ts +2 -1
- package/dist/callbacks/preNewLevel.d.ts.map +1 -1
- package/dist/callbacks/preNewLevel.lua +0 -2
- package/dist/callbacks/reorderedCallbacks.d.ts +4 -28
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
- package/dist/callbacks/reorderedCallbacks.lua +4 -25
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts +3 -0
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postAmbushFinished.lua +0 -6
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts +3 -0
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postAmbushStarted.lua +0 -6
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postBombInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts +3 -0
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postBoneExploded.lua +0 -6
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts +3 -0
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postBoneSwing.lua +0 -6
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts +3 -0
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postCollectibleEmpty.lua +0 -6
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +3 -0
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +0 -6
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -0
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +0 -6
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +3 -0
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +0 -6
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +3 -0
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postCustomRevive.lua +0 -6
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts +3 -0
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postDiceRoomActivated.lua +0 -6
- package/dist/callbacks/subscriptions/postDoorRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postDoorRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postDoorRender.lua +0 -6
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postDoorUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postEffectStateChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -0
- package/dist/callbacks/subscriptions/postEsauJr.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postEsauJr.lua +0 -6
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -0
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +0 -6
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -0
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +0 -6
- package/dist/callbacks/subscriptions/postFlip.d.ts +3 -0
- package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFlip.lua +0 -6
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGreedModeWave.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityBroken.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts +2 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.lua +0 -4
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityRender.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +3 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +0 -6
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postItemDischarged.lua +0 -6
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +3 -0
- package/dist/callbacks/subscriptions/postItemPickup.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postItemPickup.lua +0 -6
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postNPCStateChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +3 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +0 -6
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPickupCollect.lua +0 -6
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPickupInitFirst.lua +0 -6
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPickupStateChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postPitRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPitRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPitRender.lua +0 -6
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPitUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerInitFirst.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +0 -6
- package/dist/callbacks/subscriptions/postPoopRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPoopRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPoopRender.lua +0 -6
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPoopUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPressurePlateRender.lua +0 -6
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postPurchase.d.ts +3 -0
- package/dist/callbacks/subscriptions/postPurchase.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postPurchase.lua +0 -6
- package/dist/callbacks/subscriptions/postRockRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postRockRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postRockRender.lua +0 -6
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postRockUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postRoomClearChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSacrifice.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSacrifice.lua +0 -6
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +0 -6
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +0 -6
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSlotInit.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSlotInit.lua +0 -6
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSlotRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSlotRender.lua +0 -6
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSpikesRender.lua +0 -6
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postSpikesUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postTNTRender.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTNTRender.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTNTRender.lua +0 -6
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTNTUpdate.lua +0 -6
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTearInitLate.lua +0 -6
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +0 -6
- package/dist/callbacks/subscriptions/postTransformation.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTransformation.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTransformation.lua +0 -6
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +3 -0
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +0 -6
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +3 -0
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +0 -6
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -0
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/preCustomRevive.lua +0 -6
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +3 -0
- package/dist/callbacks/subscriptions/preItemPickup.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/preItemPickup.lua +0 -6
- package/dist/callbacks/subscriptions/preNewLevel.d.ts +3 -0
- package/dist/callbacks/subscriptions/preNewLevel.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/preNewLevel.lua +0 -6
- package/dist/classes/ModUpgraded.d.ts +1 -1
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/index.d.ts +3 -0
- package/dist/classes/index.d.ts.map +1 -0
- package/dist/classes/index.lua +18 -0
- package/dist/classes/indexTypeDoc.d.ts +3 -0
- package/dist/classes/indexTypeDoc.d.ts.map +1 -0
- package/dist/classes/indexTypeDoc.lua +4 -0
- package/dist/{cachedClasses.d.ts → core/cachedClasses.d.ts} +0 -0
- package/dist/core/cachedClasses.d.ts.map +1 -0
- package/dist/{cachedClasses.lua → core/cachedClasses.lua} +0 -0
- package/dist/{constants.d.ts → core/constants.d.ts} +6 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/{constants.lua → core/constants.lua} +6 -2
- package/dist/{constantsFirstLast.d.ts → core/constantsFirstLast.d.ts} +2 -2
- package/dist/core/constantsFirstLast.d.ts.map +1 -0
- package/dist/{constantsFirstLast.lua → core/constantsFirstLast.lua} +4 -4
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.lua +34 -0
- package/dist/core/indexTypeDoc.d.ts +5 -0
- package/dist/core/indexTypeDoc.d.ts.map +1 -0
- package/dist/core/indexTypeDoc.lua +6 -0
- package/dist/{upgradeMod.d.ts → core/upgradeMod.d.ts} +1 -1
- package/dist/core/upgradeMod.d.ts.map +1 -0
- package/dist/{upgradeMod.lua → core/upgradeMod.lua} +0 -0
- package/dist/enums/RockAltType.d.ts +12 -1
- package/dist/enums/RockAltType.d.ts.map +1 -1
- package/dist/enums/RockAltType.lua +4 -2
- package/dist/enums/index.d.ts +9 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.lua +66 -0
- package/dist/enums/indexTypeDoc.d.ts +9 -0
- package/dist/enums/indexTypeDoc.d.ts.map +1 -0
- package/dist/enums/indexTypeDoc.lua +10 -0
- package/dist/enums/private/StageTravelState.d.ts +4 -3
- package/dist/enums/private/StageTravelState.d.ts.map +1 -1
- package/dist/enums/private/StageTravelState.lua +6 -4
- package/dist/features/characterHealthConversion.d.ts +1 -0
- package/dist/features/characterHealthConversion.d.ts.map +1 -1
- package/dist/features/characterHealthConversion.lua +0 -2
- package/dist/features/characterStats.d.ts +1 -0
- package/dist/features/characterStats.d.ts.map +1 -1
- package/dist/features/characterStats.lua +0 -2
- package/dist/features/collectibleItemPoolType.d.ts +1 -0
- package/dist/features/collectibleItemPoolType.d.ts.map +1 -1
- package/dist/features/collectibleItemPoolType.lua +1 -3
- package/dist/features/customDoor.d.ts +51 -0
- package/dist/features/customDoor.d.ts.map +1 -0
- package/dist/features/customDoor.lua +53 -0
- package/dist/features/customGridEntity.d.ts +2 -0
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +2 -4
- package/dist/features/customStage/backdrop.d.ts +1 -1
- package/dist/features/customStage/backdrop.d.ts.map +1 -1
- package/dist/features/customStage/backdrop.lua +5 -4
- package/dist/features/customStage/customStageConstants.d.ts +11 -0
- package/dist/features/customStage/customStageConstants.d.ts.map +1 -1
- package/dist/features/customStage/customStageConstants.lua +10 -0
- package/dist/features/customStage/customStageGridEntities.d.ts +2 -1
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +65 -23
- package/dist/features/customStage/exports.d.ts +22 -6
- package/dist/features/customStage/exports.d.ts.map +1 -1
- package/dist/features/customStage/exports.lua +66 -55
- package/dist/features/customStage/init.d.ts.map +1 -1
- package/dist/features/customStage/init.lua +7 -12
- package/dist/features/customStage/shadows.d.ts +1 -1
- package/dist/features/customStage/shadows.d.ts.map +1 -1
- package/dist/features/customStage/shadows.lua +3 -2
- package/dist/features/customStage/streakText.d.ts +1 -8
- package/dist/features/customStage/streakText.d.ts.map +1 -1
- package/dist/features/customStage/streakText.lua +54 -87
- package/dist/features/customStage/v.d.ts +14 -1
- package/dist/features/customStage/v.d.ts.map +1 -1
- package/dist/features/customStage/v.lua +6 -1
- package/dist/features/customStage/versusScreen.d.ts +1 -1
- package/dist/features/customStage/versusScreen.d.ts.map +1 -1
- package/dist/features/customStage/versusScreen.lua +33 -2
- package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
- package/dist/features/customTrapdoor/blackSprite.lua +2 -2
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +4 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
- package/dist/features/customTrapdoor/exports.d.ts +11 -7
- package/dist/features/customTrapdoor/exports.d.ts.map +1 -1
- package/dist/features/customTrapdoor/exports.lua +7 -6
- package/dist/features/customTrapdoor/init.d.ts.map +1 -1
- package/dist/features/customTrapdoor/init.lua +36 -21
- package/dist/features/customTrapdoor/openClose.lua +1 -1
- package/dist/features/customTrapdoor/touched.lua +2 -2
- package/dist/features/customTrapdoor/v.d.ts +2 -2
- package/dist/features/customTrapdoor/v.d.ts.map +1 -1
- package/dist/features/deployJSONRoom.d.ts +2 -0
- package/dist/features/deployJSONRoom.d.ts.map +1 -1
- package/dist/features/deployJSONRoom.lua +2 -4
- package/dist/features/disableAllSound.d.ts +2 -0
- package/dist/features/disableAllSound.d.ts.map +1 -1
- package/dist/features/disableAllSound.lua +1 -3
- package/dist/features/disableInputs.d.ts +1 -0
- package/dist/features/disableInputs.d.ts.map +1 -1
- package/dist/features/disableInputs.lua +0 -2
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.lua +4 -4
- package/dist/features/extraConsoleCommands/init.lua +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +3 -3
- package/dist/features/fadeInRemover.d.ts +2 -0
- package/dist/features/fadeInRemover.d.ts.map +1 -1
- package/dist/features/fadeInRemover.lua +1 -3
- package/dist/features/fastReset.d.ts +2 -0
- package/dist/features/fastReset.d.ts.map +1 -1
- package/dist/features/fastReset.lua +1 -3
- package/dist/features/forgottenSwitch.d.ts +2 -0
- package/dist/features/forgottenSwitch.d.ts.map +1 -1
- package/dist/features/forgottenSwitch.lua +0 -2
- package/dist/features/index.d.ts +30 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/index.lua +216 -0
- package/dist/features/indexTypeDoc.d.ts +30 -0
- package/dist/features/indexTypeDoc.d.ts.map +1 -0
- package/dist/features/indexTypeDoc.lua +31 -0
- package/dist/features/pause.d.ts +2 -0
- package/dist/features/pause.d.ts.map +1 -1
- package/dist/features/pause.lua +1 -3
- package/dist/features/persistentEntities.d.ts +2 -0
- package/dist/features/persistentEntities.d.ts.map +1 -1
- package/dist/features/persistentEntities.lua +0 -2
- package/dist/features/pickupIndex.d.ts.map +1 -1
- package/dist/features/pickupIndex.lua +2 -2
- package/dist/features/playerInventory.d.ts +9 -0
- package/dist/features/playerInventory.d.ts.map +1 -1
- package/dist/features/playerInventory.lua +7 -2
- package/dist/features/ponyDetection.d.ts +2 -0
- package/dist/features/ponyDetection.d.ts.map +1 -1
- package/dist/features/ponyDetection.lua +0 -2
- package/dist/features/preventCollectibleRotation.d.ts +1 -0
- package/dist/features/preventCollectibleRotation.d.ts.map +1 -1
- package/dist/features/preventCollectibleRotation.lua +1 -3
- package/dist/features/registerHotkey.d.ts +1 -0
- package/dist/features/registerHotkey.d.ts.map +1 -1
- package/dist/features/registerHotkey.lua +0 -2
- package/dist/features/roomClearFrame.d.ts +2 -0
- package/dist/features/roomClearFrame.d.ts.map +1 -1
- package/dist/features/roomClearFrame.lua +1 -3
- package/dist/features/roomHistory.d.ts +2 -0
- package/dist/features/roomHistory.d.ts.map +1 -1
- package/dist/features/roomHistory.lua +1 -3
- package/dist/features/runInNFrames.d.ts +2 -0
- package/dist/features/runInNFrames.d.ts.map +1 -1
- package/dist/features/runInNFrames.lua +1 -3
- package/dist/features/runNextRoom.d.ts +2 -0
- package/dist/features/runNextRoom.d.ts.map +1 -1
- package/dist/features/runNextRoom.lua +0 -2
- package/dist/features/saveDataManager/exports.d.ts +3 -0
- package/dist/features/saveDataManager/exports.d.ts.map +1 -1
- package/dist/features/saveDataManager/exports.lua +3 -0
- package/dist/features/saveDataManager/main.d.ts +4 -0
- package/dist/features/saveDataManager/main.d.ts.map +1 -1
- package/dist/features/saveDataManager/main.lua +1 -7
- package/dist/features/sirenHelpers.d.ts +1 -0
- package/dist/features/sirenHelpers.d.ts.map +1 -1
- package/dist/features/sirenHelpers.lua +0 -2
- package/dist/features/stageHistory.d.ts +2 -0
- package/dist/features/stageHistory.d.ts.map +1 -1
- package/dist/features/stageHistory.lua +1 -3
- package/dist/features/taintedLazarusPlayers.d.ts +2 -0
- package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
- package/dist/features/taintedLazarusPlayers.lua +0 -2
- package/dist/featuresInitialized.d.ts +3 -1
- package/dist/featuresInitialized.d.ts.map +1 -1
- package/dist/featuresInitialized.lua +0 -6
- package/dist/functions/bosses.lua +1 -1
- package/dist/functions/cards.lua +2 -2
- package/dist/functions/characters.lua +1 -1
- package/dist/functions/charge.lua +1 -1
- package/dist/functions/collectibleCacheFlag.lua +1 -1
- package/dist/functions/collectibleSet.d.ts +1 -1
- package/dist/functions/collectibleSet.lua +3 -3
- package/dist/functions/collectibleTag.lua +1 -1
- package/dist/functions/collectibles.lua +3 -3
- package/dist/functions/curses.lua +1 -1
- package/dist/functions/deepCopyTests.d.ts.map +1 -1
- package/dist/functions/deepCopyTests.lua +5 -1
- package/dist/functions/dimensions.lua +2 -2
- package/dist/functions/doors.d.ts +10 -0
- package/dist/functions/doors.d.ts.map +1 -1
- package/dist/functions/doors.lua +7 -1
- package/dist/functions/entities.lua +2 -2
- package/dist/functions/entitiesSpecific.lua +1 -1
- package/dist/functions/familiars.lua +1 -1
- package/dist/functions/gridEntities.lua +2 -2
- package/dist/functions/index.d.ts +98 -0
- package/dist/functions/index.d.ts.map +1 -0
- package/dist/functions/index.lua +778 -0
- package/dist/functions/indexTypeDoc.d.ts +98 -0
- package/dist/functions/indexTypeDoc.d.ts.map +1 -0
- package/dist/functions/indexTypeDoc.lua +99 -0
- package/dist/functions/itemPool.lua +1 -1
- package/dist/functions/level.lua +1 -1
- package/dist/functions/levelGrid.lua +2 -2
- package/dist/functions/log.d.ts +1 -15
- package/dist/functions/log.d.ts.map +1 -1
- package/dist/functions/log.lua +4 -219
- package/dist/functions/logEntities.d.ts +16 -0
- package/dist/functions/logEntities.d.ts.map +1 -0
- package/dist/functions/logEntities.lua +220 -0
- package/dist/functions/mergeTests.d.ts.map +1 -1
- package/dist/functions/mergeTests.lua +5 -1
- package/dist/functions/minimap.lua +1 -1
- package/dist/functions/nextStage.lua +1 -1
- package/dist/functions/npcs.lua +1 -1
- package/dist/functions/pickupsSpecific.lua +1 -1
- package/dist/functions/pills.lua +2 -2
- package/dist/functions/playerCenter.lua +2 -2
- package/dist/functions/playerHealth.lua +1 -1
- package/dist/functions/playerIndex.lua +1 -1
- package/dist/functions/players.lua +1 -1
- package/dist/functions/positionVelocity.lua +2 -2
- package/dist/functions/pressurePlate.lua +1 -1
- package/dist/functions/reorderedCallbacks.d.ts +30 -0
- package/dist/functions/reorderedCallbacks.d.ts.map +1 -0
- package/dist/functions/reorderedCallbacks.lua +34 -0
- package/dist/functions/revive.lua +2 -2
- package/dist/functions/rng.lua +1 -1
- package/dist/functions/rockAlt.d.ts +6 -5
- package/dist/functions/rockAlt.d.ts.map +1 -1
- package/dist/functions/rockAlt.lua +149 -20
- package/dist/functions/roomData.lua +1 -1
- package/dist/functions/roomTransition.d.ts +26 -0
- package/dist/functions/roomTransition.d.ts.map +1 -0
- package/dist/functions/roomTransition.lua +75 -0
- package/dist/functions/rooms.d.ts +1 -18
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.lua +5 -54
- package/dist/functions/run.lua +2 -2
- package/dist/functions/seeds.lua +1 -1
- package/dist/functions/sound.lua +1 -1
- package/dist/functions/spawnCollectible.lua +1 -1
- package/dist/functions/sprites.lua +1 -1
- package/dist/functions/stage.lua +1 -1
- package/dist/functions/trinkets.lua +2 -2
- package/dist/functions/ui.lua +2 -2
- package/dist/functions/utils.lua +1 -1
- package/dist/index.d.ts +9 -151
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +8 -1055
- package/dist/indexTypeDoc.d.ts +10 -0
- package/dist/indexTypeDoc.d.ts.map +1 -0
- package/dist/indexTypeDoc.lua +11 -0
- package/dist/interfaces/CustomStageLua.d.ts +22 -3
- package/dist/interfaces/CustomStageLua.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/{CustomStage.lua → index.lua} +0 -0
- package/dist/interfaces/indexTypeDoc.d.ts +11 -0
- package/dist/interfaces/indexTypeDoc.d.ts.map +1 -0
- package/dist/interfaces/indexTypeDoc.lua +2 -0
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts +178 -0
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts.map +1 -0
- package/dist/interfaces/{AddCallbackParameterCustom.lua → private/AddCallbackParameterCustom.lua} +0 -0
- package/dist/interfaces/{CustomStage.d.ts → private/CustomStage.d.ts} +1 -1
- package/dist/interfaces/private/CustomStage.d.ts.map +1 -0
- package/dist/interfaces/private/CustomStage.lua +2 -0
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +2 -2
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
- package/dist/maps/index.d.ts +5 -0
- package/dist/maps/index.d.ts.map +1 -0
- package/dist/maps/index.lua +34 -0
- package/dist/maps/indexTypeDoc.d.ts +5 -0
- package/dist/maps/indexTypeDoc.d.ts.map +1 -0
- package/dist/maps/indexTypeDoc.lua +6 -0
- package/dist/objects/LRoomShapeToRectangles.lua +1 -1
- package/dist/objects/backdropTypeToRockAltType.lua +3 -3
- package/dist/objects/callbackRegisterFunctions.d.ts +1 -1
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/directionToVector.lua +1 -1
- package/dist/objects/index.d.ts +2 -0
- package/dist/objects/index.d.ts.map +1 -0
- package/dist/objects/index.lua +10 -0
- package/dist/objects/indexTypeDoc.d.ts +2 -0
- package/dist/objects/indexTypeDoc.d.ts.map +1 -0
- package/dist/objects/indexTypeDoc.lua +3 -0
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +1 -1
- package/dist/objects/roomShapeToTopLeftPosition.lua +1 -1
- package/dist/patchErrorFunctions.d.ts +9 -1
- package/dist/patchErrorFunctions.d.ts.map +1 -1
- package/dist/patchErrorFunctions.lua +0 -2
- package/dist/types/Immutable.d.ts +15 -0
- package/dist/types/Immutable.d.ts.map +1 -0
- package/dist/types/Immutable.lua +2 -0
- package/dist/types/PickingUpItem.d.ts +2 -0
- package/dist/types/PickingUpItem.d.ts.map +1 -1
- package/dist/types/PickingUpItem.lua +0 -4
- package/dist/types/TrapdoorDestination.d.ts +3 -0
- package/dist/types/TrapdoorDestination.d.ts.map +1 -0
- package/dist/types/TrapdoorDestination.lua +2 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.lua +10 -0
- package/dist/types/indexTypeDoc.d.ts +12 -0
- package/dist/types/indexTypeDoc.d.ts.map +1 -0
- package/dist/types/indexTypeDoc.lua +3 -0
- package/package.json +2 -2
- package/src/callbacks/customRevive.ts +1 -2
- package/src/callbacks/itemPickup.ts +0 -1
- package/src/callbacks/postAmbush.ts +1 -2
- package/src/callbacks/postBombExploded.ts +1 -2
- package/src/callbacks/postBombInitLate.ts +0 -1
- package/src/callbacks/postBoneSwing.ts +0 -1
- package/src/callbacks/postCollectibleEmpty.ts +0 -1
- package/src/callbacks/postCollectibleInitFirst.ts +0 -1
- package/src/callbacks/postCursedTeleport.ts +1 -2
- package/src/callbacks/postCustomDoorEnter.ts +3 -50
- package/src/callbacks/postDiceRoomActivated.ts +0 -1
- package/src/callbacks/postDoorRender.ts +0 -1
- package/src/callbacks/postDoorUpdate.ts +0 -1
- package/src/callbacks/postEffectInitLate.ts +0 -1
- package/src/callbacks/postEffectStateChanged.ts +0 -1
- package/src/callbacks/postEsauJr.ts +1 -2
- package/src/callbacks/postFamiliarInitLate.ts +0 -1
- package/src/callbacks/postFamiliarStateChanged.ts +0 -1
- package/src/callbacks/postFlip.ts +0 -1
- package/src/callbacks/postGreedModeWave.ts +1 -2
- package/src/callbacks/postGridEntity.ts +0 -1
- package/src/callbacks/postGridEntityCollision.ts +0 -1
- package/src/callbacks/postGridEntityCustomCollision.ts +0 -1
- package/src/callbacks/postGridEntityCustomRender.ts +0 -1
- package/src/callbacks/postGridEntityCustomUpdate.ts +0 -1
- package/src/callbacks/postGridEntityRender.ts +0 -1
- package/src/callbacks/postHolyMantleRemoved.ts +0 -1
- package/src/callbacks/postItemDischarged.ts +14 -17
- package/src/callbacks/postKnifeInitLate.ts +0 -1
- package/src/callbacks/postLaserInitLate.ts +0 -1
- package/src/callbacks/postNPCInitLate.ts +0 -1
- package/src/callbacks/postNPCStateChanged.ts +0 -1
- package/src/callbacks/postNewRoomEarly.ts +1 -2
- package/src/callbacks/postPickupCollect.ts +0 -1
- package/src/callbacks/postPickupInitFirst.ts +1 -2
- package/src/callbacks/postPickupInitLate.ts +0 -1
- package/src/callbacks/postPickupStateChanged.ts +0 -1
- package/src/callbacks/postPitRender.ts +0 -1
- package/src/callbacks/postPitUpdate.ts +0 -1
- package/src/callbacks/postPlayerChangeHealth.ts +0 -1
- package/src/callbacks/postPlayerChangeType.ts +0 -1
- package/src/callbacks/postPlayerCollectible.ts +0 -1
- package/src/callbacks/postPlayerFatalDamage.ts +1 -2
- package/src/callbacks/postPlayerInitFirst.ts +0 -1
- package/src/callbacks/postPlayerInitLate.ts +0 -1
- package/src/callbacks/postPlayerReorderedCallbacks.ts +0 -1
- package/src/callbacks/postPoopRender.ts +0 -1
- package/src/callbacks/postPoopUpdate.ts +0 -1
- package/src/callbacks/postPressurePlateRender.ts +0 -1
- package/src/callbacks/postPressurePlateUpdate.ts +0 -1
- package/src/callbacks/postProjectileInitLate.ts +0 -1
- package/src/callbacks/postPurchase.ts +0 -1
- package/src/callbacks/postRockRender.ts +0 -1
- package/src/callbacks/postRockUpdate.ts +0 -1
- package/src/callbacks/postRoomClearChanged.ts +1 -2
- package/src/callbacks/postSacrifice.ts +1 -2
- package/src/callbacks/postSlotDestroyed.ts +1 -2
- package/src/callbacks/postSlotInitUpdate.ts +0 -1
- package/src/callbacks/postSlotRender.ts +0 -1
- package/src/callbacks/postSpikesRender.ts +0 -1
- package/src/callbacks/postSpikesUpdate.ts +0 -1
- package/src/callbacks/postTNTRender.ts +0 -1
- package/src/callbacks/postTNTUpdate.ts +0 -1
- package/src/callbacks/postTearInitLate.ts +0 -1
- package/src/callbacks/postTearInitVeryLate.ts +0 -1
- package/src/callbacks/postTransformation.ts +0 -1
- package/src/callbacks/postTrinketBreak.ts +0 -1
- package/src/callbacks/preBerserkDeath.ts +0 -1
- package/src/callbacks/preNewLevel.ts +0 -1
- package/src/callbacks/reorderedCallbacks.ts +4 -30
- package/src/callbacks/subscriptions/postAmbushFinished.ts +0 -3
- package/src/callbacks/subscriptions/postAmbushStarted.ts +0 -3
- package/src/callbacks/subscriptions/postBombInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postBoneExploded.ts +0 -3
- package/src/callbacks/subscriptions/postBoneSwing.ts +0 -3
- package/src/callbacks/subscriptions/postCollectibleEmpty.ts +0 -3
- package/src/callbacks/subscriptions/postCollectibleInitFirst.ts +0 -3
- package/src/callbacks/subscriptions/postCursedTeleport.ts +0 -3
- package/src/callbacks/subscriptions/postCustomDoorEnter.ts +0 -3
- package/src/callbacks/subscriptions/postCustomRevive.ts +0 -3
- package/src/callbacks/subscriptions/postDiceRoomActivated.ts +0 -3
- package/src/callbacks/subscriptions/postDoorRender.ts +0 -3
- package/src/callbacks/subscriptions/postDoorUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postEffectInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postEffectStateChanged.ts +0 -3
- package/src/callbacks/subscriptions/postEsauJr.ts +0 -3
- package/src/callbacks/subscriptions/postFamiliarInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postFamiliarStateChanged.ts +0 -3
- package/src/callbacks/subscriptions/postFirstEsauJr.ts +0 -3
- package/src/callbacks/subscriptions/postFirstFlip.ts +0 -3
- package/src/callbacks/subscriptions/postFlip.ts +0 -3
- package/src/callbacks/subscriptions/postGameStartedReordered.ts +0 -3
- package/src/callbacks/subscriptions/postGreedModeWave.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityBroken.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityCollision.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityCustomBroken.ts +0 -2
- package/src/callbacks/subscriptions/postGridEntityCustomCollision.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityInit.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityRemove.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityRender.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityStateChanged.ts +0 -3
- package/src/callbacks/subscriptions/postGridEntityUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postHolyMantleRemoved.ts +0 -3
- package/src/callbacks/subscriptions/postItemDischarged.ts +0 -3
- package/src/callbacks/subscriptions/postItemPickup.ts +0 -3
- package/src/callbacks/subscriptions/postKnifeInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postLaserInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postNPCInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postNPCStateChanged.ts +0 -3
- package/src/callbacks/subscriptions/postNewLevelReordered.ts +0 -3
- package/src/callbacks/subscriptions/postNewRoomEarly.ts +0 -3
- package/src/callbacks/subscriptions/postNewRoomReordered.ts +0 -3
- package/src/callbacks/subscriptions/postPEffectUpdateReordered.ts +0 -3
- package/src/callbacks/subscriptions/postPickupCollect.ts +0 -3
- package/src/callbacks/subscriptions/postPickupInitFirst.ts +0 -3
- package/src/callbacks/subscriptions/postPickupInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postPickupStateChanged.ts +0 -3
- package/src/callbacks/subscriptions/postPitRender.ts +0 -3
- package/src/callbacks/subscriptions/postPitUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerChangeHealth.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerChangeType.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerCollectibleAdded.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerCollectibleRemoved.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerFatalDamage.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerInitFirst.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerRenderReordered.ts +0 -3
- package/src/callbacks/subscriptions/postPlayerUpdateReordered.ts +0 -3
- package/src/callbacks/subscriptions/postPoopRender.ts +0 -3
- package/src/callbacks/subscriptions/postPoopUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postPressurePlateRender.ts +0 -3
- package/src/callbacks/subscriptions/postPressurePlateUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postProjectileInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postPurchase.ts +0 -3
- package/src/callbacks/subscriptions/postRockRender.ts +0 -3
- package/src/callbacks/subscriptions/postRockUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postRoomClearChanged.ts +0 -3
- package/src/callbacks/subscriptions/postSacrifice.ts +0 -3
- package/src/callbacks/subscriptions/postSlotAnimationChanged.ts +0 -3
- package/src/callbacks/subscriptions/postSlotDestroyed.ts +0 -3
- package/src/callbacks/subscriptions/postSlotInit.ts +0 -3
- package/src/callbacks/subscriptions/postSlotRender.ts +0 -3
- package/src/callbacks/subscriptions/postSlotUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postSpikesRender.ts +0 -3
- package/src/callbacks/subscriptions/postSpikesUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postTNTRender.ts +0 -3
- package/src/callbacks/subscriptions/postTNTUpdate.ts +0 -3
- package/src/callbacks/subscriptions/postTearInitLate.ts +0 -3
- package/src/callbacks/subscriptions/postTearInitVeryLate.ts +0 -3
- package/src/callbacks/subscriptions/postTransformation.ts +0 -3
- package/src/callbacks/subscriptions/postTrinketBreak.ts +0 -3
- package/src/callbacks/subscriptions/preBerserkDeath.ts +0 -3
- package/src/callbacks/subscriptions/preCustomRevive.ts +0 -3
- package/src/callbacks/subscriptions/preItemPickup.ts +0 -3
- package/src/callbacks/subscriptions/preNewLevel.ts +0 -3
- package/src/classes/ModUpgraded.ts +1 -1
- package/src/classes/index.ts +2 -0
- package/src/classes/indexTypeDoc.ts +2 -0
- package/src/{cachedClasses.ts → core/cachedClasses.ts} +0 -0
- package/src/{constants.ts → core/constants.ts} +8 -2
- package/src/{constantsFirstLast.ts → core/constantsFirstLast.ts} +3 -3
- package/src/core/index.ts +4 -0
- package/src/core/indexTypeDoc.ts +4 -0
- package/src/{upgradeMod.ts → core/upgradeMod.ts} +8 -8
- package/src/enums/RockAltType.ts +14 -1
- package/src/enums/index.ts +8 -0
- package/src/enums/indexTypeDoc.ts +8 -0
- package/src/enums/private/StageTravelState.ts +2 -1
- package/src/features/characterHealthConversion.ts +0 -1
- package/src/features/characterStats.ts +0 -1
- package/src/features/collectibleItemPoolType.ts +1 -2
- package/src/features/customDoor.ts +66 -0
- package/src/features/customGridEntity.ts +1 -2
- package/src/features/customStage/backdrop.ts +5 -4
- package/src/features/customStage/customStageConstants.ts +16 -0
- package/src/features/customStage/customStageGridEntities.ts +62 -1
- package/src/features/customStage/exports.ts +80 -44
- package/src/features/customStage/init.ts +8 -19
- package/src/features/customStage/shadows.ts +4 -3
- package/src/features/customStage/streakText.ts +62 -99
- package/src/features/customStage/v.ts +18 -1
- package/src/features/customStage/versusScreen.ts +31 -2
- package/src/features/customTrapdoor/blackSprite.ts +6 -2
- package/src/features/customTrapdoor/customTrapdoorConstants.ts +4 -0
- package/src/features/customTrapdoor/exports.ts +9 -7
- package/src/features/customTrapdoor/init.ts +56 -24
- package/src/features/customTrapdoor/openClose.ts +1 -1
- package/src/features/customTrapdoor/touched.ts +5 -2
- package/src/features/customTrapdoor/v.ts +2 -5
- package/src/features/deployJSONRoom.ts +1 -2
- package/src/features/disableAllSound.ts +1 -2
- package/src/features/disableInputs.ts +0 -1
- package/src/features/extraConsoleCommands/commandsSubroutines.ts +5 -2
- package/src/features/extraConsoleCommands/init.ts +1 -1
- package/src/features/extraConsoleCommands/listCommands.ts +3 -3
- package/src/features/fadeInRemover.ts +1 -2
- package/src/features/fastReset.ts +1 -2
- package/src/features/forgottenSwitch.ts +0 -1
- package/src/features/index.ts +59 -0
- package/src/features/indexTypeDoc.ts +29 -0
- package/src/features/pause.ts +1 -2
- package/src/features/persistentEntities.ts +0 -1
- package/src/features/pickupIndex.ts +1 -1
- package/src/features/playerInventory.ts +7 -1
- package/src/features/ponyDetection.ts +0 -1
- package/src/features/preventCollectibleRotation.ts +1 -2
- package/src/features/registerHotkey.ts +0 -1
- package/src/features/roomClearFrame.ts +1 -2
- package/src/features/roomHistory.ts +1 -2
- package/src/features/runInNFrames.ts +1 -2
- package/src/features/runNextRoom.ts +0 -1
- package/src/features/saveDataManager/exports.ts +3 -0
- package/src/features/saveDataManager/main.ts +1 -4
- package/src/features/sirenHelpers.ts +0 -1
- package/src/features/stageHistory.ts +1 -2
- package/src/features/taintedLazarusPlayers.ts +0 -1
- package/src/featuresInitialized.ts +0 -3
- package/src/functions/bosses.ts +1 -1
- package/src/functions/cards.ts +2 -2
- package/src/functions/characters.ts +1 -1
- package/src/functions/charge.ts +1 -1
- package/src/functions/collectibleCacheFlag.ts +1 -1
- package/src/functions/collectibleSet.ts +3 -3
- package/src/functions/collectibleTag.ts +1 -1
- package/src/functions/collectibles.ts +3 -3
- package/src/functions/curses.ts +1 -1
- package/src/functions/deepCopyTests.ts +4 -1
- package/src/functions/dimensions.ts +2 -2
- package/src/functions/doors.ts +11 -1
- package/src/functions/entities.ts +2 -2
- package/src/functions/entitiesSpecific.ts +1 -1
- package/src/functions/familiars.ts +1 -1
- package/src/functions/gridEntities.ts +2 -2
- package/src/functions/index.ts +99 -0
- package/src/functions/indexTypeDoc.ts +99 -0
- package/src/functions/itemPool.ts +1 -1
- package/src/functions/level.ts +1 -1
- package/src/functions/levelGrid.ts +2 -2
- package/src/functions/log.ts +2 -280
- package/src/functions/logEntities.ts +276 -0
- package/src/functions/mergeTests.ts +4 -1
- package/src/functions/minimap.ts +1 -1
- package/src/functions/nextStage.ts +1 -1
- package/src/functions/npcs.ts +1 -1
- package/src/functions/pickupsSpecific.ts +1 -1
- package/src/functions/pills.ts +2 -2
- package/src/functions/playerCenter.ts +2 -2
- package/src/functions/playerHealth.ts +1 -1
- package/src/functions/playerIndex.ts +1 -1
- package/src/functions/players.ts +1 -1
- package/src/functions/positionVelocity.ts +2 -2
- package/src/functions/pressurePlate.ts +1 -1
- package/src/functions/reorderedCallbacks.ts +46 -0
- package/src/functions/revive.ts +2 -2
- package/src/functions/rng.ts +1 -1
- package/src/functions/rockAlt.ts +149 -21
- package/src/functions/roomData.ts +1 -1
- package/src/functions/roomTransition.ts +78 -0
- package/src/functions/rooms.ts +4 -62
- package/src/functions/run.ts +2 -2
- package/src/functions/seeds.ts +1 -1
- package/src/functions/sound.ts +1 -1
- package/src/functions/spawnCollectible.ts +1 -1
- package/src/functions/sprites.ts +1 -1
- package/src/functions/stage.ts +1 -1
- package/src/functions/trinkets.ts +2 -2
- package/src/functions/ui.ts +2 -2
- package/src/functions/utils.ts +1 -1
- package/src/index.ts +9 -194
- package/src/indexTypeDoc.ts +13 -0
- package/src/interfaces/CustomStageLua.ts +26 -3
- package/src/interfaces/index.ts +10 -0
- package/src/interfaces/indexTypeDoc.ts +10 -0
- package/src/interfaces/{AddCallbackParameterCustom.ts → private/AddCallbackParameterCustom.ts} +88 -88
- package/src/interfaces/{CustomStage.ts → private/CustomStage.ts} +1 -1
- package/src/interfaces/private/CustomTrapdoorDescription.ts +2 -2
- package/src/maps/index.ts +4 -0
- package/src/maps/indexTypeDoc.ts +4 -0
- package/src/objects/LRoomShapeToRectangles.ts +1 -1
- package/src/objects/backdropTypeToRockAltType.ts +3 -3
- package/src/objects/callbackRegisterFunctions.ts +1 -1
- package/src/objects/directionToVector.ts +1 -1
- package/src/objects/index.ts +1 -0
- package/src/objects/indexTypeDoc.ts +1 -0
- package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +1 -1
- package/src/objects/roomShapeToTopLeftPosition.ts +1 -1
- package/src/patchErrorFunctions.ts +0 -2
- package/src/types/Immutable.ts +26 -0
- package/src/types/PickingUpItem.ts +0 -2
- package/src/types/TrapdoorDestination.ts +5 -0
- package/src/types/index.ts +11 -0
- package/src/types/indexTypeDoc.ts +11 -0
- package/dist/cachedClasses.d.ts.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constantsFirstLast.d.ts.map +0 -1
- package/dist/interfaces/AddCallbackParameterCustom.d.ts +0 -178
- package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +0 -1
- package/dist/interfaces/CustomStage.d.ts.map +0 -1
- package/dist/upgradeMod.d.ts.map +0 -1
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { ButtonAction, ControllerIndex } from "isaac-typescript-definitions";
|
|
2
|
-
import { fonts, game } from "../../cachedClasses";
|
|
3
|
-
import { KColorDefault, VectorOne } from "../../constants";
|
|
2
|
+
import { fonts, game } from "../../core/cachedClasses";
|
|
3
|
+
import { KColorDefault, VectorOne } from "../../core/constants";
|
|
4
4
|
import { getEnumValues } from "../../functions/enums";
|
|
5
5
|
import {
|
|
6
6
|
getScreenBottomCenterPos,
|
|
7
7
|
getScreenTopCenterPos,
|
|
8
8
|
} from "../../functions/ui";
|
|
9
|
-
import { CustomStage } from "../../interfaces/CustomStage";
|
|
9
|
+
import { CustomStage } from "../../interfaces/private/CustomStage";
|
|
10
|
+
import {
|
|
11
|
+
UIStreakAnimation,
|
|
12
|
+
UI_STREAK_ANIMATION_END_FRAMES,
|
|
13
|
+
} from "./customStageConstants";
|
|
10
14
|
import v from "./v";
|
|
11
15
|
|
|
12
|
-
enum UIStreakAnimation {
|
|
13
|
-
TEXT = "Text",
|
|
14
|
-
TEXT_IN = "TextIn",
|
|
15
|
-
TEXT_OUT = "TextOut",
|
|
16
|
-
TEXT_STAY = "TextStay",
|
|
17
|
-
}
|
|
18
|
-
|
|
19
16
|
/** This must match the name of the shader in "shaders.xml". */
|
|
20
17
|
const EMPTY_SHADER_NAME = "IsaacScript-RenderAboveHUD";
|
|
21
18
|
|
|
@@ -29,7 +26,7 @@ const TEXT_STAY_FRAME = 8;
|
|
|
29
26
|
const TEXT_OUT_FRAME = 60;
|
|
30
27
|
|
|
31
28
|
/** This matches the offset that the vanilla game uses; determined via trial and error. */
|
|
32
|
-
const STREAK_SPRITE_TOP_OFFSET = Vector(0,
|
|
29
|
+
const STREAK_SPRITE_TOP_OFFSET = Vector(0, 47);
|
|
33
30
|
|
|
34
31
|
/** This matches the offset that the vanilla game uses; determined via trial and error. */
|
|
35
32
|
const STREAK_SPRITE_BOTTOM_OFFSET = Vector(0, -48.25);
|
|
@@ -47,9 +44,6 @@ const STREAK_TEXT_BOTTOM_Y_OFFSET = -9;
|
|
|
47
44
|
*/
|
|
48
45
|
const NUM_RENDER_FRAMES_MAP_HELD_BEFORE_STREAK_TEXT = 11;
|
|
49
46
|
|
|
50
|
-
/** Corresponds to the vanilla value; determined through trial and error. */
|
|
51
|
-
const TEXT_PLAYBACK_SPEED = 0.5;
|
|
52
|
-
|
|
53
47
|
/** Taken from StageAPI. */
|
|
54
48
|
const TEXT_IN_ADJUSTMENTS = [-800, -639, -450, -250, -70, 10, 6, 3];
|
|
55
49
|
|
|
@@ -82,33 +76,6 @@ const TEXT_OUT_SCALES = [
|
|
|
82
76
|
Vector(3, 0.2),
|
|
83
77
|
];
|
|
84
78
|
|
|
85
|
-
/**
|
|
86
|
-
* We do not actually need to render this sprite at all. It's only purpose is to be an invisible
|
|
87
|
-
* reference for when and where we need to render the stage's name. Thus, we specify "false" for
|
|
88
|
-
* "loadGraphics", but still manage playing its animations in the code below.
|
|
89
|
-
*/
|
|
90
|
-
const topStreakSprite = Sprite();
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* We do not actually need to render this sprite at all. It's only purpose is to be an invisible
|
|
94
|
-
* reference for when and where we need to render the stage's name. Thus, we specify "false" for
|
|
95
|
-
* "loadGraphics", but still manage playing its animations in the code below.
|
|
96
|
-
*/
|
|
97
|
-
const bottomStreakSprite = Sprite();
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* We must load the sprites in an init function to prevent issues with mods that replace the vanilla
|
|
101
|
-
* files. (For some reason, loading the sprites will cause the overwrite to no longer apply on the
|
|
102
|
-
* second and subsequent runs.)
|
|
103
|
-
*/
|
|
104
|
-
export function streakTextInit(): void {
|
|
105
|
-
topStreakSprite.Load("resources/gfx/ui/ui_streak.anm2", false);
|
|
106
|
-
topStreakSprite.PlaybackSpeed = TEXT_PLAYBACK_SPEED;
|
|
107
|
-
|
|
108
|
-
bottomStreakSprite.Load("resources/gfx/ui/ui_streak.anm2", false);
|
|
109
|
-
bottomStreakSprite.PlaybackSpeed = TEXT_PLAYBACK_SPEED;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
79
|
// ModCallback.POST_RENDER (2)
|
|
113
80
|
export function streakTextPostRender(): void {
|
|
114
81
|
// The top streak only plays when the player arrives on the floor (or continues a game from the
|
|
@@ -124,7 +91,7 @@ export function streakTextPostRender(): void {
|
|
|
124
91
|
function checkEndTopStreakText() {
|
|
125
92
|
if (
|
|
126
93
|
v.run.topStreakTextStartedRenderFrame === null ||
|
|
127
|
-
|
|
94
|
+
v.run.topStreakText.animation !== UIStreakAnimation.TEXT_STAY
|
|
128
95
|
) {
|
|
129
96
|
return;
|
|
130
97
|
}
|
|
@@ -133,7 +100,10 @@ function checkEndTopStreakText() {
|
|
|
133
100
|
const elapsedFrames =
|
|
134
101
|
renderFrameCount - v.run.topStreakTextStartedRenderFrame;
|
|
135
102
|
if (elapsedFrames >= 115) {
|
|
136
|
-
|
|
103
|
+
v.run.topStreakText.animation = UIStreakAnimation.TEXT;
|
|
104
|
+
// We adjust by the frame backwards by an arbitrary amount to roughly align with the speed of
|
|
105
|
+
// the vanilla animation.
|
|
106
|
+
v.run.topStreakText.frame = TEXT_OUT_FRAME - 2;
|
|
137
107
|
}
|
|
138
108
|
}
|
|
139
109
|
|
|
@@ -165,7 +135,7 @@ function trackMapInputPressed() {
|
|
|
165
135
|
* slides in from the left.
|
|
166
136
|
*/
|
|
167
137
|
function checkStartBottomStreakText() {
|
|
168
|
-
if (
|
|
138
|
+
if (v.run.bottomStreakText.animation !== UIStreakAnimation.NONE) {
|
|
169
139
|
return;
|
|
170
140
|
}
|
|
171
141
|
|
|
@@ -180,7 +150,8 @@ function checkStartBottomStreakText() {
|
|
|
180
150
|
const gameFrameCount = game.GetFrameCount();
|
|
181
151
|
const elapsedFrames = gameFrameCount - earliestFrame;
|
|
182
152
|
if (elapsedFrames >= NUM_RENDER_FRAMES_MAP_HELD_BEFORE_STREAK_TEXT) {
|
|
183
|
-
|
|
153
|
+
v.run.bottomStreakText.animation = UIStreakAnimation.TEXT;
|
|
154
|
+
v.run.bottomStreakText.frame = 0;
|
|
184
155
|
}
|
|
185
156
|
}
|
|
186
157
|
|
|
@@ -189,7 +160,7 @@ function checkStartBottomStreakText() {
|
|
|
189
160
|
* right.
|
|
190
161
|
*/
|
|
191
162
|
function checkEndBottomStreakText() {
|
|
192
|
-
if (
|
|
163
|
+
if (v.run.bottomStreakText.animation !== UIStreakAnimation.TEXT_STAY) {
|
|
193
164
|
return;
|
|
194
165
|
}
|
|
195
166
|
|
|
@@ -197,16 +168,13 @@ function checkEndBottomStreakText() {
|
|
|
197
168
|
...v.run.controllerIndexPushingMapRenderFrame.values(),
|
|
198
169
|
];
|
|
199
170
|
if (pushedMapFrames.length === 0) {
|
|
200
|
-
|
|
171
|
+
v.run.bottomStreakText.animation = UIStreakAnimation.TEXT;
|
|
172
|
+
// We adjust by the frame backwards by an arbitrary amount to roughly align with the speed of
|
|
173
|
+
// the vanilla animation.
|
|
174
|
+
v.run.bottomStreakText.frame = TEXT_OUT_FRAME - 2;
|
|
201
175
|
}
|
|
202
176
|
}
|
|
203
177
|
|
|
204
|
-
// ModCallback.POST_GAME_STARTED (15)
|
|
205
|
-
export function streakTextPostGameStarted(): void {
|
|
206
|
-
topStreakSprite.Stop();
|
|
207
|
-
bottomStreakSprite.Stop();
|
|
208
|
-
}
|
|
209
|
-
|
|
210
178
|
// ModCallback.GET_SHADER_PARAMS (22)
|
|
211
179
|
export function streakTextGetShaderParams(
|
|
212
180
|
customStage: CustomStage,
|
|
@@ -218,27 +186,44 @@ export function streakTextGetShaderParams(
|
|
|
218
186
|
|
|
219
187
|
const topCenterPos = getScreenTopCenterPos();
|
|
220
188
|
const topStreakPosition = topCenterPos.add(STREAK_SPRITE_TOP_OFFSET);
|
|
221
|
-
|
|
189
|
+
renderStreakText(customStage, v.run.topStreakText, topStreakPosition);
|
|
222
190
|
|
|
223
191
|
const bottomCenterPos = getScreenBottomCenterPos();
|
|
224
192
|
const bottomStreakPosition = bottomCenterPos.add(STREAK_SPRITE_BOTTOM_OFFSET);
|
|
225
|
-
|
|
193
|
+
renderStreakText(customStage, v.run.bottomStreakText, bottomStreakPosition);
|
|
226
194
|
}
|
|
227
195
|
|
|
228
|
-
function
|
|
196
|
+
function renderStreakText(
|
|
229
197
|
customStage: CustomStage,
|
|
230
|
-
|
|
198
|
+
streakText: { animation: UIStreakAnimation; frame: int; pauseFrame: boolean },
|
|
231
199
|
position: Vector,
|
|
232
200
|
) {
|
|
233
|
-
|
|
234
|
-
|
|
201
|
+
if (streakText.animation === UIStreakAnimation.NONE) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (streakText.animation !== UIStreakAnimation.TEXT_STAY) {
|
|
206
|
+
const { pauseFrame } = streakText;
|
|
207
|
+
streakText.pauseFrame = !streakText.pauseFrame;
|
|
208
|
+
|
|
209
|
+
if (!pauseFrame) {
|
|
210
|
+
streakText.frame++;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const endFrame = UI_STREAK_ANIMATION_END_FRAMES[streakText.animation];
|
|
215
|
+
if (streakText.frame > endFrame) {
|
|
216
|
+
streakText.animation = UIStreakAnimation.NONE;
|
|
217
|
+
streakText.frame = 0;
|
|
235
218
|
return;
|
|
236
219
|
}
|
|
237
220
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
221
|
+
if (
|
|
222
|
+
streakText.animation === UIStreakAnimation.TEXT &&
|
|
223
|
+
streakText.frame === TEXT_STAY_FRAME
|
|
224
|
+
) {
|
|
225
|
+
streakText.animation = UIStreakAnimation.TEXT_STAY;
|
|
226
|
+
streakText.frame = 0;
|
|
242
227
|
}
|
|
243
228
|
|
|
244
229
|
const isPaused = game.IsPaused();
|
|
@@ -248,39 +233,22 @@ function renderSprite(
|
|
|
248
233
|
|
|
249
234
|
const font = fonts.upheaval;
|
|
250
235
|
const { name } = customStage;
|
|
251
|
-
const
|
|
236
|
+
const numberSuffix = v.run.firstFloor ? "I" : "II";
|
|
237
|
+
const nameWithNumberSuffix = `${name} ${numberSuffix}`;
|
|
238
|
+
const length = font.GetStringWidthUTF8(nameWithNumberSuffix);
|
|
252
239
|
const centeredX = position.X - length / 2;
|
|
253
240
|
|
|
254
241
|
let adjustment = 0;
|
|
255
242
|
let scale = VectorOne;
|
|
256
|
-
switch (animation) {
|
|
257
|
-
case UIStreakAnimation.TEXT: {
|
|
258
|
-
if (frame < TEXT_STAY_FRAME) {
|
|
259
|
-
adjustment = TEXT_IN_ADJUSTMENTS[frame] ?? 0;
|
|
260
|
-
scale = TEXT_IN_SCALES[frame] ?? VectorOne;
|
|
261
|
-
} else {
|
|
262
|
-
const adjustedFrame = frame - TEXT_OUT_FRAME;
|
|
263
|
-
adjustment = TEXT_OUT_ADJUSTMENTS[adjustedFrame] ?? 0;
|
|
264
|
-
scale = TEXT_OUT_SCALES[adjustedFrame] ?? VectorOne;
|
|
265
|
-
}
|
|
266
243
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
case UIStreakAnimation.TEXT_OUT: {
|
|
277
|
-
adjustment = TEXT_OUT_ADJUSTMENTS[frame] ?? 0;
|
|
278
|
-
scale = TEXT_OUT_SCALES[frame] ?? VectorOne;
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
default: {
|
|
283
|
-
break;
|
|
244
|
+
if (streakText.animation === UIStreakAnimation.TEXT) {
|
|
245
|
+
if (streakText.frame < TEXT_STAY_FRAME) {
|
|
246
|
+
adjustment = TEXT_IN_ADJUSTMENTS[streakText.frame] ?? 0;
|
|
247
|
+
scale = TEXT_IN_SCALES[streakText.frame] ?? VectorOne;
|
|
248
|
+
} else {
|
|
249
|
+
const adjustedFrame = streakText.frame - TEXT_OUT_FRAME;
|
|
250
|
+
adjustment = TEXT_OUT_ADJUSTMENTS[adjustedFrame] ?? 0;
|
|
251
|
+
scale = TEXT_OUT_SCALES[adjustedFrame] ?? VectorOne;
|
|
284
252
|
}
|
|
285
253
|
}
|
|
286
254
|
|
|
@@ -288,7 +256,7 @@ function renderSprite(
|
|
|
288
256
|
const adjustedY = position.Y + STREAK_TEXT_BOTTOM_Y_OFFSET;
|
|
289
257
|
|
|
290
258
|
font.DrawStringScaled(
|
|
291
|
-
|
|
259
|
+
nameWithNumberSuffix,
|
|
292
260
|
adjustedX,
|
|
293
261
|
adjustedY,
|
|
294
262
|
scale.X,
|
|
@@ -297,12 +265,6 @@ function renderSprite(
|
|
|
297
265
|
);
|
|
298
266
|
}
|
|
299
267
|
|
|
300
|
-
function playTextOut(sprite: Sprite) {
|
|
301
|
-
sprite.Play(UIStreakAnimation.TEXT, true);
|
|
302
|
-
// We adjust by 2 to roughly align with the speed of the vanilla animation.
|
|
303
|
-
sprite.SetFrame(TEXT_OUT_FRAME - 2);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
268
|
export function topStreakTextStart(): void {
|
|
307
269
|
const level = game.GetLevel();
|
|
308
270
|
const renderFrameCount = Isaac.GetFrameCount();
|
|
@@ -311,6 +273,7 @@ export function topStreakTextStart(): void {
|
|
|
311
273
|
level.ShowName(false);
|
|
312
274
|
|
|
313
275
|
// Initiate the animation for the custom text.
|
|
276
|
+
v.run.topStreakText.animation = UIStreakAnimation.TEXT;
|
|
277
|
+
v.run.topStreakText.frame = 0;
|
|
314
278
|
v.run.topStreakTextStartedRenderFrame = renderFrameCount;
|
|
315
|
-
topStreakSprite.Play(UIStreakAnimation.TEXT, true);
|
|
316
279
|
}
|
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
import { ControllerIndex } from "isaac-typescript-definitions";
|
|
2
|
-
import { CustomStage } from "../../interfaces/CustomStage";
|
|
2
|
+
import { CustomStage } from "../../interfaces/private/CustomStage";
|
|
3
|
+
import { UIStreakAnimation } from "./customStageConstants";
|
|
3
4
|
|
|
4
5
|
const v = {
|
|
5
6
|
run: {
|
|
6
7
|
currentCustomStage: null as CustomStage | null,
|
|
8
|
+
|
|
9
|
+
/** Whether we are on e.g. Caves 1 or Caves 2. */
|
|
10
|
+
firstFloor: true,
|
|
11
|
+
|
|
7
12
|
showingBossVersusScreen: false,
|
|
8
13
|
|
|
9
14
|
/** Values are the render frame that the controller first pressed the map button. */
|
|
10
15
|
controllerIndexPushingMapRenderFrame: new Map<ControllerIndex, int>(),
|
|
11
16
|
|
|
12
17
|
topStreakTextStartedRenderFrame: null as int | null,
|
|
18
|
+
|
|
19
|
+
topStreakText: {
|
|
20
|
+
animation: UIStreakAnimation.NONE,
|
|
21
|
+
frame: 0,
|
|
22
|
+
pauseFrame: false,
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
bottomStreakText: {
|
|
26
|
+
animation: UIStreakAnimation.NONE,
|
|
27
|
+
frame: 0,
|
|
28
|
+
pauseFrame: false,
|
|
29
|
+
},
|
|
13
30
|
},
|
|
14
31
|
|
|
15
32
|
room: {
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
RoomType,
|
|
5
5
|
SoundEffect,
|
|
6
6
|
StageID,
|
|
7
|
+
StageType,
|
|
7
8
|
} from "isaac-typescript-definitions";
|
|
8
|
-
import { game, sfxManager } from "../../cachedClasses";
|
|
9
|
+
import { game, sfxManager } from "../../core/cachedClasses";
|
|
9
10
|
import { arrayRemove } from "../../functions/array";
|
|
10
11
|
import { getBosses } from "../../functions/bosses";
|
|
11
12
|
import { getEntityID } from "../../functions/entities";
|
|
12
13
|
import { erange } from "../../functions/utils";
|
|
13
|
-
import { CustomStage } from "../../interfaces/CustomStage";
|
|
14
|
+
import { CustomStage } from "../../interfaces/private/CustomStage";
|
|
14
15
|
import { BOSS_NAME_PNG_FILE_NAMES } from "../../objects/bossNamePNGFileNames";
|
|
15
16
|
import { BOSS_PORTRAIT_PNG_FILE_NAMES } from "../../objects/bossPortraitPNGFileNames";
|
|
16
17
|
import { PLAYER_NAME_PNG_FILE_NAMES } from "../../objects/playerNamePNGFileNames";
|
|
@@ -18,7 +19,13 @@ import { PLAYER_PORTRAIT_PNG_FILE_NAMES } from "../../objects/playerPortraitPNGF
|
|
|
18
19
|
import { VERSUS_SCREEN_BACKGROUND_COLORS } from "../../objects/versusScreenBackgroundColors";
|
|
19
20
|
import { VERSUS_SCREEN_DIRT_SPOT_COLORS } from "../../objects/versusScreenDirtSpotColors";
|
|
20
21
|
import { pause, unpause } from "../pause";
|
|
22
|
+
import { runNextGameFrame } from "../runInNFrames";
|
|
21
23
|
import { ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH } from "./customStageConstants";
|
|
24
|
+
import {
|
|
25
|
+
DEFAULT_BASE_STAGE,
|
|
26
|
+
DEFAULT_BASE_STAGE_TYPE,
|
|
27
|
+
INVALID_STAGE_VALUE,
|
|
28
|
+
} from "./exports";
|
|
22
29
|
import v, { customBossPNGPaths } from "./v";
|
|
23
30
|
|
|
24
31
|
const DEFAULT_CHARACTER = PlayerType.ISAAC;
|
|
@@ -102,12 +109,29 @@ export function versusScreenInit(): void {
|
|
|
102
109
|
export function playVersusScreenAnimation(customStage: CustomStage): void {
|
|
103
110
|
const room = game.GetRoom();
|
|
104
111
|
const roomType = room.GetType();
|
|
112
|
+
const roomCleared = room.IsClear();
|
|
105
113
|
const hud = game.GetHUD();
|
|
106
114
|
|
|
107
115
|
if (roomType !== RoomType.BOSS) {
|
|
108
116
|
return;
|
|
109
117
|
}
|
|
110
118
|
|
|
119
|
+
if (roomCleared) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (willVanillaVersusScreenPlay()) {
|
|
124
|
+
// Since we are on an invalid stage, the versus screen will have a completely black background.
|
|
125
|
+
// Revert to using the background from the default stage.
|
|
126
|
+
const level = game.GetLevel();
|
|
127
|
+
level.SetStage(DEFAULT_BASE_STAGE, DEFAULT_BASE_STAGE_TYPE);
|
|
128
|
+
runNextGameFrame(() => {
|
|
129
|
+
const futureLevel = game.GetLevel();
|
|
130
|
+
futureLevel.SetStage(INVALID_STAGE_VALUE, StageType.ORIGINAL);
|
|
131
|
+
});
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
111
135
|
v.run.showingBossVersusScreen = true;
|
|
112
136
|
|
|
113
137
|
pause();
|
|
@@ -156,6 +180,11 @@ export function playVersusScreenAnimation(customStage: CustomStage): void {
|
|
|
156
180
|
}
|
|
157
181
|
}
|
|
158
182
|
|
|
183
|
+
function willVanillaVersusScreenPlay() {
|
|
184
|
+
const bosses = getBosses();
|
|
185
|
+
return bosses.some((boss) => boss.GetBossID() !== 0);
|
|
186
|
+
}
|
|
187
|
+
|
|
159
188
|
/** Use the character of the 0th player. */
|
|
160
189
|
function getPlayerPNGPaths(): [
|
|
161
190
|
playerNamePNGPath: string,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VectorZero } from "../../constants";
|
|
1
|
+
import { VectorZero } from "../../core/constants";
|
|
2
2
|
import { StageTravelState } from "../../enums/private/StageTravelState";
|
|
3
3
|
import v from "./v";
|
|
4
4
|
|
|
@@ -9,7 +9,11 @@ import v from "./v";
|
|
|
9
9
|
const blackSprite = Sprite();
|
|
10
10
|
|
|
11
11
|
export function drawBlackSprite(): void {
|
|
12
|
-
if (
|
|
12
|
+
if (
|
|
13
|
+
v.run.state !== StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END &&
|
|
14
|
+
v.run.state !==
|
|
15
|
+
StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
|
|
16
|
+
) {
|
|
13
17
|
return;
|
|
14
18
|
}
|
|
15
19
|
|
|
@@ -3,6 +3,10 @@ import { GridEntityType } from "isaac-typescript-definitions";
|
|
|
3
3
|
export const CUSTOM_TRAPDOOR_FEATURE_NAME = "customTrapdoor";
|
|
4
4
|
|
|
5
5
|
export const GridEntityTypeCustom = {
|
|
6
|
+
/**
|
|
7
|
+
* We arbitrarily choose 1000 as to not conflict with end-user mods. (The expectation is that
|
|
8
|
+
* end-user mods will begin their enums with values of 1 and increment upwards.)
|
|
9
|
+
*/
|
|
6
10
|
TRAPDOOR_CUSTOM: 1000 as GridEntityType,
|
|
7
11
|
} as const;
|
|
8
12
|
|
|
@@ -3,13 +3,14 @@ import {
|
|
|
3
3
|
LevelStage,
|
|
4
4
|
StageType,
|
|
5
5
|
} from "isaac-typescript-definitions";
|
|
6
|
-
import { game } from "../../cachedClasses";
|
|
6
|
+
import { game } from "../../core/cachedClasses";
|
|
7
7
|
import { TrapdoorAnimation } from "../../enums/private/TrapdoorAnimation";
|
|
8
8
|
import { errorIfFeaturesNotInitialized } from "../../featuresInitialized";
|
|
9
9
|
import { getNextStage, getNextStageType } from "../../functions/nextStage";
|
|
10
10
|
import { getRoomListIndex } from "../../functions/roomData";
|
|
11
11
|
import { isVector } from "../../functions/vector";
|
|
12
12
|
import { CustomTrapdoorDescription } from "../../interfaces/private/CustomTrapdoorDescription";
|
|
13
|
+
import { TrapdoorDestination } from "../../types/TrapdoorDestination";
|
|
13
14
|
import { spawnCustomGridEntity } from "../customGridEntity";
|
|
14
15
|
import {
|
|
15
16
|
CUSTOM_TRAPDOOR_FEATURE_NAME,
|
|
@@ -25,7 +26,6 @@ import v from "./v";
|
|
|
25
26
|
* - custom destination (or custom logic for after the player enters)
|
|
26
27
|
* - custom graphics
|
|
27
28
|
* - custom logic for opening/closing
|
|
28
|
-
* - TODO: player jumping animation?
|
|
29
29
|
*
|
|
30
30
|
* You can use this function to take the player to your custom stage.
|
|
31
31
|
*
|
|
@@ -34,10 +34,12 @@ import v from "./v";
|
|
|
34
34
|
*
|
|
35
35
|
* @param gridIndexOrPosition The location in the room to spawn the trapdoor.
|
|
36
36
|
* @param destination Optional. Used to specify where the player will go after jumping into the
|
|
37
|
-
* trapdoor. Can either be a
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
37
|
+
* trapdoor. Can either be a vanilla stage tuple, a custom stage tuple, or
|
|
38
|
+
* undefined. For example, a destination of `[LevelStage.CAVES_1,
|
|
39
|
+
* StageType.ORIGINAL]` corresponds to Caves 1, and a destination of
|
|
40
|
+
* `["Slaughterhouse", 1]` corresponds to a custom stage of Slaughterhouse 1. If
|
|
41
|
+
* the destination is undefined, then the "normal" destination corresponding to
|
|
42
|
+
* the current stage and room will be used (e.g. the next floor, in most cases).
|
|
41
43
|
* @param anm2Path Optional. The path to the anm2 file to use. By default, the vanilla trapdoor anm2
|
|
42
44
|
* of "gfx/grid/door_11_trapdoor.anm2" will be used. The specified anm2 file must
|
|
43
45
|
* have animations called "Opened", "Closed", and "Open Animation".
|
|
@@ -46,7 +48,7 @@ import v from "./v";
|
|
|
46
48
|
*/
|
|
47
49
|
export function spawnCustomTrapdoor(
|
|
48
50
|
gridIndexOrPosition: int | Vector,
|
|
49
|
-
destination?:
|
|
51
|
+
destination?: TrapdoorDestination,
|
|
50
52
|
anm2Path = "gfx/grid/door_11_trapdoor.anm2",
|
|
51
53
|
spawnOpen?: boolean,
|
|
52
54
|
): GridEntity {
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Direction,
|
|
3
|
+
EntityCollisionClass,
|
|
4
|
+
EntityGridCollisionClass,
|
|
3
5
|
ModCallback,
|
|
4
6
|
RoomTransitionAnim,
|
|
7
|
+
StageType,
|
|
5
8
|
} from "isaac-typescript-definitions";
|
|
6
|
-
import { game } from "../../cachedClasses";
|
|
7
9
|
import { ModUpgraded } from "../../classes/ModUpgraded";
|
|
10
|
+
import { game } from "../../core/cachedClasses";
|
|
8
11
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
9
12
|
import { StageTravelState } from "../../enums/private/StageTravelState";
|
|
10
13
|
import { movePlayersToCenter } from "../../functions/playerCenter";
|
|
11
14
|
import { getAllPlayers } from "../../functions/playerIndex";
|
|
12
15
|
import { getRoomGridIndex, getRoomListIndex } from "../../functions/roomData";
|
|
13
|
-
import { teleport } from "../../functions/
|
|
16
|
+
import { teleport } from "../../functions/roomTransition";
|
|
14
17
|
import { setStage } from "../../functions/stage";
|
|
15
18
|
import { isString } from "../../functions/types";
|
|
16
|
-
import { setCustomStage } from "../customStage/exports";
|
|
19
|
+
import { disableCustomStage, setCustomStage } from "../customStage/exports";
|
|
17
20
|
import { topStreakTextStart } from "../customStage/streakText";
|
|
18
21
|
import { enableAllInputs } from "../disableInputs";
|
|
19
22
|
import { runNextGameFrame } from "../runInNFrames";
|
|
@@ -45,7 +48,7 @@ export function customTrapdoorInit(mod: ModUpgraded): void {
|
|
|
45
48
|
function postRender() {
|
|
46
49
|
checkAllPlayersJumpComplete();
|
|
47
50
|
checkPixelationToBlackComplete();
|
|
48
|
-
|
|
51
|
+
checkSecondPixelationHalfWay();
|
|
49
52
|
checkAllPlayersLayingDownComplete();
|
|
50
53
|
drawBlackSprite();
|
|
51
54
|
}
|
|
@@ -74,6 +77,8 @@ function checkAllPlayersJumpComplete() {
|
|
|
74
77
|
Direction.NO_DIRECTION,
|
|
75
78
|
RoomTransitionAnim.PIXELATION,
|
|
76
79
|
);
|
|
80
|
+
|
|
81
|
+
// Next, we wait a certain amount of render frames for the pixelation to fade the screen to black.
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
function checkPixelationToBlackComplete() {
|
|
@@ -86,7 +91,6 @@ function checkPixelationToBlackComplete() {
|
|
|
86
91
|
|
|
87
92
|
const hud = game.GetHUD();
|
|
88
93
|
const renderFrameCount = Isaac.GetFrameCount();
|
|
89
|
-
const roomGridIndex = getRoomGridIndex();
|
|
90
94
|
|
|
91
95
|
const renderFrameScreenBlack =
|
|
92
96
|
v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES;
|
|
@@ -94,25 +98,44 @@ function checkPixelationToBlackComplete() {
|
|
|
94
98
|
return;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
v.run.state = StageTravelState.
|
|
98
|
-
v.run.stateRenderFrame = renderFrameCount;
|
|
101
|
+
v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END;
|
|
99
102
|
|
|
103
|
+
// Now, we display a black sprite on top of the pixelation effect, to prevent showing the rest of
|
|
104
|
+
// the animation.
|
|
100
105
|
hud.SetVisible(false);
|
|
101
|
-
goToCustomDestination();
|
|
102
106
|
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
// If the pixelation effect is not fully allowed to complete, the game's internal buffer will not
|
|
108
|
+
// be flushed. The consequence of this is that after 11 custom stage transitions, the "log.txt"
|
|
109
|
+
// starts to become become spammed with: [ASSERT] - PushRenderTarget: stack overflow!
|
|
110
|
+
|
|
111
|
+
// In order to work around this, we fully let the animation complete by only continuing the stage
|
|
112
|
+
// transition on the next game frame.
|
|
113
|
+
runNextGameFrame(() => {
|
|
114
|
+
const level = game.GetLevel();
|
|
115
|
+
const startingRoomIndex = level.GetStartingRoomIndex();
|
|
116
|
+
const futureRenderFrameCount = Isaac.GetFrameCount();
|
|
117
|
+
|
|
118
|
+
v.run.state =
|
|
119
|
+
StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY;
|
|
120
|
+
v.run.stateRenderFrame = futureRenderFrameCount;
|
|
121
|
+
|
|
122
|
+
goToCustomDestination();
|
|
123
|
+
|
|
124
|
+
// Start another pixelation effect. This time, we will keep the screen black with the sprite,
|
|
125
|
+
// and then remove the black sprite once the pixelation effect is halfway complete.
|
|
126
|
+
teleport(
|
|
127
|
+
startingRoomIndex,
|
|
128
|
+
Direction.NO_DIRECTION,
|
|
129
|
+
RoomTransitionAnim.PIXELATION,
|
|
130
|
+
true,
|
|
131
|
+
);
|
|
132
|
+
});
|
|
111
133
|
}
|
|
112
134
|
|
|
113
|
-
function
|
|
135
|
+
function checkSecondPixelationHalfWay() {
|
|
114
136
|
if (
|
|
115
|
-
v.run.state !==
|
|
137
|
+
v.run.state !==
|
|
138
|
+
StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY ||
|
|
116
139
|
v.run.stateRenderFrame === null
|
|
117
140
|
) {
|
|
118
141
|
return;
|
|
@@ -132,14 +155,18 @@ function checkPausingOnBlackComplete() {
|
|
|
132
155
|
hud.SetVisible(true);
|
|
133
156
|
|
|
134
157
|
runNextRoom(() => {
|
|
158
|
+
v.run.state = StageTravelState.PLAYERS_LAYING_DOWN;
|
|
159
|
+
|
|
135
160
|
// After the room transition, the players will be placed next to a door, but they should be in
|
|
136
161
|
// the center of the room to emulate what happens on a vanilla stage.
|
|
137
162
|
movePlayersToCenter();
|
|
138
163
|
|
|
139
|
-
v.run.state = StageTravelState.PLAYERS_LAYING_DOWN;
|
|
140
|
-
|
|
141
164
|
for (const player of getAllPlayers()) {
|
|
142
165
|
player.AnimateAppear();
|
|
166
|
+
|
|
167
|
+
// We need to restore the original collision classes.
|
|
168
|
+
player.EntityCollisionClass = EntityCollisionClass.ALL;
|
|
169
|
+
player.GridCollisionClass = EntityGridCollisionClass.GROUND;
|
|
143
170
|
}
|
|
144
171
|
});
|
|
145
172
|
|
|
@@ -171,11 +198,16 @@ function goToCustomDestination() {
|
|
|
171
198
|
return;
|
|
172
199
|
}
|
|
173
200
|
|
|
174
|
-
|
|
175
|
-
|
|
201
|
+
const [arg1, arg2] = v.run.destination;
|
|
202
|
+
|
|
203
|
+
if (isString(arg1)) {
|
|
204
|
+
// A string represents a custom stage.
|
|
205
|
+
const firstFloor = arg2 === 1;
|
|
206
|
+
setCustomStage("Slaughterhouse", firstFloor);
|
|
176
207
|
} else {
|
|
177
|
-
|
|
178
|
-
|
|
208
|
+
// A number represents a vanilla `LevelStage`.
|
|
209
|
+
disableCustomStage();
|
|
210
|
+
setStage(arg1, arg2 as StageType);
|
|
179
211
|
}
|
|
180
212
|
}
|
|
181
213
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomType } from "isaac-typescript-definitions";
|
|
2
|
-
import { game } from "../../cachedClasses";
|
|
2
|
+
import { game } from "../../core/cachedClasses";
|
|
3
3
|
import { TrapdoorAnimation } from "../../enums/private/TrapdoorAnimation";
|
|
4
4
|
import { anyPlayerCloserThan } from "../../functions/positionVelocity";
|
|
5
5
|
import { CustomTrapdoorDescription } from "../../interfaces/private/CustomTrapdoorDescription";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
EntityPartition,
|
|
6
6
|
PlayerType,
|
|
7
7
|
} from "isaac-typescript-definitions";
|
|
8
|
-
import { VectorZero } from "../../constants";
|
|
8
|
+
import { VectorZero } from "../../core/constants";
|
|
9
9
|
import { StageTravelState } from "../../enums/private/StageTravelState";
|
|
10
10
|
import { easeOutSine } from "../../functions/easing";
|
|
11
11
|
import {
|
|
@@ -81,6 +81,9 @@ function playerTouchedCustomTrapdoor(
|
|
|
81
81
|
v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN;
|
|
82
82
|
v.run.destination = trapdoorDescription.destination;
|
|
83
83
|
|
|
84
|
+
// We don't want to allow pausing, since that will allow render frames to pass without advancing
|
|
85
|
+
// the stage traveling logic. (We track how many render frames have passed to know when to move to
|
|
86
|
+
// the next step.)
|
|
84
87
|
const whitelist = new Set([ButtonAction.CONSOLE]);
|
|
85
88
|
disableAllInputsExceptFor(CUSTOM_TRAPDOOR_FEATURE_NAME, whitelist);
|
|
86
89
|
setPlayerAttributes(player, gridEntity.Position);
|
|
@@ -115,7 +118,7 @@ function setPlayerAttributes(trapdoorPlayer: EntityPlayer, position: Vector) {
|
|
|
115
118
|
player.EntityCollisionClass = EntityCollisionClass.NONE;
|
|
116
119
|
player.GridCollisionClass = EntityGridCollisionClass.NONE;
|
|
117
120
|
|
|
118
|
-
player.
|
|
121
|
+
player.StopExtraAnimation();
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
|