isaacscript-common 6.6.1-dev.4 → 6.6.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cachedClasses.d.ts +1 -1
- package/dist/cachedClasses.d.ts.map +1 -0
- package/dist/callbacks/customRevive.d.ts +1 -0
- package/dist/callbacks/customRevive.d.ts.map +1 -0
- package/dist/callbacks/itemPickup.d.ts +1 -0
- package/dist/callbacks/itemPickup.d.ts.map +1 -0
- package/dist/callbacks/postAmbush.d.ts +1 -0
- package/dist/callbacks/postAmbush.d.ts.map +1 -0
- package/dist/callbacks/postBombExploded.d.ts +1 -0
- package/dist/callbacks/postBombExploded.d.ts.map +1 -0
- package/dist/callbacks/postBombInitLate.d.ts +1 -0
- package/dist/callbacks/postBombInitLate.d.ts.map +1 -0
- package/dist/callbacks/postBoneSwing.d.ts +1 -0
- package/dist/callbacks/postBoneSwing.d.ts.map +1 -0
- package/dist/callbacks/postCollectibleEmpty.d.ts +1 -0
- package/dist/callbacks/postCollectibleEmpty.d.ts.map +1 -0
- package/dist/callbacks/postCollectibleInitFirst.d.ts +1 -0
- package/dist/callbacks/postCollectibleInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postCursedTeleport.d.ts +1 -0
- package/dist/callbacks/postCursedTeleport.d.ts.map +1 -0
- package/dist/callbacks/postCustomDoorEnter.d.ts +1 -0
- package/dist/callbacks/postCustomDoorEnter.d.ts.map +1 -0
- package/dist/callbacks/postDiceRoomActivated.d.ts +1 -0
- package/dist/callbacks/postDiceRoomActivated.d.ts.map +1 -0
- package/dist/callbacks/postDoorRender.d.ts +1 -0
- package/dist/callbacks/postDoorRender.d.ts.map +1 -0
- package/dist/callbacks/postDoorUpdate.d.ts +1 -0
- package/dist/callbacks/postDoorUpdate.d.ts.map +1 -0
- package/dist/callbacks/postEffectInitLate.d.ts +1 -0
- package/dist/callbacks/postEffectInitLate.d.ts.map +1 -0
- package/dist/callbacks/postEffectStateChanged.d.ts +1 -0
- package/dist/callbacks/postEffectStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postEsauJr.d.ts +1 -0
- package/dist/callbacks/postEsauJr.d.ts.map +1 -0
- package/dist/callbacks/postFamiliarInitLate.d.ts +1 -0
- package/dist/callbacks/postFamiliarInitLate.d.ts.map +1 -0
- package/dist/callbacks/postFamiliarStateChanged.d.ts +1 -0
- package/dist/callbacks/postFamiliarStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postFlip.d.ts +1 -0
- package/dist/callbacks/postFlip.d.ts.map +1 -0
- package/dist/callbacks/postGreedModeWave.d.ts +1 -0
- package/dist/callbacks/postGreedModeWave.d.ts.map +1 -0
- package/dist/callbacks/postGridEntity.d.ts +1 -0
- package/dist/callbacks/postGridEntity.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCollision.d.ts +1 -0
- package/dist/callbacks/postGridEntityCollision.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityRender.d.ts +1 -0
- package/dist/callbacks/postGridEntityRender.d.ts.map +1 -0
- package/dist/callbacks/postHolyMantleRemoved.d.ts +1 -0
- package/dist/callbacks/postHolyMantleRemoved.d.ts.map +1 -0
- package/dist/callbacks/postItemDischarged.d.ts +1 -0
- package/dist/callbacks/postItemDischarged.d.ts.map +1 -0
- package/dist/callbacks/postKnifeInitLate.d.ts +1 -0
- package/dist/callbacks/postKnifeInitLate.d.ts.map +1 -0
- package/dist/callbacks/postLaserInitLate.d.ts +1 -0
- package/dist/callbacks/postLaserInitLate.d.ts.map +1 -0
- package/dist/callbacks/postNPCInitLate.d.ts +1 -0
- package/dist/callbacks/postNPCInitLate.d.ts.map +1 -0
- package/dist/callbacks/postNPCStateChanged.d.ts +1 -0
- package/dist/callbacks/postNPCStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postNewRoomEarly.d.ts +1 -0
- package/dist/callbacks/postNewRoomEarly.d.ts.map +1 -0
- package/dist/callbacks/postPickupCollect.d.ts +1 -0
- package/dist/callbacks/postPickupCollect.d.ts.map +1 -0
- package/dist/callbacks/postPickupInitFirst.d.ts +1 -0
- package/dist/callbacks/postPickupInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postPickupInitLate.d.ts +1 -0
- package/dist/callbacks/postPickupInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPickupStateChanged.d.ts +1 -0
- package/dist/callbacks/postPickupStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postPitRender.d.ts +1 -0
- package/dist/callbacks/postPitRender.d.ts.map +1 -0
- package/dist/callbacks/postPitUpdate.d.ts +1 -0
- package/dist/callbacks/postPitUpdate.d.ts.map +1 -0
- package/dist/callbacks/postPlayerChangeHealth.d.ts +1 -0
- package/dist/callbacks/postPlayerChangeHealth.d.ts.map +1 -0
- package/dist/callbacks/postPlayerChangeType.d.ts +1 -0
- package/dist/callbacks/postPlayerChangeType.d.ts.map +1 -0
- package/dist/callbacks/postPlayerCollectible.d.ts +1 -0
- package/dist/callbacks/postPlayerCollectible.d.ts.map +1 -0
- package/dist/callbacks/postPlayerFatalDamage.d.ts +1 -0
- package/dist/callbacks/postPlayerFatalDamage.d.ts.map +1 -0
- package/dist/callbacks/postPlayerInitLate.d.ts +1 -0
- package/dist/callbacks/postPlayerInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPlayerReordered.d.ts +1 -0
- package/dist/callbacks/postPlayerReordered.d.ts.map +1 -0
- package/dist/callbacks/postPoopRender.d.ts +1 -0
- package/dist/callbacks/postPoopRender.d.ts.map +1 -0
- package/dist/callbacks/postPoopUpdate.d.ts +1 -0
- package/dist/callbacks/postPoopUpdate.d.ts.map +1 -0
- package/dist/callbacks/postPressurePlateRender.d.ts +1 -0
- package/dist/callbacks/postPressurePlateRender.d.ts.map +1 -0
- package/dist/callbacks/postPressurePlateUpdate.d.ts +1 -0
- package/dist/callbacks/postPressurePlateUpdate.d.ts.map +1 -0
- package/dist/callbacks/postProjectileInitLate.d.ts +1 -0
- package/dist/callbacks/postProjectileInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPurchase.d.ts +1 -0
- package/dist/callbacks/postPurchase.d.ts.map +1 -0
- package/dist/callbacks/postRockRender.d.ts +1 -0
- package/dist/callbacks/postRockRender.d.ts.map +1 -0
- package/dist/callbacks/postRockUpdate.d.ts +1 -0
- package/dist/callbacks/postRockUpdate.d.ts.map +1 -0
- package/dist/callbacks/postRoomClearChanged.d.ts +1 -0
- package/dist/callbacks/postRoomClearChanged.d.ts.map +1 -0
- package/dist/callbacks/postSacrifice.d.ts +1 -0
- package/dist/callbacks/postSacrifice.d.ts.map +1 -0
- package/dist/callbacks/postSlotDestroyed.d.ts +1 -0
- package/dist/callbacks/postSlotDestroyed.d.ts.map +1 -0
- package/dist/callbacks/postSlotInitUpdate.d.ts +1 -0
- package/dist/callbacks/postSlotInitUpdate.d.ts.map +1 -0
- package/dist/callbacks/postSlotRender.d.ts +1 -0
- package/dist/callbacks/postSlotRender.d.ts.map +1 -0
- package/dist/callbacks/postSpikesRender.d.ts +1 -0
- package/dist/callbacks/postSpikesRender.d.ts.map +1 -0
- package/dist/callbacks/postSpikesUpdate.d.ts +1 -0
- package/dist/callbacks/postSpikesUpdate.d.ts.map +1 -0
- package/dist/callbacks/postTNTRender.d.ts +1 -0
- package/dist/callbacks/postTNTRender.d.ts.map +1 -0
- package/dist/callbacks/postTNTUpdate.d.ts +1 -0
- package/dist/callbacks/postTNTUpdate.d.ts.map +1 -0
- package/dist/callbacks/postTearInitLate.d.ts +1 -0
- package/dist/callbacks/postTearInitLate.d.ts.map +1 -0
- package/dist/callbacks/postTearInitVeryLate.d.ts +1 -0
- package/dist/callbacks/postTearInitVeryLate.d.ts.map +1 -0
- package/dist/callbacks/postTransformation.d.ts +1 -0
- package/dist/callbacks/postTransformation.d.ts.map +1 -0
- package/dist/callbacks/postTrinketBreak.d.ts +1 -0
- package/dist/callbacks/postTrinketBreak.d.ts.map +1 -0
- package/dist/callbacks/preBerserkDeath.d.ts +1 -0
- package/dist/callbacks/preBerserkDeath.d.ts.map +1 -0
- package/dist/callbacks/preNewLevel.d.ts +1 -0
- package/dist/callbacks/preNewLevel.d.ts.map +1 -0
- package/dist/callbacks/reorderedCallbacks.d.ts +1 -0
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts +1 -0
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts +1 -0
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts +1 -0
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts +1 -0
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts +1 -0
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +1 -0
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +1 -0
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +1 -0
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts +1 -0
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDoorRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postDoorRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +1 -0
- package/dist/callbacks/subscriptions/postEsauJr.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +1 -0
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +1 -0
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFlip.d.ts +1 -0
- package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +1 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +1 -0
- package/dist/callbacks/subscriptions/postItemPickup.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +1 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPitRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPitRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPoopRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPoopRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPurchase.d.ts +1 -0
- package/dist/callbacks/subscriptions/postPurchase.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRockRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postRockRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSacrifice.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSlotInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSlotRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTNTRender.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTNTRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTransformation.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTransformation.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +1 -0
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +1 -0
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +1 -0
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +1 -0
- package/dist/callbacks/subscriptions/preItemPickup.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preNewLevel.d.ts +1 -0
- package/dist/callbacks/subscriptions/preNewLevel.d.ts.map +1 -0
- package/dist/classes/DefaultMap.d.ts +1 -0
- package/dist/classes/DefaultMap.d.ts.map +1 -0
- package/dist/classes/ModUpgraded.d.ts +1 -0
- package/dist/classes/ModUpgraded.d.ts.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constantsFirstLast.d.ts +1 -0
- package/dist/constantsFirstLast.d.ts.map +1 -0
- package/dist/enums/AmbushType.d.ts +1 -0
- package/dist/enums/AmbushType.d.ts.map +1 -0
- package/dist/enums/CornerType.d.ts +1 -0
- package/dist/enums/CornerType.d.ts.map +1 -0
- package/dist/enums/DecorationVariant.d.ts +1 -0
- package/dist/enums/DecorationVariant.d.ts.map +1 -0
- package/dist/enums/HealthType.d.ts +1 -0
- package/dist/enums/HealthType.d.ts.map +1 -0
- package/dist/enums/ModCallbackCustom.d.ts +1 -0
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -0
- package/dist/enums/PocketItemType.d.ts +1 -0
- package/dist/enums/PocketItemType.d.ts.map +1 -0
- package/dist/enums/RockAltType.d.ts +1 -0
- package/dist/enums/RockAltType.d.ts.map +1 -0
- package/dist/enums/SerializationType.d.ts +1 -0
- package/dist/enums/SerializationType.d.ts.map +1 -0
- package/dist/enums/SlotDestructionType.d.ts +1 -0
- package/dist/enums/SlotDestructionType.d.ts.map +1 -0
- package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +1 -0
- package/dist/enums/private/CopyableIsaacAPIClassType.d.ts.map +1 -0
- package/dist/enums/private/SaveDataKey.d.ts +1 -0
- package/dist/enums/private/SaveDataKey.d.ts.map +1 -0
- package/dist/enums/private/SerializationBrand.d.ts +1 -0
- package/dist/enums/private/SerializationBrand.d.ts.map +1 -0
- package/dist/features/characterHealthConversion.d.ts +1 -0
- package/dist/features/characterHealthConversion.d.ts.map +1 -0
- package/dist/features/characterStats.d.ts +1 -0
- package/dist/features/characterStats.d.ts.map +1 -0
- package/dist/features/collectibleItemPoolType.d.ts +1 -0
- package/dist/features/collectibleItemPoolType.d.ts.map +1 -0
- package/dist/features/customGridEntity.d.ts +1 -0
- package/dist/features/customGridEntity.d.ts.map +1 -0
- package/dist/features/customStage/backdrop.d.ts +1 -0
- package/dist/features/customStage/backdrop.d.ts.map +1 -0
- package/dist/features/customStage/customStageConstants.d.ts +1 -0
- package/dist/features/customStage/customStageConstants.d.ts.map +1 -0
- package/dist/features/customStage/exports.d.ts +1 -0
- package/dist/features/customStage/exports.d.ts.map +1 -0
- package/dist/features/customStage/gridEntities.d.ts +1 -0
- package/dist/features/customStage/gridEntities.d.ts.map +1 -0
- package/dist/features/customStage/init.d.ts +1 -0
- package/dist/features/customStage/init.d.ts.map +1 -0
- package/dist/features/customStage/shadows.d.ts +1 -0
- package/dist/features/customStage/shadows.d.ts.map +1 -0
- package/dist/features/customStage/streakText.d.ts +1 -0
- package/dist/features/customStage/streakText.d.ts.map +1 -0
- package/dist/features/customStage/util.d.ts +1 -0
- package/dist/features/customStage/util.d.ts.map +1 -0
- package/dist/features/customStage/v.d.ts +1 -0
- package/dist/features/customStage/v.d.ts.map +1 -0
- package/dist/features/customStage/versusScreen.d.ts +1 -0
- package/dist/features/customStage/versusScreen.d.ts.map +1 -0
- package/dist/features/debugDisplay/debugDisplay.d.ts +1 -0
- package/dist/features/debugDisplay/debugDisplay.d.ts.map +1 -0
- package/dist/features/debugDisplay/exports.d.ts +1 -0
- package/dist/features/debugDisplay/exports.d.ts.map +1 -0
- package/dist/features/debugDisplay/v.d.ts +1 -18
- package/dist/features/debugDisplay/v.d.ts.map +1 -0
- package/dist/features/deployJSONRoom.d.ts +1 -0
- package/dist/features/deployJSONRoom.d.ts.map +1 -0
- package/dist/features/disableAllSound.d.ts +1 -0
- package/dist/features/disableAllSound.d.ts.map +1 -0
- package/dist/features/disableInputs.d.ts +1 -0
- package/dist/features/disableInputs.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/commandsDisplay.d.ts +1 -0
- package/dist/features/extraConsoleCommands/commandsDisplay.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +1 -0
- package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/exports.d.ts +1 -0
- package/dist/features/extraConsoleCommands/exports.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/init.d.ts +1 -0
- package/dist/features/extraConsoleCommands/init.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/listCommands.d.ts +1 -0
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -0
- package/dist/features/extraConsoleCommands/v.d.ts +1 -0
- package/dist/features/extraConsoleCommands/v.d.ts.map +1 -0
- package/dist/features/fadeInRemover.d.ts +1 -0
- package/dist/features/fadeInRemover.d.ts.map +1 -0
- package/dist/features/fastReset.d.ts +1 -0
- package/dist/features/fastReset.d.ts.map +1 -0
- package/dist/features/forgottenSwitch.d.ts +1 -0
- package/dist/features/forgottenSwitch.d.ts.map +1 -0
- package/dist/features/pause.d.ts +1 -0
- package/dist/features/pause.d.ts.map +1 -0
- package/dist/features/persistentEntities.d.ts +1 -0
- package/dist/features/persistentEntities.d.ts.map +1 -0
- package/dist/features/playerInventory.d.ts +1 -0
- package/dist/features/playerInventory.d.ts.map +1 -0
- package/dist/features/ponyDetection.d.ts +1 -0
- package/dist/features/ponyDetection.d.ts.map +1 -0
- package/dist/features/preventCollectibleRotation.d.ts +1 -0
- package/dist/features/preventCollectibleRotation.d.ts.map +1 -0
- package/dist/features/registerHotkey.d.ts +1 -0
- package/dist/features/registerHotkey.d.ts.map +1 -0
- package/dist/features/roomClearFrame.d.ts +1 -0
- package/dist/features/roomClearFrame.d.ts.map +1 -0
- package/dist/features/runInNFrames.d.ts +1 -0
- package/dist/features/runInNFrames.d.ts.map +1 -0
- package/dist/features/runNextRoom.d.ts +1 -0
- package/dist/features/runNextRoom.d.ts.map +1 -0
- package/dist/features/saveDataManager/exports.d.ts +1 -0
- package/dist/features/saveDataManager/exports.d.ts.map +1 -0
- package/dist/features/saveDataManager/load.d.ts +1 -0
- package/dist/features/saveDataManager/load.d.ts.map +1 -0
- package/dist/features/saveDataManager/main.d.ts +1 -0
- package/dist/features/saveDataManager/main.d.ts.map +1 -0
- package/dist/features/saveDataManager/maps.d.ts +1 -0
- package/dist/features/saveDataManager/maps.d.ts.map +1 -0
- package/dist/features/saveDataManager/merge.d.ts +1 -0
- package/dist/features/saveDataManager/merge.d.ts.map +1 -0
- package/dist/features/saveDataManager/save.d.ts +1 -0
- package/dist/features/saveDataManager/save.d.ts.map +1 -0
- package/dist/features/saveDataManager/saveDataManagerConstants.d.ts +1 -0
- package/dist/features/saveDataManager/saveDataManagerConstants.d.ts.map +1 -0
- package/dist/features/saveDataManager/serializationBrand.d.ts +1 -0
- package/dist/features/saveDataManager/serializationBrand.d.ts.map +1 -0
- package/dist/features/sirenHelpers.d.ts +1 -0
- package/dist/features/sirenHelpers.d.ts.map +1 -0
- package/dist/features/stageHistory.d.ts +1 -0
- package/dist/features/stageHistory.d.ts.map +1 -0
- package/dist/features/taintedLazarusPlayers.d.ts +1 -0
- package/dist/features/taintedLazarusPlayers.d.ts.map +1 -0
- package/dist/featuresInitialized.d.ts +1 -0
- package/dist/featuresInitialized.d.ts.map +1 -0
- package/dist/functions/ambush.d.ts +1 -0
- package/dist/functions/ambush.d.ts.map +1 -0
- package/dist/functions/array.d.ts +1 -0
- package/dist/functions/array.d.ts.map +1 -0
- package/dist/functions/benchmark.d.ts +1 -0
- package/dist/functions/benchmark.d.ts.map +1 -0
- package/dist/functions/bitwise.d.ts +1 -0
- package/dist/functions/bitwise.d.ts.map +1 -0
- package/dist/functions/bombs.d.ts +1 -0
- package/dist/functions/bombs.d.ts.map +1 -0
- package/dist/functions/boss.d.ts +1 -0
- package/dist/functions/boss.d.ts.map +1 -0
- package/dist/functions/cacheFlag.d.ts +1 -0
- package/dist/functions/cacheFlag.d.ts.map +1 -0
- package/dist/functions/cards.d.ts +1 -0
- package/dist/functions/cards.d.ts.map +1 -0
- package/dist/functions/challenges.d.ts +1 -0
- package/dist/functions/challenges.d.ts.map +1 -0
- package/dist/functions/character.d.ts +1 -0
- package/dist/functions/character.d.ts.map +1 -0
- package/dist/functions/charge.d.ts +1 -0
- package/dist/functions/charge.d.ts.map +1 -0
- package/dist/functions/chargeBar.d.ts +1 -0
- package/dist/functions/chargeBar.d.ts.map +1 -0
- package/dist/functions/collectibleCacheFlag.d.ts +1 -0
- package/dist/functions/collectibleCacheFlag.d.ts.map +1 -0
- package/dist/functions/collectibleSet.d.ts +1 -0
- package/dist/functions/collectibleSet.d.ts.map +1 -0
- package/dist/functions/collectibleTag.d.ts +1 -0
- package/dist/functions/collectibleTag.d.ts.map +1 -0
- package/dist/functions/collectibles.d.ts +1 -0
- package/dist/functions/collectibles.d.ts.map +1 -0
- package/dist/functions/color.d.ts +2 -1
- package/dist/functions/color.d.ts.map +1 -0
- package/dist/functions/debug.d.ts +1 -0
- package/dist/functions/debug.d.ts.map +1 -0
- package/dist/functions/deepCopy.d.ts +1 -0
- package/dist/functions/deepCopy.d.ts.map +1 -0
- package/dist/functions/deepCopyTests.d.ts +1 -0
- package/dist/functions/deepCopyTests.d.ts.map +1 -0
- package/dist/functions/direction.d.ts +1 -0
- package/dist/functions/direction.d.ts.map +1 -0
- package/dist/functions/doors.d.ts +1 -0
- package/dist/functions/doors.d.ts.map +1 -0
- package/dist/functions/easing.d.ts +1 -0
- package/dist/functions/easing.d.ts.map +1 -0
- package/dist/functions/eden.d.ts +1 -0
- package/dist/functions/eden.d.ts.map +1 -0
- package/dist/functions/effects.d.ts +1 -0
- package/dist/functions/effects.d.ts.map +1 -0
- package/dist/functions/entity.d.ts +1 -0
- package/dist/functions/entity.d.ts.map +1 -0
- package/dist/functions/entitySpecific.d.ts +1 -0
- package/dist/functions/entitySpecific.d.ts.map +1 -0
- package/dist/functions/entityTypes.d.ts +1 -0
- package/dist/functions/entityTypes.d.ts.map +1 -0
- package/dist/functions/enums.d.ts +1 -0
- package/dist/functions/enums.d.ts.map +1 -0
- package/dist/functions/familiars.d.ts +1 -0
- package/dist/functions/familiars.d.ts.map +1 -0
- package/dist/functions/flag.d.ts +1 -0
- package/dist/functions/flag.d.ts.map +1 -0
- package/dist/functions/flying.d.ts +1 -0
- package/dist/functions/flying.d.ts.map +1 -0
- package/dist/functions/globals.d.ts +1 -0
- package/dist/functions/globals.d.ts.map +1 -0
- package/dist/functions/gridEntity.d.ts +1 -0
- package/dist/functions/gridEntity.d.ts.map +1 -0
- package/dist/functions/gridEntitySpecific.d.ts +1 -0
- package/dist/functions/gridEntitySpecific.d.ts.map +1 -0
- package/dist/functions/input.d.ts +1 -0
- package/dist/functions/input.d.ts.map +1 -0
- package/dist/functions/isaacAPIClass.d.ts +1 -0
- package/dist/functions/isaacAPIClass.d.ts.map +1 -0
- package/dist/functions/jsonHelpers.d.ts +1 -0
- package/dist/functions/jsonHelpers.d.ts.map +1 -0
- package/dist/functions/jsonRoom.d.ts +1 -0
- package/dist/functions/jsonRoom.d.ts.map +1 -0
- package/dist/functions/kColor.d.ts +2 -1
- package/dist/functions/kColor.d.ts.map +1 -0
- package/dist/functions/language.d.ts +1 -0
- package/dist/functions/language.d.ts.map +1 -0
- package/dist/functions/level.d.ts +1 -0
- package/dist/functions/level.d.ts.map +1 -0
- package/dist/functions/log.d.ts +1 -0
- package/dist/functions/log.d.ts.map +1 -0
- package/dist/functions/map.d.ts +1 -0
- package/dist/functions/map.d.ts.map +1 -0
- package/dist/functions/math.d.ts +1 -0
- package/dist/functions/math.d.ts.map +1 -0
- package/dist/functions/mergeTests.d.ts +1 -0
- package/dist/functions/mergeTests.d.ts.map +1 -0
- package/dist/functions/minimap.d.ts +1 -0
- package/dist/functions/minimap.d.ts.map +1 -0
- package/dist/functions/nextStage.d.ts +1 -0
- package/dist/functions/nextStage.d.ts.map +1 -0
- package/dist/functions/npc.d.ts +1 -0
- package/dist/functions/npc.d.ts.map +1 -0
- package/dist/functions/pickupVariants.d.ts +1 -0
- package/dist/functions/pickupVariants.d.ts.map +1 -0
- package/dist/functions/pickups.d.ts +1 -0
- package/dist/functions/pickups.d.ts.map +1 -0
- package/dist/functions/pills.d.ts +1 -0
- package/dist/functions/pills.d.ts.map +1 -0
- package/dist/functions/player.d.ts +1 -0
- package/dist/functions/player.d.ts.map +1 -0
- package/dist/functions/playerCenter.d.ts +1 -0
- package/dist/functions/playerCenter.d.ts.map +1 -0
- package/dist/functions/playerDataStructures.d.ts +1 -0
- package/dist/functions/playerDataStructures.d.ts.map +1 -0
- package/dist/functions/playerHealth.d.ts +1 -0
- package/dist/functions/playerHealth.d.ts.map +1 -0
- package/dist/functions/playerIndex.d.ts +1 -0
- package/dist/functions/playerIndex.d.ts.map +1 -0
- package/dist/functions/pocketItems.d.ts +1 -0
- package/dist/functions/pocketItems.d.ts.map +1 -0
- package/dist/functions/positionVelocity.d.ts +1 -0
- package/dist/functions/positionVelocity.d.ts.map +1 -0
- package/dist/functions/random.d.ts +1 -0
- package/dist/functions/random.d.ts.map +1 -0
- package/dist/functions/revive.d.ts +1 -0
- package/dist/functions/revive.d.ts.map +1 -0
- package/dist/functions/rng.d.ts +2 -1
- package/dist/functions/rng.d.ts.map +1 -0
- package/dist/functions/roomData.d.ts +1 -0
- package/dist/functions/roomData.d.ts.map +1 -0
- package/dist/functions/roomGrid.d.ts +1 -0
- package/dist/functions/roomGrid.d.ts.map +1 -0
- package/dist/functions/roomShape.d.ts +1 -0
- package/dist/functions/roomShape.d.ts.map +1 -0
- package/dist/functions/rooms.d.ts +1 -0
- package/dist/functions/rooms.d.ts.map +1 -0
- package/dist/functions/run.d.ts +1 -0
- package/dist/functions/run.d.ts.map +1 -0
- package/dist/functions/saveFile.d.ts +1 -0
- package/dist/functions/saveFile.d.ts.map +1 -0
- package/dist/functions/seeds.d.ts +1 -0
- package/dist/functions/seeds.d.ts.map +1 -0
- package/dist/functions/serialization.d.ts +1 -0
- package/dist/functions/serialization.d.ts.map +1 -0
- package/dist/functions/set.d.ts +1 -0
- package/dist/functions/set.d.ts.map +1 -0
- package/dist/functions/sound.d.ts +1 -0
- package/dist/functions/sound.d.ts.map +1 -0
- package/dist/functions/spawnCollectible.d.ts +1 -0
- package/dist/functions/spawnCollectible.d.ts.map +1 -0
- package/dist/functions/sprite.d.ts +1 -0
- package/dist/functions/sprite.d.ts.map +1 -0
- package/dist/functions/stage.d.ts +1 -0
- package/dist/functions/stage.d.ts.map +1 -0
- package/dist/functions/string.d.ts +1 -0
- package/dist/functions/string.d.ts.map +1 -0
- package/dist/functions/table.d.ts +1 -0
- package/dist/functions/table.d.ts.map +1 -0
- package/dist/functions/tears.d.ts +1 -0
- package/dist/functions/tears.d.ts.map +1 -0
- package/dist/functions/transformations.d.ts +1 -0
- package/dist/functions/transformations.d.ts.map +1 -0
- package/dist/functions/trinketCacheFlag.d.ts +1 -0
- package/dist/functions/trinketCacheFlag.d.ts.map +1 -0
- package/dist/functions/trinketGive.d.ts +1 -0
- package/dist/functions/trinketGive.d.ts.map +1 -0
- package/dist/functions/trinkets.d.ts +1 -0
- package/dist/functions/trinkets.d.ts.map +1 -0
- package/dist/functions/tstlClass.d.ts +1 -0
- package/dist/functions/tstlClass.d.ts.map +1 -0
- package/dist/functions/types.d.ts +1 -0
- package/dist/functions/types.d.ts.map +1 -0
- package/dist/functions/ui.d.ts +1 -0
- package/dist/functions/ui.d.ts.map +1 -0
- package/dist/functions/utils.d.ts +1 -0
- package/dist/functions/utils.d.ts.map +1 -0
- package/dist/functions/vector.d.ts +1 -0
- package/dist/functions/vector.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/initCustomCallbacks.d.ts +1 -0
- package/dist/initCustomCallbacks.d.ts.map +1 -0
- package/dist/initFeatures.d.ts +1 -0
- package/dist/initFeatures.d.ts.map +1 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts +1 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -0
- package/dist/interfaces/ChargeBarSprites.d.ts +1 -0
- package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -0
- package/dist/interfaces/Corner.d.ts +1 -0
- package/dist/interfaces/Corner.d.ts.map +1 -0
- package/dist/interfaces/CustomGridEntityData.d.ts +1 -0
- package/dist/interfaces/CustomGridEntityData.d.ts.map +1 -0
- package/dist/interfaces/CustomStage.d.ts +1 -0
- package/dist/interfaces/CustomStage.d.ts.map +1 -0
- package/dist/interfaces/CustomStageLua.d.ts +1 -0
- package/dist/interfaces/CustomStageLua.d.ts.map +1 -0
- package/dist/interfaces/JSONRoomsFile.d.ts +1 -0
- package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -0
- package/dist/interfaces/PlayerHealth.d.ts +1 -0
- package/dist/interfaces/PlayerHealth.d.ts.map +1 -0
- package/dist/interfaces/PocketItemDescription.d.ts +1 -0
- package/dist/interfaces/PocketItemDescription.d.ts.map +1 -0
- package/dist/interfaces/SaveData.d.ts +1 -0
- package/dist/interfaces/SaveData.d.ts.map +1 -0
- package/dist/interfaces/TrinketSituation.d.ts +1 -0
- package/dist/interfaces/TrinketSituation.d.ts.map +1 -0
- package/dist/interfaces/private/TSTLClassMetatable.d.ts +1 -0
- package/dist/interfaces/private/TSTLClassMetatable.d.ts.map +1 -0
- package/dist/maps/PHDPillConversions.d.ts +1 -0
- package/dist/maps/PHDPillConversions.d.ts.map +1 -0
- package/dist/maps/cardMap.d.ts +1 -0
- package/dist/maps/cardMap.d.ts.map +1 -0
- package/dist/maps/characterMap.d.ts +1 -0
- package/dist/maps/characterMap.d.ts.map +1 -0
- package/dist/maps/collectibleDescriptionMap.d.ts +1 -0
- package/dist/maps/collectibleDescriptionMap.d.ts.map +1 -0
- package/dist/maps/collectibleNameMap.d.ts +1 -0
- package/dist/maps/collectibleNameMap.d.ts.map +1 -0
- package/dist/maps/defaultPlayerStatMap.d.ts +1 -0
- package/dist/maps/defaultPlayerStatMap.d.ts.map +1 -0
- package/dist/maps/falsePHDPillConversions.d.ts +1 -0
- package/dist/maps/falsePHDPillConversions.d.ts.map +1 -0
- package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -0
- package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -0
- package/dist/maps/gridEntityXMLMap.d.ts +1 -0
- package/dist/maps/gridEntityXMLMap.d.ts.map +1 -0
- package/dist/maps/pillEffectMap.d.ts +1 -0
- package/dist/maps/pillEffectMap.d.ts.map +1 -0
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -0
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -0
- package/dist/maps/roomTypeMap.d.ts +1 -0
- package/dist/maps/roomTypeMap.d.ts.map +1 -0
- package/dist/maps/trinketDescriptionMap.d.ts +1 -0
- package/dist/maps/trinketDescriptionMap.d.ts.map +1 -0
- package/dist/maps/trinketNameMap.d.ts +1 -0
- package/dist/maps/trinketNameMap.d.ts.map +1 -0
- package/dist/objects/LRoomShapeToRectangles.d.ts +1 -0
- package/dist/objects/LRoomShapeToRectangles.d.ts.map +1 -0
- package/dist/objects/backdropTypeToRockAltType.d.ts +1 -0
- package/dist/objects/backdropTypeToRockAltType.d.ts.map +1 -0
- package/dist/objects/bossNamePNGFileNames.d.ts +1 -0
- package/dist/objects/bossNamePNGFileNames.d.ts.map +1 -0
- package/dist/objects/bossPortraitPNGFileNames.d.ts +1 -0
- package/dist/objects/bossPortraitPNGFileNames.d.ts.map +1 -0
- package/dist/objects/callbackRegisterFunctions.d.ts +1 -0
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -0
- package/dist/objects/cardDescriptions.d.ts +1 -0
- package/dist/objects/cardDescriptions.d.ts.map +1 -0
- package/dist/objects/cardNames.d.ts +1 -0
- package/dist/objects/cardNames.d.ts.map +1 -0
- package/dist/objects/cardTypes.d.ts +1 -0
- package/dist/objects/cardTypes.d.ts.map +1 -0
- package/dist/objects/challengeNames.d.ts +1 -0
- package/dist/objects/challengeNames.d.ts.map +1 -0
- package/dist/objects/characterNames.d.ts +1 -0
- package/dist/objects/characterNames.d.ts.map +1 -0
- package/dist/objects/coinSubTypeToValue.d.ts +1 -0
- package/dist/objects/coinSubTypeToValue.d.ts.map +1 -0
- package/dist/objects/colors.d.ts +1 -1
- package/dist/objects/colors.d.ts.map +1 -0
- package/dist/objects/directionNames.d.ts +1 -0
- package/dist/objects/directionNames.d.ts.map +1 -0
- package/dist/objects/directionToDegrees.d.ts +1 -0
- package/dist/objects/directionToDegrees.d.ts.map +1 -0
- package/dist/objects/directionToVector.d.ts +1 -0
- package/dist/objects/directionToVector.d.ts.map +1 -0
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts +1 -0
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -0
- package/dist/objects/doorSlotToDirection.d.ts +1 -0
- package/dist/objects/doorSlotToDirection.d.ts.map +1 -0
- package/dist/objects/doorSlotToDoorSlotFlag.d.ts +1 -0
- package/dist/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -0
- package/dist/objects/isaacAPIClassTypeToBrand.d.ts +1 -0
- package/dist/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -0
- package/dist/objects/isaacAPIClassTypeToCopyFunction.d.ts +1 -0
- package/dist/objects/isaacAPIClassTypeToCopyFunction.d.ts.map +1 -0
- package/dist/objects/languageNames.d.ts +1 -0
- package/dist/objects/languageNames.d.ts.map +1 -0
- package/dist/objects/oppositeDoorSlots.d.ts +1 -0
- package/dist/objects/oppositeDoorSlots.d.ts.map +1 -0
- package/dist/objects/pillEffectClasses.d.ts +1 -0
- package/dist/objects/pillEffectClasses.d.ts.map +1 -0
- package/dist/objects/pillEffectNames.d.ts +1 -0
- package/dist/objects/pillEffectNames.d.ts.map +1 -0
- package/dist/objects/pillEffectTypes.d.ts +1 -0
- package/dist/objects/pillEffectTypes.d.ts.map +1 -0
- package/dist/objects/playerNamePNGFileNames.d.ts +1 -0
- package/dist/objects/playerNamePNGFileNames.d.ts.map +1 -0
- package/dist/objects/playerPortraitPNGFileNames.d.ts +1 -0
- package/dist/objects/playerPortraitPNGFileNames.d.ts.map +1 -0
- package/dist/objects/roomShapeBounds.d.ts +1 -0
- package/dist/objects/roomShapeBounds.d.ts.map +1 -0
- package/dist/objects/roomShapeCorners.d.ts +1 -0
- package/dist/objects/roomShapeCorners.d.ts.map +1 -0
- package/dist/objects/roomShapeLayoutSizes.d.ts +1 -0
- package/dist/objects/roomShapeLayoutSizes.d.ts.map +1 -0
- package/dist/objects/roomShapeToBottomRightPosition.d.ts +1 -0
- package/dist/objects/roomShapeToBottomRightPosition.d.ts.map +1 -0
- package/dist/objects/roomShapeToDoorSlotCoordinates.d.ts +1 -0
- package/dist/objects/roomShapeToDoorSlotCoordinates.d.ts.map +1 -0
- package/dist/objects/roomShapeToDoorSlots.d.ts +1 -0
- package/dist/objects/roomShapeToDoorSlots.d.ts.map +1 -0
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +1 -0
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts.map +1 -0
- package/dist/objects/roomShapeToGridWidth.d.ts +1 -0
- package/dist/objects/roomShapeToGridWidth.d.ts.map +1 -0
- package/dist/objects/roomShapeToTopLeftPosition.d.ts +1 -0
- package/dist/objects/roomShapeToTopLeftPosition.d.ts.map +1 -0
- package/dist/objects/roomShapeVolumes.d.ts +1 -0
- package/dist/objects/roomShapeVolumes.d.ts.map +1 -0
- package/dist/objects/roomTypeGotoPrefixes.d.ts +1 -0
- package/dist/objects/roomTypeGotoPrefixes.d.ts.map +1 -0
- package/dist/objects/roomTypeNames.d.ts +1 -0
- package/dist/objects/roomTypeNames.d.ts.map +1 -0
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.d.ts +1 -0
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.d.ts.map +1 -0
- package/dist/objects/stageTypeSuffixes.d.ts +1 -0
- package/dist/objects/stageTypeSuffixes.d.ts.map +1 -0
- package/dist/objects/stageTypeToLetter.d.ts +1 -0
- package/dist/objects/stageTypeToLetter.d.ts.map +1 -0
- package/dist/objects/transformationNames.d.ts +1 -0
- package/dist/objects/transformationNames.d.ts.map +1 -0
- package/dist/objects/versusScreenBackgroundColors.d.ts +1 -0
- package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -0
- package/dist/objects/versusScreenDirtSpotColors.d.ts +1 -0
- package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -0
- package/dist/patchErrorFunctions.d.ts +1 -0
- package/dist/patchErrorFunctions.d.ts.map +1 -0
- package/dist/sets/LRoomShapesSet.d.ts +1 -0
- package/dist/sets/LRoomShapesSet.d.ts.map +1 -0
- package/dist/sets/bossSets.d.ts +1 -0
- package/dist/sets/bossSets.d.ts.map +1 -0
- package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +1 -0
- package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts.map +1 -0
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +1 -0
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts.map +1 -0
- package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +1 -0
- package/dist/sets/charactersWithFreeDevilDealsSet.d.ts.map +1 -0
- package/dist/sets/charactersWithNoRedHeartsSet.d.ts +1 -0
- package/dist/sets/charactersWithNoRedHeartsSet.d.ts.map +1 -0
- package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +1 -0
- package/dist/sets/charactersWithNoSoulHeartsSet.d.ts.map +1 -0
- package/dist/sets/chestPickupVariantsSet.d.ts +1 -0
- package/dist/sets/chestPickupVariantsSet.d.ts.map +1 -0
- package/dist/sets/consoleCommandsSet.d.ts +1 -0
- package/dist/sets/consoleCommandsSet.d.ts.map +1 -0
- package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +1 -0
- package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts.map +1 -0
- package/dist/sets/lostStyleCharactersSet.d.ts +1 -0
- package/dist/sets/lostStyleCharactersSet.d.ts.map +1 -0
- package/dist/sets/mineShaftRoomSubTypesSet.d.ts +1 -0
- package/dist/sets/mineShaftRoomSubTypesSet.d.ts.map +1 -0
- package/dist/sets/narrowRoomShapesSet.d.ts +1 -0
- package/dist/sets/narrowRoomShapesSet.d.ts.map +1 -0
- package/dist/sets/redHeartSubTypesSet.d.ts +1 -0
- package/dist/sets/redHeartSubTypesSet.d.ts.map +1 -0
- package/dist/sets/sinEntityTypesSet.d.ts +1 -0
- package/dist/sets/sinEntityTypesSet.d.ts.map +1 -0
- package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +1 -0
- package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts.map +1 -0
- package/dist/sets/storyBossesSet.d.ts +1 -0
- package/dist/sets/storyBossesSet.d.ts.map +1 -0
- package/dist/shaderCrashFix.d.ts +1 -0
- package/dist/shaderCrashFix.d.ts.map +1 -0
- package/dist/types/AnyEntity.d.ts +1 -0
- package/dist/types/AnyEntity.d.ts.map +1 -0
- package/dist/types/CollectibleIndex.d.ts +1 -0
- package/dist/types/CollectibleIndex.d.ts.map +1 -0
- package/dist/types/PickingUpItem.d.ts +1 -0
- package/dist/types/PickingUpItem.d.ts.map +1 -0
- package/dist/types/PlayerIndex.d.ts +1 -0
- package/dist/types/PlayerIndex.d.ts.map +1 -0
- package/dist/types/private/IsaacAPIClass.d.ts +1 -0
- package/dist/types/private/IsaacAPIClass.d.ts.map +1 -0
- package/dist/types/private/SerializedIsaacAPIClass.d.ts +1 -0
- package/dist/types/private/SerializedIsaacAPIClass.d.ts.map +1 -0
- package/dist/types/private/TSTLClass.d.ts +1 -0
- package/dist/types/private/TSTLClass.d.ts.map +1 -0
- package/dist/upgradeMod.d.ts +1 -0
- package/dist/upgradeMod.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/cachedClasses.js +0 -59
- package/dist/cachedClasses.js.map +0 -1
- package/dist/callbacks/customRevive.js +0 -153
- package/dist/callbacks/customRevive.js.map +0 -1
- package/dist/callbacks/itemPickup.js +0 -64
- package/dist/callbacks/itemPickup.js.map +0 -1
- package/dist/callbacks/postAmbush.js +0 -54
- package/dist/callbacks/postAmbush.js.map +0 -1
- package/dist/callbacks/postBombExploded.js +0 -20
- package/dist/callbacks/postBombExploded.js.map +0 -1
- package/dist/callbacks/postBombInitLate.js +0 -28
- package/dist/callbacks/postBombInitLate.js.map +0 -1
- package/dist/callbacks/postBoneSwing.js +0 -49
- package/dist/callbacks/postBoneSwing.js.map +0 -1
- package/dist/callbacks/postCollectibleEmpty.js +0 -32
- package/dist/callbacks/postCollectibleEmpty.js.map +0 -1
- package/dist/callbacks/postCollectibleInitFirst.js +0 -27
- package/dist/callbacks/postCollectibleInitFirst.js.map +0 -1
- package/dist/callbacks/postCursedTeleport.js +0 -120
- package/dist/callbacks/postCursedTeleport.js.map +0 -1
- package/dist/callbacks/postCustomDoorEnter.js +0 -205
- package/dist/callbacks/postCustomDoorEnter.js.map +0 -1
- package/dist/callbacks/postDiceRoomActivated.js +0 -39
- package/dist/callbacks/postDiceRoomActivated.js.map +0 -1
- package/dist/callbacks/postDoorRender.js +0 -20
- package/dist/callbacks/postDoorRender.js.map +0 -1
- package/dist/callbacks/postDoorUpdate.js +0 -20
- package/dist/callbacks/postDoorUpdate.js.map +0 -1
- package/dist/callbacks/postEffectInitLate.js +0 -28
- package/dist/callbacks/postEffectInitLate.js.map +0 -1
- package/dist/callbacks/postEffectStateChanged.js +0 -31
- package/dist/callbacks/postEffectStateChanged.js.map +0 -1
- package/dist/callbacks/postEsauJr.js +0 -70
- package/dist/callbacks/postEsauJr.js.map +0 -1
- package/dist/callbacks/postFamiliarInitLate.js +0 -28
- package/dist/callbacks/postFamiliarInitLate.js.map +0 -1
- package/dist/callbacks/postFamiliarStateChanged.js +0 -31
- package/dist/callbacks/postFamiliarStateChanged.js.map +0 -1
- package/dist/callbacks/postFlip.js +0 -59
- package/dist/callbacks/postFlip.js.map +0 -1
- package/dist/callbacks/postGreedModeWave.js +0 -31
- package/dist/callbacks/postGreedModeWave.js.map +0 -1
- package/dist/callbacks/postGridEntity.js +0 -107
- package/dist/callbacks/postGridEntity.js.map +0 -1
- package/dist/callbacks/postGridEntityCollision.js +0 -49
- package/dist/callbacks/postGridEntityCollision.js.map +0 -1
- package/dist/callbacks/postGridEntityRender.js +0 -20
- package/dist/callbacks/postGridEntityRender.js.map +0 -1
- package/dist/callbacks/postHolyMantleRemoved.js +0 -33
- package/dist/callbacks/postHolyMantleRemoved.js.map +0 -1
- package/dist/callbacks/postItemDischarged.js +0 -94
- package/dist/callbacks/postItemDischarged.js.map +0 -1
- package/dist/callbacks/postKnifeInitLate.js +0 -28
- package/dist/callbacks/postKnifeInitLate.js.map +0 -1
- package/dist/callbacks/postLaserInitLate.js +0 -28
- package/dist/callbacks/postLaserInitLate.js.map +0 -1
- package/dist/callbacks/postNPCInitLate.js +0 -28
- package/dist/callbacks/postNPCInitLate.js.map +0 -1
- package/dist/callbacks/postNPCStateChanged.js +0 -31
- package/dist/callbacks/postNPCStateChanged.js.map +0 -1
- package/dist/callbacks/postNewRoomEarly.js +0 -69
- package/dist/callbacks/postNewRoomEarly.js.map +0 -1
- package/dist/callbacks/postPickupCollect.js +0 -37
- package/dist/callbacks/postPickupCollect.js.map +0 -1
- package/dist/callbacks/postPickupInitFirst.js +0 -52
- package/dist/callbacks/postPickupInitFirst.js.map +0 -1
- package/dist/callbacks/postPickupInitLate.js +0 -28
- package/dist/callbacks/postPickupInitLate.js.map +0 -1
- package/dist/callbacks/postPickupStateChanged.js +0 -31
- package/dist/callbacks/postPickupStateChanged.js.map +0 -1
- package/dist/callbacks/postPitRender.js +0 -20
- package/dist/callbacks/postPitRender.js.map +0 -1
- package/dist/callbacks/postPitUpdate.js +0 -20
- package/dist/callbacks/postPitUpdate.js.map +0 -1
- package/dist/callbacks/postPlayerChangeHealth.js +0 -43
- package/dist/callbacks/postPlayerChangeHealth.js.map +0 -1
- package/dist/callbacks/postPlayerChangeType.js +0 -31
- package/dist/callbacks/postPlayerChangeType.js.map +0 -1
- package/dist/callbacks/postPlayerCollectible.js +0 -74
- package/dist/callbacks/postPlayerCollectible.js.map +0 -1
- package/dist/callbacks/postPlayerFatalDamage.js +0 -74
- package/dist/callbacks/postPlayerFatalDamage.js.map +0 -1
- package/dist/callbacks/postPlayerInitLate.js +0 -28
- package/dist/callbacks/postPlayerInitLate.js.map +0 -1
- package/dist/callbacks/postPlayerReordered.js +0 -109
- package/dist/callbacks/postPlayerReordered.js.map +0 -1
- package/dist/callbacks/postPoopRender.js +0 -20
- package/dist/callbacks/postPoopRender.js.map +0 -1
- package/dist/callbacks/postPoopUpdate.js +0 -20
- package/dist/callbacks/postPoopUpdate.js.map +0 -1
- package/dist/callbacks/postPressurePlateRender.js +0 -20
- package/dist/callbacks/postPressurePlateRender.js.map +0 -1
- package/dist/callbacks/postPressurePlateUpdate.js +0 -20
- package/dist/callbacks/postPressurePlateUpdate.js.map +0 -1
- package/dist/callbacks/postProjectileInitLate.js +0 -28
- package/dist/callbacks/postProjectileInitLate.js.map +0 -1
- package/dist/callbacks/postPurchase.js +0 -39
- package/dist/callbacks/postPurchase.js.map +0 -1
- package/dist/callbacks/postRockRender.js +0 -20
- package/dist/callbacks/postRockRender.js.map +0 -1
- package/dist/callbacks/postRockUpdate.js +0 -20
- package/dist/callbacks/postRockUpdate.js.map +0 -1
- package/dist/callbacks/postRoomClearChanged.js +0 -41
- package/dist/callbacks/postRoomClearChanged.js.map +0 -1
- package/dist/callbacks/postSacrifice.js +0 -38
- package/dist/callbacks/postSacrifice.js.map +0 -1
- package/dist/callbacks/postSlotDestroyed.js +0 -64
- package/dist/callbacks/postSlotDestroyed.js.map +0 -1
- package/dist/callbacks/postSlotInitUpdate.js +0 -49
- package/dist/callbacks/postSlotInitUpdate.js.map +0 -1
- package/dist/callbacks/postSlotRender.js +0 -48
- package/dist/callbacks/postSlotRender.js.map +0 -1
- package/dist/callbacks/postSpikesRender.js +0 -20
- package/dist/callbacks/postSpikesRender.js.map +0 -1
- package/dist/callbacks/postSpikesUpdate.js +0 -20
- package/dist/callbacks/postSpikesUpdate.js.map +0 -1
- package/dist/callbacks/postTNTRender.js +0 -20
- package/dist/callbacks/postTNTRender.js.map +0 -1
- package/dist/callbacks/postTNTUpdate.js +0 -20
- package/dist/callbacks/postTNTUpdate.js.map +0 -1
- package/dist/callbacks/postTearInitLate.js +0 -28
- package/dist/callbacks/postTearInitLate.js.map +0 -1
- package/dist/callbacks/postTearInitVeryLate.js +0 -32
- package/dist/callbacks/postTearInitVeryLate.js.map +0 -1
- package/dist/callbacks/postTransformation.js +0 -37
- package/dist/callbacks/postTransformation.js.map +0 -1
- package/dist/callbacks/postTrinketBreak.js +0 -64
- package/dist/callbacks/postTrinketBreak.js.map +0 -1
- package/dist/callbacks/preBerserkDeath.js +0 -35
- package/dist/callbacks/preBerserkDeath.js.map +0 -1
- package/dist/callbacks/preNewLevel.js +0 -45
- package/dist/callbacks/preNewLevel.js.map +0 -1
- package/dist/callbacks/reorderedCallbacks.js +0 -136
- package/dist/callbacks/reorderedCallbacks.js.map +0 -1
- package/dist/callbacks/subscriptions/postAmbushFinished.js +0 -20
- package/dist/callbacks/subscriptions/postAmbushFinished.js.map +0 -1
- package/dist/callbacks/subscriptions/postAmbushStarted.js +0 -20
- package/dist/callbacks/subscriptions/postAmbushStarted.js.map +0 -1
- package/dist/callbacks/subscriptions/postBombInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postBombInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postBoneExploded.js +0 -20
- package/dist/callbacks/subscriptions/postBoneExploded.js.map +0 -1
- package/dist/callbacks/subscriptions/postBoneSwing.js +0 -16
- package/dist/callbacks/subscriptions/postBoneSwing.js.map +0 -1
- package/dist/callbacks/subscriptions/postCollectibleEmpty.js +0 -21
- package/dist/callbacks/subscriptions/postCollectibleEmpty.js.map +0 -1
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.js +0 -21
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.js.map +0 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.js +0 -16
- package/dist/callbacks/subscriptions/postCursedTeleport.js.map +0 -1
- package/dist/callbacks/subscriptions/postCustomDoorEnter.js +0 -21
- package/dist/callbacks/subscriptions/postCustomDoorEnter.js.map +0 -1
- package/dist/callbacks/subscriptions/postCustomRevive.js +0 -21
- package/dist/callbacks/subscriptions/postCustomRevive.js.map +0 -1
- package/dist/callbacks/subscriptions/postDiceRoomActivated.js +0 -21
- package/dist/callbacks/subscriptions/postDiceRoomActivated.js.map +0 -1
- package/dist/callbacks/subscriptions/postDoorRender.js +0 -22
- package/dist/callbacks/subscriptions/postDoorRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postDoorUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postDoorUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postEffectInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postEffectInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postEffectStateChanged.js +0 -20
- package/dist/callbacks/subscriptions/postEffectStateChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postEsauJr.js +0 -16
- package/dist/callbacks/subscriptions/postEsauJr.js.map +0 -1
- package/dist/callbacks/subscriptions/postFamiliarInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postFamiliarInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.js +0 -20
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.js +0 -16
- package/dist/callbacks/subscriptions/postFirstEsauJr.js.map +0 -1
- package/dist/callbacks/subscriptions/postFirstFlip.js +0 -16
- package/dist/callbacks/subscriptions/postFirstFlip.js.map +0 -1
- package/dist/callbacks/subscriptions/postFlip.js +0 -16
- package/dist/callbacks/subscriptions/postFlip.js.map +0 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.js +0 -16
- package/dist/callbacks/subscriptions/postGameStartedReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postGreedModeWave.js +0 -16
- package/dist/callbacks/subscriptions/postGreedModeWave.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityBroken.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityBroken.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityCollision.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityCollision.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityInit.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityInit.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityRemove.js +0 -26
- package/dist/callbacks/subscriptions/postGridEntityRemove.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityRender.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postGridEntityUpdate.js +0 -28
- package/dist/callbacks/subscriptions/postGridEntityUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.js +0 -25
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.js.map +0 -1
- package/dist/callbacks/subscriptions/postItemDischarged.js +0 -21
- package/dist/callbacks/subscriptions/postItemDischarged.js.map +0 -1
- package/dist/callbacks/subscriptions/postItemPickup.js +0 -25
- package/dist/callbacks/subscriptions/postItemPickup.js.map +0 -1
- package/dist/callbacks/subscriptions/postKnifeInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postKnifeInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postLaserInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postLaserInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postNPCInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postNPCInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postNPCStateChanged.js +0 -24
- package/dist/callbacks/subscriptions/postNPCStateChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.js +0 -16
- package/dist/callbacks/subscriptions/postNewLevelReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.js +0 -16
- package/dist/callbacks/subscriptions/postNewRoomEarly.js.map +0 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.js +0 -16
- package/dist/callbacks/subscriptions/postNewRoomReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.js +0 -25
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postPickupCollect.js +0 -20
- package/dist/callbacks/subscriptions/postPickupCollect.js.map +0 -1
- package/dist/callbacks/subscriptions/postPickupInitFirst.js +0 -20
- package/dist/callbacks/subscriptions/postPickupInitFirst.js.map +0 -1
- package/dist/callbacks/subscriptions/postPickupInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postPickupInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postPickupStateChanged.js +0 -20
- package/dist/callbacks/subscriptions/postPickupStateChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postPitRender.js +0 -22
- package/dist/callbacks/subscriptions/postPitRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postPitUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postPitUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.js +0 -25
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerChangeType.js +0 -20
- package/dist/callbacks/subscriptions/postPlayerChangeType.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.js +0 -21
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.js +0 -21
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.js +0 -29
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerInitLate.js +0 -25
- package/dist/callbacks/subscriptions/postPlayerInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerInitReordered.js +0 -25
- package/dist/callbacks/subscriptions/postPlayerInitReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.js +0 -25
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.js +0 -25
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.js.map +0 -1
- package/dist/callbacks/subscriptions/postPoopRender.js +0 -22
- package/dist/callbacks/subscriptions/postPoopRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postPoopUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postPoopUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postPressurePlateRender.js +0 -22
- package/dist/callbacks/subscriptions/postPressurePlateRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postProjectileInitLate.js +0 -21
- package/dist/callbacks/subscriptions/postProjectileInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postPurchase.js +0 -16
- package/dist/callbacks/subscriptions/postPurchase.js.map +0 -1
- package/dist/callbacks/subscriptions/postRockRender.js +0 -22
- package/dist/callbacks/subscriptions/postRockRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postRockUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postRockUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postRoomClearChanged.js +0 -20
- package/dist/callbacks/subscriptions/postRoomClearChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postSacrifice.js +0 -25
- package/dist/callbacks/subscriptions/postSacrifice.js.map +0 -1
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.js +0 -20
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.js.map +0 -1
- package/dist/callbacks/subscriptions/postSlotDestroyed.js +0 -26
- package/dist/callbacks/subscriptions/postSlotDestroyed.js.map +0 -1
- package/dist/callbacks/subscriptions/postSlotInit.js +0 -20
- package/dist/callbacks/subscriptions/postSlotInit.js.map +0 -1
- package/dist/callbacks/subscriptions/postSlotRender.js +0 -20
- package/dist/callbacks/subscriptions/postSlotRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postSlotUpdate.js +0 -20
- package/dist/callbacks/subscriptions/postSlotUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postSpikesRender.js +0 -22
- package/dist/callbacks/subscriptions/postSpikesRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postSpikesUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postSpikesUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postTNTRender.js +0 -22
- package/dist/callbacks/subscriptions/postTNTRender.js.map +0 -1
- package/dist/callbacks/subscriptions/postTNTUpdate.js +0 -22
- package/dist/callbacks/subscriptions/postTNTUpdate.js.map +0 -1
- package/dist/callbacks/subscriptions/postTearInitLate.js +0 -20
- package/dist/callbacks/subscriptions/postTearInitLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postTearInitVeryLate.js +0 -20
- package/dist/callbacks/subscriptions/postTearInitVeryLate.js.map +0 -1
- package/dist/callbacks/subscriptions/postTransformation.js +0 -20
- package/dist/callbacks/subscriptions/postTransformation.js.map +0 -1
- package/dist/callbacks/subscriptions/postTrinketBreak.js +0 -21
- package/dist/callbacks/subscriptions/postTrinketBreak.js.map +0 -1
- package/dist/callbacks/subscriptions/preBerserkDeath.js +0 -26
- package/dist/callbacks/subscriptions/preBerserkDeath.js.map +0 -1
- package/dist/callbacks/subscriptions/preCustomRevive.js +0 -29
- package/dist/callbacks/subscriptions/preCustomRevive.js.map +0 -1
- package/dist/callbacks/subscriptions/preItemPickup.js +0 -25
- package/dist/callbacks/subscriptions/preItemPickup.js.map +0 -1
- package/dist/callbacks/subscriptions/preNewLevel.js +0 -16
- package/dist/callbacks/subscriptions/preNewLevel.js.map +0 -1
- package/dist/classes/DefaultMap.js +0 -145
- package/dist/classes/DefaultMap.js.map +0 -1
- package/dist/classes/ModUpgraded.js +0 -57
- package/dist/classes/ModUpgraded.js.map +0 -1
- package/dist/constants.js +0 -143
- package/dist/constants.js.map +0 -1
- package/dist/constantsFirstLast.js +0 -156
- package/dist/constantsFirstLast.js.map +0 -1
- package/dist/enums/AmbushType.js +0 -6
- package/dist/enums/AmbushType.js.map +0 -1
- package/dist/enums/CornerType.js +0 -8
- package/dist/enums/CornerType.js.map +0 -1
- package/dist/enums/DecorationVariant.js +0 -11
- package/dist/enums/DecorationVariant.js.map +0 -1
- package/dist/enums/HealthType.js +0 -18
- package/dist/enums/HealthType.js.map +0 -1
- package/dist/enums/ModCallbackCustom.js +0 -1213
- package/dist/enums/ModCallbackCustom.js.map +0 -1
- package/dist/enums/PocketItemType.js +0 -10
- package/dist/enums/PocketItemType.js.map +0 -1
- package/dist/enums/RockAltType.js +0 -9
- package/dist/enums/RockAltType.js.map +0 -1
- package/dist/enums/SerializationType.js +0 -7
- package/dist/enums/SerializationType.js.map +0 -1
- package/dist/enums/SlotDestructionType.js +0 -6
- package/dist/enums/SlotDestructionType.js.map +0 -1
- package/dist/enums/private/CopyableIsaacAPIClassType.js +0 -9
- package/dist/enums/private/CopyableIsaacAPIClassType.js.map +0 -1
- package/dist/enums/private/SaveDataKey.js +0 -8
- package/dist/enums/private/SaveDataKey.js.map +0 -1
- package/dist/enums/private/SerializationBrand.js +0 -41
- package/dist/enums/private/SerializationBrand.js.map +0 -1
- package/dist/features/characterHealthConversion.js +0 -86
- package/dist/features/characterHealthConversion.js.map +0 -1
- package/dist/features/characterStats.js +0 -52
- package/dist/features/characterStats.js.map +0 -1
- package/dist/features/collectibleItemPoolType.js +0 -45
- package/dist/features/collectibleItemPoolType.js.map +0 -1
- package/dist/features/customGridEntity.js +0 -148
- package/dist/features/customGridEntity.js.map +0 -1
- package/dist/features/customStage/backdrop.js +0 -191
- package/dist/features/customStage/backdrop.js.map +0 -1
- package/dist/features/customStage/customStageConstants.js +0 -2
- package/dist/features/customStage/customStageConstants.js.map +0 -1
- package/dist/features/customStage/exports.js +0 -147
- package/dist/features/customStage/exports.js.map +0 -1
- package/dist/features/customStage/gridEntities.js +0 -138
- package/dist/features/customStage/gridEntities.js.map +0 -1
- package/dist/features/customStage/init.js +0 -104
- package/dist/features/customStage/init.js.map +0 -1
- package/dist/features/customStage/metadata.json +0 -1
- package/dist/features/customStage/shadows.js +0 -63
- package/dist/features/customStage/shadows.js.map +0 -1
- package/dist/features/customStage/streakText.js +0 -35
- package/dist/features/customStage/streakText.js.map +0 -1
- package/dist/features/customStage/util.js +0 -36
- package/dist/features/customStage/util.js.map +0 -1
- package/dist/features/customStage/v.js +0 -18
- package/dist/features/customStage/v.js.map +0 -1
- package/dist/features/customStage/versusScreen.js +0 -184
- package/dist/features/customStage/versusScreen.js.map +0 -1
- package/dist/features/debugDisplay/debugDisplay.js +0 -183
- package/dist/features/debugDisplay/debugDisplay.js.map +0 -1
- package/dist/features/debugDisplay/exports.js +0 -441
- package/dist/features/debugDisplay/exports.js.map +0 -1
- package/dist/features/debugDisplay/v.js +0 -61
- package/dist/features/debugDisplay/v.js.map +0 -1
- package/dist/features/deployJSONRoom.js +0 -532
- package/dist/features/deployJSONRoom.js.map +0 -1
- package/dist/features/disableAllSound.js +0 -63
- package/dist/features/disableAllSound.js.map +0 -1
- package/dist/features/disableInputs.js +0 -130
- package/dist/features/disableInputs.js.map +0 -1
- package/dist/features/extraConsoleCommands/commandsDisplay.js +0 -236
- package/dist/features/extraConsoleCommands/commandsDisplay.js.map +0 -1
- package/dist/features/extraConsoleCommands/commandsSubroutines.js +0 -109
- package/dist/features/extraConsoleCommands/commandsSubroutines.js.map +0 -1
- package/dist/features/extraConsoleCommands/exports.js +0 -53
- package/dist/features/extraConsoleCommands/exports.js.map +0 -1
- package/dist/features/extraConsoleCommands/init.js +0 -239
- package/dist/features/extraConsoleCommands/init.js.map +0 -1
- package/dist/features/extraConsoleCommands/listCommands.js +0 -1081
- package/dist/features/extraConsoleCommands/listCommands.js.map +0 -1
- package/dist/features/extraConsoleCommands/v.js +0 -25
- package/dist/features/extraConsoleCommands/v.js.map +0 -1
- package/dist/features/fadeInRemover.js +0 -51
- package/dist/features/fadeInRemover.js.map +0 -1
- package/dist/features/fastReset.js +0 -61
- package/dist/features/fastReset.js.map +0 -1
- package/dist/features/forgottenSwitch.js +0 -33
- package/dist/features/forgottenSwitch.js.map +0 -1
- package/dist/features/pause.js +0 -68
- package/dist/features/pause.js.map +0 -1
- package/dist/features/persistentEntities.js +0 -120
- package/dist/features/persistentEntities.js.map +0 -1
- package/dist/features/playerInventory.js +0 -89
- package/dist/features/playerInventory.js.map +0 -1
- package/dist/features/ponyDetection.js +0 -63
- package/dist/features/ponyDetection.js.map +0 -1
- package/dist/features/preventCollectibleRotation.js +0 -81
- package/dist/features/preventCollectibleRotation.js.map +0 -1
- package/dist/features/registerHotkey.js +0 -91
- package/dist/features/registerHotkey.js.map +0 -1
- package/dist/features/roomClearFrame.js +0 -42
- package/dist/features/roomClearFrame.js.map +0 -1
- package/dist/features/runInNFrames.js +0 -189
- package/dist/features/runInNFrames.js.map +0 -1
- package/dist/features/runNextRoom.js +0 -34
- package/dist/features/runNextRoom.js.map +0 -1
- package/dist/features/saveDataManager/exports.js +0 -183
- package/dist/features/saveDataManager/exports.js.map +0 -1
- package/dist/features/saveDataManager/load.js +0 -69
- package/dist/features/saveDataManager/load.js.map +0 -1
- package/dist/features/saveDataManager/main.js +0 -131
- package/dist/features/saveDataManager/main.js.map +0 -1
- package/dist/features/saveDataManager/maps.js +0 -9
- package/dist/features/saveDataManager/maps.js.map +0 -1
- package/dist/features/saveDataManager/merge.js +0 -139
- package/dist/features/saveDataManager/merge.js.map +0 -1
- package/dist/features/saveDataManager/save.js +0 -43
- package/dist/features/saveDataManager/save.js.map +0 -1
- package/dist/features/saveDataManager/saveDataManagerConstants.js +0 -4
- package/dist/features/saveDataManager/saveDataManagerConstants.js.map +0 -1
- package/dist/features/saveDataManager/serializationBrand.js +0 -12
- package/dist/features/saveDataManager/serializationBrand.js.map +0 -1
- package/dist/features/sirenHelpers.js +0 -90
- package/dist/features/sirenHelpers.js.map +0 -1
- package/dist/features/stageHistory.js +0 -43
- package/dist/features/stageHistory.js.map +0 -1
- package/dist/features/taintedLazarusPlayers.js +0 -92
- package/dist/features/taintedLazarusPlayers.js.map +0 -1
- package/dist/featuresInitialized.js +0 -16
- package/dist/featuresInitialized.js.map +0 -1
- package/dist/functions/ambush.js +0 -35
- package/dist/functions/ambush.js.map +0 -1
- package/dist/functions/array.js +0 -423
- package/dist/functions/array.js.map +0 -1
- package/dist/functions/benchmark.js +0 -28
- package/dist/functions/benchmark.js.map +0 -1
- package/dist/functions/bitwise.js +0 -74
- package/dist/functions/bitwise.js.map +0 -1
- package/dist/functions/bombs.js +0 -11
- package/dist/functions/bombs.js.map +0 -1
- package/dist/functions/boss.js +0 -137
- package/dist/functions/boss.js.map +0 -1
- package/dist/functions/cacheFlag.js +0 -11
- package/dist/functions/cacheFlag.js.map +0 -1
- package/dist/functions/cards.js +0 -217
- package/dist/functions/cards.js.map +0 -1
- package/dist/functions/challenges.js +0 -9
- package/dist/functions/challenges.js.map +0 -1
- package/dist/functions/character.js +0 -102
- package/dist/functions/character.js.map +0 -1
- package/dist/functions/charge.js +0 -202
- package/dist/functions/charge.js.map +0 -1
- package/dist/functions/chargeBar.js +0 -44
- package/dist/functions/chargeBar.js.map +0 -1
- package/dist/functions/collectibleCacheFlag.js +0 -68
- package/dist/functions/collectibleCacheFlag.js.map +0 -1
- package/dist/functions/collectibleSet.js +0 -108
- package/dist/functions/collectibleSet.js.map +0 -1
- package/dist/functions/collectibleTag.js +0 -65
- package/dist/functions/collectibleTag.js.map +0 -1
- package/dist/functions/collectibles.js +0 -469
- package/dist/functions/collectibles.js.map +0 -1
- package/dist/functions/color.js +0 -60
- package/dist/functions/color.js.map +0 -1
- package/dist/functions/debug.js +0 -60
- package/dist/functions/debug.js.map +0 -1
- package/dist/functions/deepCopy.js +0 -361
- package/dist/functions/deepCopy.js.map +0 -1
- package/dist/functions/deepCopyTests.js +0 -308
- package/dist/functions/deepCopyTests.js.map +0 -1
- package/dist/functions/direction.js +0 -41
- package/dist/functions/direction.js.map +0 -1
- package/dist/functions/doors.js +0 -326
- package/dist/functions/doors.js.map +0 -1
- package/dist/functions/easing.js +0 -142
- package/dist/functions/easing.js.map +0 -1
- package/dist/functions/eden.js +0 -32
- package/dist/functions/eden.js.map +0 -1
- package/dist/functions/effects.js +0 -11
- package/dist/functions/effects.js.map +0 -1
- package/dist/functions/entity.js +0 -324
- package/dist/functions/entity.js.map +0 -1
- package/dist/functions/entitySpecific.js +0 -481
- package/dist/functions/entitySpecific.js.map +0 -1
- package/dist/functions/entityTypes.js +0 -6
- package/dist/functions/entityTypes.js.map +0 -1
- package/dist/functions/enums.js +0 -151
- package/dist/functions/enums.js.map +0 -1
- package/dist/functions/familiars.js +0 -85
- package/dist/functions/familiars.js.map +0 -1
- package/dist/functions/flag.js +0 -137
- package/dist/functions/flag.js.map +0 -1
- package/dist/functions/flying.js +0 -88
- package/dist/functions/flying.js.map +0 -1
- package/dist/functions/globals.js +0 -230
- package/dist/functions/globals.js.map +0 -1
- package/dist/functions/gridEntity.js +0 -488
- package/dist/functions/gridEntity.js.map +0 -1
- package/dist/functions/gridEntitySpecific.js +0 -109
- package/dist/functions/gridEntitySpecific.js.map +0 -1
- package/dist/functions/input.js +0 -95
- package/dist/functions/input.js.map +0 -1
- package/dist/functions/isaacAPIClass.js +0 -48
- package/dist/functions/isaacAPIClass.js.map +0 -1
- package/dist/functions/jsonHelpers.js +0 -40
- package/dist/functions/jsonHelpers.js.map +0 -1
- package/dist/functions/jsonRoom.js +0 -132
- package/dist/functions/jsonRoom.js.map +0 -1
- package/dist/functions/kColor.js +0 -63
- package/dist/functions/kColor.js.map +0 -1
- package/dist/functions/language.js +0 -13
- package/dist/functions/language.js.map +0 -1
- package/dist/functions/level.js +0 -20
- package/dist/functions/level.js.map +0 -1
- package/dist/functions/log.js +0 -567
- package/dist/functions/log.js.map +0 -1
- package/dist/functions/map.js +0 -45
- package/dist/functions/map.js.map +0 -1
- package/dist/functions/math.js +0 -103
- package/dist/functions/math.js.map +0 -1
- package/dist/functions/mergeTests.js +0 -213
- package/dist/functions/mergeTests.js.map +0 -1
- package/dist/functions/minimap.js +0 -80
- package/dist/functions/minimap.js.map +0 -1
- package/dist/functions/nextStage.js +0 -290
- package/dist/functions/nextStage.js.map +0 -1
- package/dist/functions/npc.js +0 -101
- package/dist/functions/npc.js.map +0 -1
- package/dist/functions/pickupVariants.js +0 -47
- package/dist/functions/pickupVariants.js.map +0 -1
- package/dist/functions/pickups.js +0 -219
- package/dist/functions/pickups.js.map +0 -1
- package/dist/functions/pills.js +0 -160
- package/dist/functions/pills.js.map +0 -1
- package/dist/functions/player.js +0 -808
- package/dist/functions/player.js.map +0 -1
- package/dist/functions/playerCenter.js +0 -50
- package/dist/functions/playerCenter.js.map +0 -1
- package/dist/functions/playerDataStructures.js +0 -114
- package/dist/functions/playerDataStructures.js.map +0 -1
- package/dist/functions/playerHealth.js +0 -321
- package/dist/functions/playerHealth.js.map +0 -1
- package/dist/functions/playerIndex.js +0 -160
- package/dist/functions/playerIndex.js.map +0 -1
- package/dist/functions/pocketItems.js +0 -124
- package/dist/functions/pocketItems.js.map +0 -1
- package/dist/functions/positionVelocity.js +0 -136
- package/dist/functions/positionVelocity.js.map +0 -1
- package/dist/functions/random.js +0 -73
- package/dist/functions/random.js.map +0 -1
- package/dist/functions/revive.js +0 -140
- package/dist/functions/revive.js.map +0 -1
- package/dist/functions/rng.js +0 -117
- package/dist/functions/rng.js.map +0 -1
- package/dist/functions/roomData.js +0 -174
- package/dist/functions/roomData.js.map +0 -1
- package/dist/functions/roomGrid.js +0 -81
- package/dist/functions/roomGrid.js.map +0 -1
- package/dist/functions/roomShape.js +0 -99
- package/dist/functions/roomShape.js.map +0 -1
- package/dist/functions/rooms.js +0 -487
- package/dist/functions/rooms.js.map +0 -1
- package/dist/functions/run.js +0 -53
- package/dist/functions/run.js.map +0 -1
- package/dist/functions/saveFile.js +0 -104
- package/dist/functions/saveFile.js.map +0 -1
- package/dist/functions/seeds.js +0 -18
- package/dist/functions/seeds.js.map +0 -1
- package/dist/functions/serialization.js +0 -52
- package/dist/functions/serialization.js.map +0 -1
- package/dist/functions/set.js +0 -99
- package/dist/functions/set.js.map +0 -1
- package/dist/functions/sound.js +0 -9
- package/dist/functions/sound.js.map +0 -1
- package/dist/functions/spawnCollectible.js +0 -66
- package/dist/functions/spawnCollectible.js.map +0 -1
- package/dist/functions/sprite.js +0 -80
- package/dist/functions/sprite.js.map +0 -1
- package/dist/functions/stage.js +0 -172
- package/dist/functions/stage.js.map +0 -1
- package/dist/functions/string.js +0 -37
- package/dist/functions/string.js.map +0 -1
- package/dist/functions/table.js +0 -143
- package/dist/functions/table.js.map +0 -1
- package/dist/functions/tears.js +0 -31
- package/dist/functions/tears.js.map +0 -1
- package/dist/functions/transformations.js +0 -101
- package/dist/functions/transformations.js.map +0 -1
- package/dist/functions/trinketCacheFlag.js +0 -46
- package/dist/functions/trinketCacheFlag.js.map +0 -1
- package/dist/functions/trinketGive.js +0 -121
- package/dist/functions/trinketGive.js.map +0 -1
- package/dist/functions/trinkets.js +0 -169
- package/dist/functions/trinkets.js.map +0 -1
- package/dist/functions/tstlClass.js +0 -125
- package/dist/functions/tstlClass.js.map +0 -1
- package/dist/functions/types.js +0 -27
- package/dist/functions/types.js.map +0 -1
- package/dist/functions/ui.js +0 -124
- package/dist/functions/ui.js.map +0 -1
- package/dist/functions/utils.js +0 -172
- package/dist/functions/utils.js.map +0 -1
- package/dist/functions/vector.js +0 -68
- package/dist/functions/vector.js.map +0 -1
- package/dist/index.js +0 -140
- package/dist/index.js.map +0 -1
- package/dist/initCustomCallbacks.js +0 -133
- package/dist/initCustomCallbacks.js.map +0 -1
- package/dist/initFeatures.js +0 -51
- package/dist/initFeatures.js.map +0 -1
- package/dist/interfaces/AddCallbackParameterCustom.js +0 -2
- package/dist/interfaces/AddCallbackParameterCustom.js.map +0 -1
- package/dist/interfaces/ChargeBarSprites.js +0 -2
- package/dist/interfaces/ChargeBarSprites.js.map +0 -1
- package/dist/interfaces/Corner.js +0 -2
- package/dist/interfaces/Corner.js.map +0 -1
- package/dist/interfaces/CustomGridEntityData.js +0 -2
- package/dist/interfaces/CustomGridEntityData.js.map +0 -1
- package/dist/interfaces/CustomStage.js +0 -2
- package/dist/interfaces/CustomStage.js.map +0 -1
- package/dist/interfaces/CustomStageLua.js +0 -13
- package/dist/interfaces/CustomStageLua.js.map +0 -1
- package/dist/interfaces/JSONRoomsFile.js +0 -2
- package/dist/interfaces/JSONRoomsFile.js.map +0 -1
- package/dist/interfaces/PlayerHealth.js +0 -2
- package/dist/interfaces/PlayerHealth.js.map +0 -1
- package/dist/interfaces/PocketItemDescription.js +0 -2
- package/dist/interfaces/PocketItemDescription.js.map +0 -1
- package/dist/interfaces/SaveData.js +0 -2
- package/dist/interfaces/SaveData.js.map +0 -1
- package/dist/interfaces/TrinketSituation.js +0 -2
- package/dist/interfaces/TrinketSituation.js.map +0 -1
- package/dist/interfaces/private/TSTLClassMetatable.js +0 -2
- package/dist/interfaces/private/TSTLClassMetatable.js.map +0 -1
- package/dist/maps/PHDPillConversions.js +0 -20
- package/dist/maps/PHDPillConversions.js.map +0 -1
- package/dist/maps/cardMap.js +0 -208
- package/dist/maps/cardMap.js.map +0 -1
- package/dist/maps/characterMap.js +0 -86
- package/dist/maps/characterMap.js.map +0 -1
- package/dist/maps/collectibleDescriptionMap.js +0 -728
- package/dist/maps/collectibleDescriptionMap.js.map +0 -1
- package/dist/maps/collectibleNameMap.js +0 -727
- package/dist/maps/collectibleNameMap.js.map +0 -1
- package/dist/maps/defaultPlayerStatMap.js +0 -14
- package/dist/maps/defaultPlayerStatMap.js.map +0 -1
- package/dist/maps/falsePHDPillConversions.js +0 -34
- package/dist/maps/falsePHDPillConversions.js.map +0 -1
- package/dist/maps/gridEntityTypeToBrokenStateMap.js +0 -29
- package/dist/maps/gridEntityTypeToBrokenStateMap.js.map +0 -1
- package/dist/maps/gridEntityXMLMap.js +0 -128
- package/dist/maps/gridEntityXMLMap.js.map +0 -1
- package/dist/maps/pillEffectMap.js +0 -88
- package/dist/maps/pillEffectMap.js.map +0 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.js +0 -14
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.js.map +0 -1
- package/dist/maps/roomTypeMap.js +0 -39
- package/dist/maps/roomTypeMap.js.map +0 -1
- package/dist/maps/trinketDescriptionMap.js +0 -196
- package/dist/maps/trinketDescriptionMap.js.map +0 -1
- package/dist/maps/trinketNameMap.js +0 -195
- package/dist/maps/trinketNameMap.js.map +0 -1
- package/dist/objects/LRoomShapeToRectangles.js +0 -33
- package/dist/objects/LRoomShapeToRectangles.js.map +0 -1
- package/dist/objects/backdropTypeToRockAltType.js +0 -66
- package/dist/objects/backdropTypeToRockAltType.js.map +0 -1
- package/dist/objects/bossNamePNGFileNames.js +0 -112
- package/dist/objects/bossNamePNGFileNames.js.map +0 -1
- package/dist/objects/bossPortraitPNGFileNames.js +0 -115
- package/dist/objects/bossPortraitPNGFileNames.js.map +0 -1
- package/dist/objects/callbackRegisterFunctions.js +0 -170
- package/dist/objects/callbackRegisterFunctions.js.map +0 -1
- package/dist/objects/cardDescriptions.js +0 -104
- package/dist/objects/cardDescriptions.js.map +0 -1
- package/dist/objects/cardNames.js +0 -104
- package/dist/objects/cardNames.js.map +0 -1
- package/dist/objects/cardTypes.js +0 -103
- package/dist/objects/cardTypes.js.map +0 -1
- package/dist/objects/challengeNames.js +0 -51
- package/dist/objects/challengeNames.js.map +0 -1
- package/dist/objects/characterNames.js +0 -46
- package/dist/objects/characterNames.js.map +0 -1
- package/dist/objects/coinSubTypeToValue.js +0 -13
- package/dist/objects/coinSubTypeToValue.js.map +0 -1
- package/dist/objects/colors.js +0 -24
- package/dist/objects/colors.js.map +0 -1
- package/dist/objects/directionNames.js +0 -9
- package/dist/objects/directionNames.js.map +0 -1
- package/dist/objects/directionToDegrees.js +0 -9
- package/dist/objects/directionToDegrees.js.map +0 -1
- package/dist/objects/directionToVector.js +0 -10
- package/dist/objects/directionToVector.js.map +0 -1
- package/dist/objects/doorSlotFlagToDoorSlot.js +0 -13
- package/dist/objects/doorSlotFlagToDoorSlot.js.map +0 -1
- package/dist/objects/doorSlotToDirection.js +0 -13
- package/dist/objects/doorSlotToDirection.js.map +0 -1
- package/dist/objects/doorSlotToDoorSlotFlag.js +0 -13
- package/dist/objects/doorSlotToDoorSlotFlag.js.map +0 -1
- package/dist/objects/isaacAPIClassTypeToBrand.js +0 -9
- package/dist/objects/isaacAPIClassTypeToBrand.js.map +0 -1
- package/dist/objects/isaacAPIClassTypeToCopyFunction.js +0 -12
- package/dist/objects/isaacAPIClassTypeToCopyFunction.js.map +0 -1
- package/dist/objects/languageNames.js +0 -11
- package/dist/objects/languageNames.js.map +0 -1
- package/dist/objects/oppositeDoorSlots.js +0 -13
- package/dist/objects/oppositeDoorSlots.js.map +0 -1
- package/dist/objects/pillEffectClasses.js +0 -56
- package/dist/objects/pillEffectClasses.js.map +0 -1
- package/dist/objects/pillEffectNames.js +0 -55
- package/dist/objects/pillEffectNames.js.map +0 -1
- package/dist/objects/pillEffectTypes.js +0 -55
- package/dist/objects/pillEffectTypes.js.map +0 -1
- package/dist/objects/playerNamePNGFileNames.js +0 -55
- package/dist/objects/playerNamePNGFileNames.js.map +0 -1
- package/dist/objects/playerPortraitPNGFileNames.js +0 -52
- package/dist/objects/playerPortraitPNGFileNames.js.map +0 -1
- package/dist/objects/roomShapeBounds.js +0 -46
- package/dist/objects/roomShapeBounds.js.map +0 -1
- package/dist/objects/roomShapeCorners.js +0 -268
- package/dist/objects/roomShapeCorners.js.map +0 -1
- package/dist/objects/roomShapeLayoutSizes.js +0 -39
- package/dist/objects/roomShapeLayoutSizes.js.map +0 -1
- package/dist/objects/roomShapeToBottomRightPosition.js +0 -22
- package/dist/objects/roomShapeToBottomRightPosition.js.map +0 -1
- package/dist/objects/roomShapeToDoorSlotCoordinates.js +0 -109
- package/dist/objects/roomShapeToDoorSlotCoordinates.js.map +0 -1
- package/dist/objects/roomShapeToDoorSlots.js +0 -69
- package/dist/objects/roomShapeToDoorSlots.js.map +0 -1
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +0 -113
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js.map +0 -1
- package/dist/objects/roomShapeToGridWidth.js +0 -18
- package/dist/objects/roomShapeToGridWidth.js.map +0 -1
- package/dist/objects/roomShapeToTopLeftPosition.js +0 -23
- package/dist/objects/roomShapeToTopLeftPosition.js.map +0 -1
- package/dist/objects/roomShapeVolumes.js +0 -30
- package/dist/objects/roomShapeVolumes.js.map +0 -1
- package/dist/objects/roomTypeGotoPrefixes.js +0 -33
- package/dist/objects/roomTypeGotoPrefixes.js.map +0 -1
- package/dist/objects/roomTypeNames.js +0 -34
- package/dist/objects/roomTypeNames.js.map +0 -1
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.js +0 -12
- package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.js.map +0 -1
- package/dist/objects/stageTypeSuffixes.js +0 -10
- package/dist/objects/stageTypeSuffixes.js.map +0 -1
- package/dist/objects/stageTypeToLetter.js +0 -12
- package/dist/objects/stageTypeToLetter.js.map +0 -1
- package/dist/objects/transformationNames.js +0 -18
- package/dist/objects/transformationNames.js.map +0 -1
- package/dist/objects/versusScreenBackgroundColors.js +0 -36
- package/dist/objects/versusScreenBackgroundColors.js.map +0 -1
- package/dist/objects/versusScreenDirtSpotColors.js +0 -36
- package/dist/objects/versusScreenDirtSpotColors.js.map +0 -1
- package/dist/patchErrorFunctions.js +0 -67
- package/dist/patchErrorFunctions.js.map +0 -1
- package/dist/sets/LRoomShapesSet.js +0 -8
- package/dist/sets/LRoomShapesSet.js.map +0 -1
- package/dist/sets/bossSets.js +0 -374
- package/dist/sets/bossSets.js.map +0 -1
- package/dist/sets/charactersThatStartWithAnActiveItemSet.js +0 -15
- package/dist/sets/charactersThatStartWithAnActiveItemSet.js.map +0 -1
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.js +0 -6
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.js.map +0 -1
- package/dist/sets/charactersWithFreeDevilDealsSet.js +0 -3
- package/dist/sets/charactersWithFreeDevilDealsSet.js.map +0 -1
- package/dist/sets/charactersWithNoRedHeartsSet.js +0 -16
- package/dist/sets/charactersWithNoRedHeartsSet.js.map +0 -1
- package/dist/sets/charactersWithNoSoulHeartsSet.js +0 -13
- package/dist/sets/charactersWithNoSoulHeartsSet.js.map +0 -1
- package/dist/sets/chestPickupVariantsSet.js +0 -16
- package/dist/sets/chestPickupVariantsSet.js.map +0 -1
- package/dist/sets/consoleCommandsSet.js +0 -61
- package/dist/sets/consoleCommandsSet.js.map +0 -1
- package/dist/sets/familiarsThatShootPlayerTearsSet.js +0 -12
- package/dist/sets/familiarsThatShootPlayerTearsSet.js.map +0 -1
- package/dist/sets/lostStyleCharactersSet.js +0 -13
- package/dist/sets/lostStyleCharactersSet.js.map +0 -1
- package/dist/sets/mineShaftRoomSubTypesSet.js +0 -9
- package/dist/sets/mineShaftRoomSubTypesSet.js.map +0 -1
- package/dist/sets/narrowRoomShapesSet.js +0 -8
- package/dist/sets/narrowRoomShapesSet.js.map +0 -1
- package/dist/sets/redHeartSubTypesSet.js +0 -7
- package/dist/sets/redHeartSubTypesSet.js.map +0 -1
- package/dist/sets/sinEntityTypesSet.js +0 -11
- package/dist/sets/sinEntityTypesSet.js.map +0 -1
- package/dist/sets/singleUseActiveCollectibleTypesSet.js +0 -12
- package/dist/sets/singleUseActiveCollectibleTypesSet.js.map +0 -1
- package/dist/sets/storyBossesSet.js +0 -17
- package/dist/sets/storyBossesSet.js.map +0 -1
- package/dist/shaderCrashFix.js +0 -17
- package/dist/shaderCrashFix.js.map +0 -1
- package/dist/types/AnyEntity.js +0 -2
- package/dist/types/AnyEntity.js.map +0 -1
- package/dist/types/CollectibleIndex.js +0 -2
- package/dist/types/CollectibleIndex.js.map +0 -1
- package/dist/types/PickingUpItem.js +0 -38
- package/dist/types/PickingUpItem.js.map +0 -1
- package/dist/types/PlayerIndex.js +0 -2
- package/dist/types/PlayerIndex.js.map +0 -1
- package/dist/types/private/IsaacAPIClass.js +0 -2
- package/dist/types/private/IsaacAPIClass.js.map +0 -1
- package/dist/types/private/SerializedIsaacAPIClass.js +0 -2
- package/dist/types/private/SerializedIsaacAPIClass.js.map +0 -1
- package/dist/types/private/TSTLClass.js +0 -2
- package/dist/types/private/TSTLClass.js.map +0 -1
- package/dist/upgradeMod.js +0 -47
- package/dist/upgradeMod.js.map +0 -1
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { CollectibleType, PlayerType } from "isaac-typescript-definitions";
|
|
2
|
-
import { game } from "../cachedClasses";
|
|
3
|
-
const DEFAULT_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
|
|
4
|
-
const EXCLUDED_CHARACTERS = new Set([
|
|
5
|
-
PlayerType.ESAU,
|
|
6
|
-
PlayerType.THE_SOUL_B, // 40
|
|
7
|
-
]);
|
|
8
|
-
/**
|
|
9
|
-
* Helper function to get every player with no restrictions, by using `Game.GetNumPlayers` and
|
|
10
|
-
* `Isaac.GetPlayer`.
|
|
11
|
-
*
|
|
12
|
-
* This function is almost never what you want to use. For most purposes, use the `getPlayers`
|
|
13
|
-
* helper function instead to get a filtered list of players.
|
|
14
|
-
*/
|
|
15
|
-
export function getAllPlayers() {
|
|
16
|
-
const numPlayers = game.GetNumPlayers();
|
|
17
|
-
const players = [];
|
|
18
|
-
for (let i = 0; i < numPlayers; i++) {
|
|
19
|
-
const player = Isaac.GetPlayer(i);
|
|
20
|
-
players.push(player);
|
|
21
|
-
}
|
|
22
|
-
return players;
|
|
23
|
-
}
|
|
24
|
-
export function getPlayerFromIndex(playerIndex) {
|
|
25
|
-
const players = getPlayers();
|
|
26
|
-
return players.find((player) => getPlayerIndex(player) === playerIndex);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Mods often have to track variables relating to the player. In naive mods, information will only
|
|
30
|
-
* be stored about the first player. However, in order to be robust, mods must handle up to 4
|
|
31
|
-
* players playing at the same time. This means that information must be stored on a map data
|
|
32
|
-
* structure. Finding a good index for these types of map data structures is difficult:
|
|
33
|
-
*
|
|
34
|
-
* - We cannot use the index from `Isaac.GetPlayer(i)` since this fails in the case where there are
|
|
35
|
-
* two players and the first player leaves the run.
|
|
36
|
-
* - We cannot use `EntityPlayer.ControllerIndex` as an index because it fails in the case of Jacob
|
|
37
|
-
* & Esau or Tainted Forgotten. It also fails in the case of a player changing their controls
|
|
38
|
-
* mid-run.
|
|
39
|
-
* - We cannot use `EntityPlayer.GetData().index` because it does not persist across saving and
|
|
40
|
-
* continuing.
|
|
41
|
-
* - We cannot use `GetPtrHash()` as an index because it does not persist across exiting and
|
|
42
|
-
* relaunching the game.
|
|
43
|
-
* - We cannot use `EntityPlayer.InitSeed` because it is not consistent with additional players
|
|
44
|
-
* beyond the first.
|
|
45
|
-
*
|
|
46
|
-
* Instead, we use the `EntityPlayer.GetCollectibleRNG` method with an arbitrary value of Sad Onion
|
|
47
|
-
* (1). This works even if the player does not have any Sad Onions.
|
|
48
|
-
*
|
|
49
|
-
* Since the RNG value is the same for both Tainted Lazarus and Dead Tainted Lazarus, we revert to
|
|
50
|
-
* using the RNG of The Inner Eye (2) for Dead Tainted Lazarus.
|
|
51
|
-
*
|
|
52
|
-
* Note that by default, this returns the same index for both The Forgotten and The Soul. (Even
|
|
53
|
-
* though they are technically different characters, they share the same inventory and InitSeed.) If
|
|
54
|
-
* this is not desired, pass true for the `differentiateForgottenAndSoul` argument, and the RNG of
|
|
55
|
-
* Spoon Bender (3) will be used for The Soul.
|
|
56
|
-
*/
|
|
57
|
-
export function getPlayerIndex(player, differentiateForgottenAndSoul = false) {
|
|
58
|
-
// Sub-players use separate RNG values for some reason, so we need to always use the main player:
|
|
59
|
-
// https://github.com/Meowlala/RepentanceAPIIssueTracker/issues/443
|
|
60
|
-
// We can safely ignore the player's character because regardless of whether the main player ends
|
|
61
|
-
// up being The Forgotten or The Soul, the collectible RNG values will be the same. The
|
|
62
|
-
// `EntityPlayer.IsSubPlayer` method can return true for Dead Tainted Lazarus during the
|
|
63
|
-
// PostPlayerInit callback, but since we fall back to the player in the case of
|
|
64
|
-
// "getSubPlayerParent" returning undefined, we do not need to explicitly check for this case.
|
|
65
|
-
let playerToUse = player;
|
|
66
|
-
const isSubPlayer = player.IsSubPlayer();
|
|
67
|
-
if (isSubPlayer) {
|
|
68
|
-
// The "getSubPlayerParent" function will return undefined in the situation where we are on Dead
|
|
69
|
-
// Tainted Lazarus in the PostPlayerInit callback.
|
|
70
|
-
const playerParent = getSubPlayerParent(player);
|
|
71
|
-
if (playerParent !== undefined) {
|
|
72
|
-
playerToUse = playerParent;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const collectibleType = getPlayerIndexCollectibleType(player, differentiateForgottenAndSoul);
|
|
76
|
-
const collectibleRNG = playerToUse.GetCollectibleRNG(collectibleType);
|
|
77
|
-
const seed = collectibleRNG.GetSeed();
|
|
78
|
-
return seed;
|
|
79
|
-
}
|
|
80
|
-
function getPlayerIndexCollectibleType(player, differentiateForgottenAndSoul) {
|
|
81
|
-
const character = player.GetPlayerType();
|
|
82
|
-
switch (character) {
|
|
83
|
-
// 17
|
|
84
|
-
case PlayerType.THE_SOUL: {
|
|
85
|
-
return differentiateForgottenAndSoul
|
|
86
|
-
? CollectibleType.SPOON_BENDER
|
|
87
|
-
: DEFAULT_COLLECTIBLE_TYPE;
|
|
88
|
-
}
|
|
89
|
-
// 38
|
|
90
|
-
case PlayerType.LAZARUS_2_B: {
|
|
91
|
-
return CollectibleType.INNER_EYE;
|
|
92
|
-
}
|
|
93
|
-
default: {
|
|
94
|
-
return DEFAULT_COLLECTIBLE_TYPE;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Helper function to return the index of this player with respect to the output of the
|
|
100
|
-
* `Isaac.GetPlayer` method.
|
|
101
|
-
*
|
|
102
|
-
* Note that if you storing information about a player in a data structure, you never want to use
|
|
103
|
-
* this index; use the `getPlayerIndex` function instead.
|
|
104
|
-
*/
|
|
105
|
-
export function getPlayerIndexVanilla(playerToFind) {
|
|
106
|
-
const numPlayers = game.GetNumPlayers();
|
|
107
|
-
const playerToFindHash = GetPtrHash(playerToFind);
|
|
108
|
-
for (let i = 0; i < numPlayers; i++) {
|
|
109
|
-
const player = Isaac.GetPlayer(i);
|
|
110
|
-
const playerHash = GetPtrHash(player);
|
|
111
|
-
if (playerHash === playerToFindHash) {
|
|
112
|
-
return i;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return undefined;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* This function always excludes players with a non-undefined parent, since they are not real
|
|
119
|
-
* players (e.g. the Strawman Keeper).
|
|
120
|
-
*
|
|
121
|
-
* If this is not desired, use the `getAllPlayers` helper function instead.
|
|
122
|
-
*
|
|
123
|
-
* @param performCharacterExclusions Whether or not to exclude characters that are not directly
|
|
124
|
-
* controlled by the player (i.e. Esau & Tainted Soul). Default is
|
|
125
|
-
* false.
|
|
126
|
-
*/
|
|
127
|
-
export function getPlayers(performCharacterExclusions = false) {
|
|
128
|
-
const players = getAllPlayers();
|
|
129
|
-
const nonChildPlayers = players.filter((player) => !isChildPlayer(player));
|
|
130
|
-
const nonChildPlayersFiltered = nonChildPlayers.filter((player) => {
|
|
131
|
-
const character = player.GetPlayerType();
|
|
132
|
-
return !EXCLUDED_CHARACTERS.has(character);
|
|
133
|
-
});
|
|
134
|
-
return performCharacterExclusions ? nonChildPlayersFiltered : nonChildPlayers;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Helper function to get a parent `EntityPlayer` object for a given `EntitySubPlayer` object. This
|
|
138
|
-
* is useful because calling the `EntityPlayer.GetSubPlayer` method on a sub-player object will
|
|
139
|
-
* return undefined.
|
|
140
|
-
*/
|
|
141
|
-
export function getSubPlayerParent(subPlayer) {
|
|
142
|
-
const subPlayerPtrHash = GetPtrHash(subPlayer);
|
|
143
|
-
const players = getPlayers();
|
|
144
|
-
return players.find((player) => {
|
|
145
|
-
const thisPlayerSubPlayer = player.GetSubPlayer();
|
|
146
|
-
if (thisPlayerSubPlayer === undefined) {
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
const thisPlayerSubPlayerPtrHash = GetPtrHash(thisPlayerSubPlayer);
|
|
150
|
-
return thisPlayerSubPlayerPtrHash === subPlayerPtrHash;
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Some players are "child" players, meaning that they have a non-undefined Parent property. (For
|
|
155
|
-
* example, the Strawman Keeper.)
|
|
156
|
-
*/
|
|
157
|
-
export function isChildPlayer(player) {
|
|
158
|
-
return player.Parent !== undefined;
|
|
159
|
-
}
|
|
160
|
-
//# sourceMappingURL=playerIndex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playerIndex.js","sourceRoot":"../src/","sources":["functions/playerIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,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ot, } from "isaac-typescript-definitions";
|
|
2
|
-
import { PocketItemType } from "../enums/PocketItemType";
|
|
3
|
-
import { getEnumValues } from "./enums";
|
|
4
|
-
import { isCharacter } from "./player";
|
|
5
|
-
/**
|
|
6
|
-
* Helper function to get the `PocketItemSlot` that the player's pocket active collectible item is
|
|
7
|
-
* in, if any. Returns undefined if the player does not have a pocket active item.
|
|
8
|
-
*/
|
|
9
|
-
export function getActivePocketItemSlot(player) {
|
|
10
|
-
const pocketItems = getPocketItems(player);
|
|
11
|
-
for (const pocketItem of pocketItems) {
|
|
12
|
-
if (pocketItem.type === PocketItemType.ACTIVE_ITEM) {
|
|
13
|
-
return pocketItem.slot;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
export function getFirstCardOrPill(player) {
|
|
19
|
-
const pocketItems = getPocketItems(player);
|
|
20
|
-
return pocketItems.find((pocketItem) => pocketItem.type === PocketItemType.CARD ||
|
|
21
|
-
pocketItem.type === PocketItemType.PILL);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Use this helper function as a workaround for the `EntityPlayer.GetPocketItem` method not working
|
|
25
|
-
* correctly.
|
|
26
|
-
*
|
|
27
|
-
* Note that due to API limitations, there is no way to determine the location of a Dice Bag trinket
|
|
28
|
-
* dice. Furthermore, when the player has a Dice Bag trinket dice and a pocket active at the same
|
|
29
|
-
* time, there is no way to determine the location of the pocket active item. If this function
|
|
30
|
-
* cannot determine the identity of a particular slot, it will mark the type of the slot as
|
|
31
|
-
* `PocketItemType.UNDETERMINABLE`.
|
|
32
|
-
*/
|
|
33
|
-
export function getPocketItems(player) {
|
|
34
|
-
const pocketItem = player.GetActiveItem(ActiveSlot.POCKET);
|
|
35
|
-
const hasPocketItem = pocketItem !== CollectibleType.NULL;
|
|
36
|
-
const pocketItem2 = player.GetActiveItem(ActiveSlot.POCKET_SINGLE_USE);
|
|
37
|
-
const hasPocketItem2 = pocketItem2 !== CollectibleType.NULL;
|
|
38
|
-
const maxPocketItems = player.GetMaxPocketItems();
|
|
39
|
-
const pocketItemSlots = getEnumValues(PocketItemSlot);
|
|
40
|
-
const pocketItems = [];
|
|
41
|
-
let pocketItemIdentified = false;
|
|
42
|
-
let pocketItem2Identified = false;
|
|
43
|
-
for (const slot of pocketItemSlots) {
|
|
44
|
-
const card = player.GetCard(slot);
|
|
45
|
-
const pillColor = player.GetPill(slot);
|
|
46
|
-
if (card !== Card.NULL) {
|
|
47
|
-
pocketItems.push({
|
|
48
|
-
slot,
|
|
49
|
-
type: PocketItemType.CARD,
|
|
50
|
-
subType: card,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
else if (pillColor !== PillColor.NULL) {
|
|
54
|
-
pocketItems.push({
|
|
55
|
-
slot,
|
|
56
|
-
type: PocketItemType.PILL,
|
|
57
|
-
subType: pillColor,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
else if (hasPocketItem && !hasPocketItem2 && !pocketItemIdentified) {
|
|
61
|
-
pocketItemIdentified = true;
|
|
62
|
-
pocketItems.push({
|
|
63
|
-
slot,
|
|
64
|
-
type: PocketItemType.ACTIVE_ITEM,
|
|
65
|
-
subType: pocketItem,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
else if (!hasPocketItem && hasPocketItem2 && !pocketItem2Identified) {
|
|
69
|
-
pocketItem2Identified = true;
|
|
70
|
-
pocketItems.push({
|
|
71
|
-
slot,
|
|
72
|
-
type: PocketItemType.DICE_BAG_DICE,
|
|
73
|
-
subType: pocketItem2,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
else if (hasPocketItem && hasPocketItem2) {
|
|
77
|
-
pocketItems.push({
|
|
78
|
-
slot,
|
|
79
|
-
type: PocketItemType.UNDETERMINABLE,
|
|
80
|
-
subType: 0,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
pocketItems.push({
|
|
85
|
-
slot,
|
|
86
|
-
type: PocketItemType.EMPTY,
|
|
87
|
-
subType: 0,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
// eslint-disable-next-line isaacscript/strict-enums
|
|
91
|
-
if (slot + 1 === maxPocketItems) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return pocketItems;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Returns whether or not the player can hold an additional pocket item, beyond what they are
|
|
99
|
-
* currently carrying. This takes into account items that modify the max number of pocket items,
|
|
100
|
-
* like Starter Deck.
|
|
101
|
-
*
|
|
102
|
-
* If the player is the Tainted Soul, this always returns false, since that character cannot pick up
|
|
103
|
-
* items. (Only Tainted Forgotten can pick up items.)
|
|
104
|
-
*/
|
|
105
|
-
export function hasOpenPocketItemSlot(player) {
|
|
106
|
-
if (isCharacter(player, PlayerType.THE_SOUL_B)) {
|
|
107
|
-
return false;
|
|
108
|
-
}
|
|
109
|
-
const pocketItems = getPocketItems(player);
|
|
110
|
-
return pocketItems.some((pocketItem) => pocketItem.type === PocketItemType.EMPTY);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Helper function to determine whether or not the player's "active" pocket item slot is set to
|
|
114
|
-
* their pocket active item.
|
|
115
|
-
*/
|
|
116
|
-
export function isFirstSlotPocketActiveItem(player) {
|
|
117
|
-
const pocketItems = getPocketItems(player);
|
|
118
|
-
const firstPocketItem = pocketItems[0];
|
|
119
|
-
if (firstPocketItem === undefined) {
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
return firstPocketItem.type === PocketItemType.ACTIVE_ITEM;
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=pocketItems.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pocketItems.js","sourceRoot":"../src/","sources":["functions/pocketItems.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,IAAI,EACJ,eAAe,EACf,SAAS,EACT,UAAU,EACV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M;YACL,WAAW,CAAC,IAAI,CAAC;gBACf,IAAI;gBACJ,IAAI,EAAE,cAAc,CAAC,KAAK;gBAC1B,OAAO,EAAE,CAAC;aACX,CAAC,CAAC;SACJ;QAED,oDAAoD;QACpD,IAAI,IAAI,GAAG,CAAC,KAAK,cAAc,EAAE;YAC/B,MAAM;SACP;KACF;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAoB;IACxD,IAAI,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE;QAC9C,OAAO,KAAK,CAAC;KACd;IAED,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3C,OAAO,WAAW,CAAC,IAAI,CACrB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,CACzD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAAoB;IAC9D,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,eAAe,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IACvC,IAAI,eAAe,KAAK,SAAS,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IAED,OAAO,eAAe,CAAC,IAAI,KAAK,cAAc,CAAC,WAAW,CAAC;AAC7D,CAAC"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { EffectVariant, HeavenLightDoorSubType, } from "isaac-typescript-definitions";
|
|
2
|
-
import { game } from "../cachedClasses";
|
|
3
|
-
import { DISTANCE_OF_GRID_TILE } from "../constants";
|
|
4
|
-
import { getEntities } from "./entity";
|
|
5
|
-
import { getEffects } from "./entitySpecific";
|
|
6
|
-
import { getPlayerCloserThan } from "./player";
|
|
7
|
-
import { getPlayers } from "./playerIndex";
|
|
8
|
-
const MAX_FIND_FREE_POSITION_ATTEMPTS = 100;
|
|
9
|
-
export function anyEntityCloserThan(entities, position, distance) {
|
|
10
|
-
return entities.some((entity) => position.Distance(entity.Position) <= distance);
|
|
11
|
-
}
|
|
12
|
-
/** Iterates over all players and checks if any player is close enough to the specified position. */
|
|
13
|
-
export function anyPlayerCloserThan(position, distance) {
|
|
14
|
-
const players = getPlayers();
|
|
15
|
-
return players.some((player) => player.Position.Distance(position) <= distance);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Helper function to get a room position that is not overlapping with a grid entity, a heaven door,
|
|
19
|
-
* or a player. The `Room.FindFreePickupSpawnPosition` method will return locations that overlap
|
|
20
|
-
* with heaven doors and partially overlap with players, if the thing being spawned is bigger than a
|
|
21
|
-
* tile (like a Blood Donation Machine). Use this function instead if you want to account for those
|
|
22
|
-
* specific situations.
|
|
23
|
-
*
|
|
24
|
-
* @param startingPosition The position to start searching from. If this position is not overlapping
|
|
25
|
-
* with anything, then it will be returned.
|
|
26
|
-
* @param avoidActiveEntities Optional. Default is false.
|
|
27
|
-
*/
|
|
28
|
-
export function findFreePosition(startingPosition, avoidActiveEntities = false) {
|
|
29
|
-
const room = game.GetRoom();
|
|
30
|
-
const heavenDoors = getEffects(EffectVariant.HEAVEN_LIGHT_DOOR, HeavenLightDoorSubType.HEAVEN_DOOR);
|
|
31
|
-
for (let i = 0; i < MAX_FIND_FREE_POSITION_ATTEMPTS; i++) {
|
|
32
|
-
const position = room.FindFreePickupSpawnPosition(startingPosition, i, avoidActiveEntities);
|
|
33
|
-
const closePlayer = getPlayerCloserThan(position, DISTANCE_OF_GRID_TILE);
|
|
34
|
-
if (closePlayer !== undefined) {
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
const isCloseHeavenDoor = anyEntityCloserThan(heavenDoors, position, DISTANCE_OF_GRID_TILE);
|
|
38
|
-
if (isCloseHeavenDoor) {
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
return position;
|
|
42
|
-
}
|
|
43
|
-
// We failed to find a free position in N iterations.
|
|
44
|
-
return room.FindFreePickupSpawnPosition(startingPosition);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Helper function to get a map containing the positions of every entity in the current room.
|
|
48
|
-
*
|
|
49
|
-
* This is useful for rewinding entity positions at a later time. Also see `setEntityPositions`.
|
|
50
|
-
*
|
|
51
|
-
* @param entities Optional. If provided, will only get the positions of the provided entities. Use
|
|
52
|
-
* this with cached entities to avoid invoking the `Isaac.GetRoomEntities` method
|
|
53
|
-
* multiple times.
|
|
54
|
-
*/
|
|
55
|
-
export function getEntityPositions(entities) {
|
|
56
|
-
if (entities === undefined) {
|
|
57
|
-
entities = getEntities();
|
|
58
|
-
}
|
|
59
|
-
const entityPositions = new Map();
|
|
60
|
-
for (const entity of entities) {
|
|
61
|
-
const ptrHash = GetPtrHash(entity);
|
|
62
|
-
entityPositions.set(ptrHash, entity.Position);
|
|
63
|
-
}
|
|
64
|
-
return entityPositions;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Helper function to get a map containing the velocities of every entity in the current room.
|
|
68
|
-
*
|
|
69
|
-
* This is useful for rewinding entity velocities at a later time. Also see `setEntityVelocities`.
|
|
70
|
-
*
|
|
71
|
-
* @param entities Optional. If provided, will only get the velocities of the provided entities. Use
|
|
72
|
-
* this with cached entities to avoid invoking the `Isaac.GetRoomEntities` method
|
|
73
|
-
* multiple times.
|
|
74
|
-
*/
|
|
75
|
-
export function getEntityVelocities(entities) {
|
|
76
|
-
if (entities === undefined) {
|
|
77
|
-
entities = getEntities();
|
|
78
|
-
}
|
|
79
|
-
const entityVelocities = new Map();
|
|
80
|
-
for (const entity of entities) {
|
|
81
|
-
const ptrHash = GetPtrHash(entity);
|
|
82
|
-
entityVelocities.set(ptrHash, entity.Velocity);
|
|
83
|
-
}
|
|
84
|
-
return entityVelocities;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Helper function to set the position of every entity in the room based on a map of positions. If
|
|
88
|
-
* an entity is found that does not have matching element in the provided map, then that entity will
|
|
89
|
-
* be skipped.
|
|
90
|
-
*
|
|
91
|
-
* This function is useful for rewinding entity positions at a later time. Also see
|
|
92
|
-
* `getEntityPositions`.
|
|
93
|
-
*
|
|
94
|
-
* @param entityPositions The map providing the positions for every entity.
|
|
95
|
-
* @param entities Optional. If provided, will only set the positions of the provided entities. Use
|
|
96
|
-
* this with cached entities to avoid invoking the `Isaac.GetRoomEntities` method
|
|
97
|
-
* multiple times.
|
|
98
|
-
*/
|
|
99
|
-
export function setEntityPositions(entityPositions, entities) {
|
|
100
|
-
if (entities === undefined) {
|
|
101
|
-
entities = getEntities();
|
|
102
|
-
}
|
|
103
|
-
for (const entity of entities) {
|
|
104
|
-
const ptrHash = GetPtrHash(entity);
|
|
105
|
-
const entityPosition = entityPositions.get(ptrHash);
|
|
106
|
-
if (entityPosition !== undefined) {
|
|
107
|
-
entity.Position = entityPosition;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Helper function to set the velocity of every entity in the room based on a map of velocities. If
|
|
113
|
-
* an entity is found that does not have matching element in the provided map, then that entity will
|
|
114
|
-
* be skipped.
|
|
115
|
-
*
|
|
116
|
-
* This function is useful for rewinding entity velocities at a later time. Also see
|
|
117
|
-
* `getEntityVelocities`.
|
|
118
|
-
*
|
|
119
|
-
* @param entityVelocities The map providing the velocities for every entity.
|
|
120
|
-
* @param entities Optional. If provided, will only set the velocities of the provided entities. Use
|
|
121
|
-
* this with cached entities to avoid invoking the `Isaac.GetRoomEntities` method
|
|
122
|
-
* multiple times.
|
|
123
|
-
*/
|
|
124
|
-
export function setEntityVelocities(entityVelocities, entities) {
|
|
125
|
-
if (entities === undefined) {
|
|
126
|
-
entities = getEntities();
|
|
127
|
-
}
|
|
128
|
-
for (const entity of entities) {
|
|
129
|
-
const ptrHash = GetPtrHash(entity);
|
|
130
|
-
const entityVelocity = entityVelocities.get(ptrHash);
|
|
131
|
-
if (entityVelocity !== undefined) {
|
|
132
|
-
entity.Velocity = entityVelocity;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
//# sourceMappingURL=positionVelocity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positionVelocity.js","sourceRoot":"../src/","sources":["functions/positionVelocity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAE5C,MAAM,UAAU,mBAAmB,CACjC,QAAkB,EAClB,QAAgB,EAChB,QAAa;IAEb,OAAO,QAAQ,CAAC,IAAI,CAClB,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAC3D,CAAC;AACJ,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,mBAAmB,CACjC,QAAgB,EAChB,QAAe;IAEf,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,IAAI,CACjB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAC3D,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAC9B,gBAAwB,EACxB,mBAAmB,GAAG,KAAK;IAE3B,MAAM,IAAI,GA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|
3
|
-
* This returns a random float between 0 and 1. It is inclusive on the low end, but exclusive on the
|
|
4
|
-
* high end. (This is because the `RNG.RandomFloat` method will never return a value of exactly 1.)
|
|
5
|
-
*
|
|
6
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
7
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
8
|
-
*/
|
|
9
|
-
export function getRandom(seedOrRNG = getRandomSeed()) {
|
|
10
|
-
const rng = isRNG(seedOrRNG) ? seedOrRNG : newRNG(seedOrRNG);
|
|
11
|
-
return rng.RandomFloat();
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* This returns a random float between min and max.
|
|
15
|
-
*
|
|
16
|
-
* For example:
|
|
17
|
-
*
|
|
18
|
-
* ```ts
|
|
19
|
-
* const realNumberBetweenOneAndThree = getRandomFloat(1, 3);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @param min The lower bound for the random number (inclusive).
|
|
23
|
-
* @param max The upper bound for the random number (exclusive).
|
|
24
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
25
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
26
|
-
*/
|
|
27
|
-
export function getRandomFloat(min, max, seedOrRNG = getRandomSeed()) {
|
|
28
|
-
if (min > max) {
|
|
29
|
-
const oldMin = min;
|
|
30
|
-
const oldMax = max;
|
|
31
|
-
min = oldMax;
|
|
32
|
-
max = oldMin;
|
|
33
|
-
}
|
|
34
|
-
// From: https://stackoverflow.com/questions/40431966
|
|
35
|
-
return min + getRandom(seedOrRNG) * (max - min);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* This returns a random integer between min and max. It is inclusive on both ends.
|
|
39
|
-
*
|
|
40
|
-
* Note that this function will invoke the `Next` method on the `RNG` object before returning the
|
|
41
|
-
* random number.
|
|
42
|
-
*
|
|
43
|
-
* For example:
|
|
44
|
-
*
|
|
45
|
-
* ```ts
|
|
46
|
-
* const oneTwoOrThree = getRandomInt(1, 3);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @param min The lower bound for the random number (inclusive).
|
|
50
|
-
* @param max The upper bound for the random number (inclusive).
|
|
51
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
52
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
53
|
-
* @param exceptions Optional. An array of elements that will be skipped over when getting the
|
|
54
|
-
* random integer. For example, a min of 1, a max of 4, and an exceptions array of
|
|
55
|
-
* `[2]` would cause the function to return either 1, 3, or 4. Default is an empty
|
|
56
|
-
* array.
|
|
57
|
-
*/
|
|
58
|
-
export function getRandomInt(min, max, seedOrRNG = getRandomSeed(), exceptions = []) {
|
|
59
|
-
const rng = isRNG(seedOrRNG) ? seedOrRNG : newRNG(seedOrRNG);
|
|
60
|
-
if (min > max) {
|
|
61
|
-
const oldMin = min;
|
|
62
|
-
const oldMax = max;
|
|
63
|
-
min = oldMax;
|
|
64
|
-
max = oldMin;
|
|
65
|
-
}
|
|
66
|
-
const exceptionsSet = new Set(exceptions);
|
|
67
|
-
let randomInt;
|
|
68
|
-
do {
|
|
69
|
-
randomInt = rng.RandomInt(max - min + 1) + min;
|
|
70
|
-
} while (exceptionsSet.has(randomInt));
|
|
71
|
-
return randomInt;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=random.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"random.js","sourceRoot":"../src/","sources":["functions/random.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,YAAwB,aAAa,EAAE;IAC/D,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CA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@@
|
|
|
1
|
-
import { CollectibleType, EntityType, NullItemID, PlayerType, TrinketType, } from "isaac-typescript-definitions";
|
|
2
|
-
import { game } from "../cachedClasses";
|
|
3
|
-
import { MAX_TAINTED_SAMSON_BERSERK_CHARGE, TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE, } from "../constants";
|
|
4
|
-
import { getCharacterDeathAnimationName } from "./character";
|
|
5
|
-
import { getPlayerMaxHeartContainers, getPlayerNumHitsRemaining, hasLostCurse, isKeeper, } from "./player";
|
|
6
|
-
import { getLastFrameOfAnimation } from "./sprite";
|
|
7
|
-
import { giveTrinketsBack, temporarilyRemoveTrinket } from "./trinketGive";
|
|
8
|
-
/**
|
|
9
|
-
* Uses the player's current health and other miscellaneous things to determine if incoming damage
|
|
10
|
-
* will be fatal.
|
|
11
|
-
*/
|
|
12
|
-
export function isDamageToPlayerFatal(player, damageAmount, damageSource, lastDamageGameFrame) {
|
|
13
|
-
const gameFrameCount = game.GetFrameCount();
|
|
14
|
-
const character = player.GetPlayerType();
|
|
15
|
-
const effects = player.GetEffects();
|
|
16
|
-
const isBerserk = effects.HasCollectibleEffect(CollectibleType.BERSERK);
|
|
17
|
-
// If we are Tainted Jacob and the damage source is Dark Esau, this will not be fatal damage
|
|
18
|
-
// (because we will transform into Tainted Jacob's lost form).
|
|
19
|
-
if (character === PlayerType.JACOB_B &&
|
|
20
|
-
damageSource.Type === EntityType.DARK_ESAU) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
// If we are berserk, no damage is fatal. (The death is deferred until the end of the berserk
|
|
24
|
-
// effect.)
|
|
25
|
-
if (isBerserk) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
// If we are playing Tainted Samson and the incoming hit will cause us to become Berserk, then
|
|
29
|
-
// this will not be fatal damage.
|
|
30
|
-
const berserkChargeAfterHit = player.SamsonBerserkCharge +
|
|
31
|
-
TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE;
|
|
32
|
-
if (character === PlayerType.SAMSON_B &&
|
|
33
|
-
berserkChargeAfterHit >= MAX_TAINTED_SAMSON_BERSERK_CHARGE) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
// If Spirit Shackles is activated, no damage is fatal.
|
|
37
|
-
if (willReviveFromSpiritShackles(player)) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
// If we are Tainted Jacob in the Lost Form, we may have plenty of health left, but we will still
|
|
41
|
-
// die in one hit to anything.
|
|
42
|
-
if (character === PlayerType.JACOB_2_B) {
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
// If we are in the "Lost Curse" form from touching a white fire, all damage will be fatal.
|
|
46
|
-
if (hasLostCurse(player)) {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
const playerNumAllHearts = getPlayerNumHitsRemaining(player);
|
|
50
|
-
if (damageAmount < playerNumAllHearts) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
// This will not be fatal damage if the player has Heartbreak and two slots open for broken
|
|
54
|
-
// hearts.
|
|
55
|
-
if (willReviveFromHeartbreak(player)) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
// This will not be fatal damage if we have Glass Cannon and this is the second time we are taking
|
|
59
|
-
// damage on the same frame.
|
|
60
|
-
if (player.HasCollectible(CollectibleType.BROKEN_GLASS_CANNON) &&
|
|
61
|
-
gameFrameCount === lastDamageGameFrame) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
// This will not be fatal damage if we have two different kinds of hearts. For example, a bomb
|
|
65
|
-
// explosion deals 2 damage, but if the player has one half soul heart and one half red heart, the
|
|
66
|
-
// game will only remove the soul heart.
|
|
67
|
-
const hearts = player.GetHearts();
|
|
68
|
-
const eternalHearts = player.GetEternalHearts();
|
|
69
|
-
const soulHearts = player.GetSoulHearts();
|
|
70
|
-
const boneHearts = player.GetBoneHearts();
|
|
71
|
-
if ((hearts > 0 && soulHearts > 0) ||
|
|
72
|
-
(hearts > 0 && boneHearts > 0) ||
|
|
73
|
-
(soulHearts > 0 && boneHearts > 0) ||
|
|
74
|
-
(soulHearts > 0 && eternalHearts > 0) ||
|
|
75
|
-
boneHearts >= 2 // Two bone hearts and nothing else should not result in a death
|
|
76
|
-
) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Assuming that we are on the frame of fatal damage, this function returns whether or not
|
|
83
|
-
* Mysterious Paper would rotate to Missing Poster on the frame that the "Game Over" screen would
|
|
84
|
-
* appear (which would subsequently save the player from fatal damage).
|
|
85
|
-
*
|
|
86
|
-
* Mysterious Paper rotates between the 4 items on every frame, in order. The formula for whether
|
|
87
|
-
* Mysterious Paper be Missing Power is: `gameFrameCount % 4 === 3`
|
|
88
|
-
*/
|
|
89
|
-
export function willMysteriousPaperRevive(player) {
|
|
90
|
-
const gameFrameCount = game.GetFrameCount();
|
|
91
|
-
const sprite = player.GetSprite();
|
|
92
|
-
// We want to explicitly check the length of the death animation because we might be playing on a
|
|
93
|
-
// modded character that has a custom death animation.
|
|
94
|
-
const character = player.GetPlayerType();
|
|
95
|
-
const animation = getCharacterDeathAnimationName(character);
|
|
96
|
-
const deathAnimationFrames = getLastFrameOfAnimation(sprite, animation);
|
|
97
|
-
const frameOfDeath = gameFrameCount + deathAnimationFrames + 1;
|
|
98
|
-
// (We add 1 because it takes one frame for the death animation to begin.)
|
|
99
|
-
return frameOfDeath % 4 === 3;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* The `EntityPlayer.WillPlayerRevive` method does not properly account for Mysterious Paper, so use
|
|
103
|
-
* this helper function instead for more robust revival detection.
|
|
104
|
-
*/
|
|
105
|
-
export function willPlayerRevive(player) {
|
|
106
|
-
const trinketSituation = temporarilyRemoveTrinket(player, TrinketType.MYSTERIOUS_PAPER);
|
|
107
|
-
const willRevive = player.WillPlayerRevive() ||
|
|
108
|
-
(trinketSituation !== undefined && willMysteriousPaperRevive(player));
|
|
109
|
-
giveTrinketsBack(player, trinketSituation);
|
|
110
|
-
return willRevive;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Helper function to determine if the player will be revived by the Heartbreak collectible if they
|
|
114
|
-
* take fatal damage. This is contingent on the character that they are playing as and the amount of
|
|
115
|
-
* broken hearts that they already have.
|
|
116
|
-
*/
|
|
117
|
-
export function willReviveFromHeartbreak(player) {
|
|
118
|
-
if (!player.HasCollectible(CollectibleType.HEARTBREAK)) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
const maxHeartContainers = getPlayerMaxHeartContainers(player);
|
|
122
|
-
const numBrokenHeartsThatWillBeAdded = isKeeper(player) ? 1 : 2;
|
|
123
|
-
const brokenHearts = player.GetBrokenHearts();
|
|
124
|
-
const numBrokenHeartsAfterRevival = numBrokenHeartsThatWillBeAdded + brokenHearts;
|
|
125
|
-
return maxHeartContainers > numBrokenHeartsAfterRevival;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Helper function to determine if the Spirit Shackles item is in an enabled state. (It can be
|
|
129
|
-
* either enabled or disabled.)
|
|
130
|
-
*/
|
|
131
|
-
export function willReviveFromSpiritShackles(player) {
|
|
132
|
-
if (!player.HasCollectible(CollectibleType.SPIRIT_SHACKLES)) {
|
|
133
|
-
return false;
|
|
134
|
-
}
|
|
135
|
-
const effects = player.GetEffects();
|
|
136
|
-
const spiritShacklesEnabled = !effects.HasNullEffect(NullItemID.SPIRIT_SHACKLES_DISABLED);
|
|
137
|
-
const playerInSoulForm = effects.HasNullEffect(NullItemID.SPIRIT_SHACKLES_SOUL);
|
|
138
|
-
return spiritShacklesEnabled && !playerInSoulForm;
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=revive.js.map
|