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,92 +0,0 @@
|
|
|
1
|
-
// This feature provides a way for end-users to get the `EntityPlayer` object for the other Tainted
|
|
2
|
-
// Lazarus.
|
|
3
|
-
import { ModCallback, PlayerType } from "isaac-typescript-definitions";
|
|
4
|
-
import { errorIfFeaturesNotInitialized } from "../featuresInitialized";
|
|
5
|
-
import { saveDataManager } from "./saveDataManager/exports";
|
|
6
|
-
const FEATURE_NAME = "taintedLazarusPlayers";
|
|
7
|
-
const v = {
|
|
8
|
-
run: {
|
|
9
|
-
queuedTaintedLazarus: [],
|
|
10
|
-
queuedDeadTaintedLazarus: [],
|
|
11
|
-
/**
|
|
12
|
-
* The PostPlayerInit callback fires for Dead Tainted Lazarus at the beginning of the run.
|
|
13
|
-
* However, the player index for the Dead Tainted Lazarus player object at that time does not
|
|
14
|
-
* actually correspond to the player index for the real player once Flip has been used. Thus, we
|
|
15
|
-
* revert to using PtrHash as an index for our map, which is consistent between the Dead Tainted
|
|
16
|
-
* Lazarus object in the PostPlayerInit callback and the "real" Dead Tainted Lazarus.
|
|
17
|
-
*/
|
|
18
|
-
subPlayerMap: new Map(),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export function taintedLazarusPlayersInit(mod) {
|
|
23
|
-
saveDataManager(FEATURE_NAME, v, () => false);
|
|
24
|
-
mod.AddCallback(ModCallback.POST_PLAYER_INIT, postPlayerInit);
|
|
25
|
-
}
|
|
26
|
-
// ModCallback.POST_PLAYER_INIT (9)
|
|
27
|
-
function postPlayerInit(player) {
|
|
28
|
-
const entityPtr = EntityPtr(player);
|
|
29
|
-
const character = player.GetPlayerType();
|
|
30
|
-
if (character === PlayerType.LAZARUS_B) {
|
|
31
|
-
v.run.queuedTaintedLazarus.push(entityPtr);
|
|
32
|
-
}
|
|
33
|
-
else if (character === PlayerType.LAZARUS_2_B) {
|
|
34
|
-
v.run.queuedDeadTaintedLazarus.push(entityPtr);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
checkDequeue();
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* When starting a run, the PostPlayerInit callback will fire first for Dead Tainted Lazarus, then
|
|
43
|
-
* for Tainted Lazarus. When continuing a run, the PostPlayerInit callback will fire first for the
|
|
44
|
-
* character that is currently active. Thus, since the order of the characters is not certain, we
|
|
45
|
-
* insert each of their pointers into a queue, and then only populate the map when we have one
|
|
46
|
-
* Tainted Lazarus and one Dead Tainted Lazarus.
|
|
47
|
-
*/
|
|
48
|
-
function checkDequeue() {
|
|
49
|
-
if (v.run.queuedTaintedLazarus.length === 0 ||
|
|
50
|
-
v.run.queuedDeadTaintedLazarus.length === 0) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const taintedLazarusPtr = v.run.queuedTaintedLazarus.shift();
|
|
54
|
-
const deadTaintedLazarusPtr = v.run.queuedDeadTaintedLazarus.shift();
|
|
55
|
-
if (taintedLazarusPtr === undefined || deadTaintedLazarusPtr === undefined) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const taintedLazarus = taintedLazarusPtr.Ref;
|
|
59
|
-
const deadTaintedLazarus = deadTaintedLazarusPtr.Ref;
|
|
60
|
-
if (taintedLazarus === undefined || deadTaintedLazarus === undefined) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const taintedLazarusPtrHash = GetPtrHash(taintedLazarus);
|
|
64
|
-
const deadTaintedLazarusPtrHash = GetPtrHash(deadTaintedLazarus);
|
|
65
|
-
v.run.subPlayerMap.set(taintedLazarusPtrHash, deadTaintedLazarusPtr);
|
|
66
|
-
v.run.subPlayerMap.set(deadTaintedLazarusPtrHash, taintedLazarusPtr);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Helper function to get the other version of Tainted Lazarus.
|
|
70
|
-
*
|
|
71
|
-
* - On Tainted Lazarus, returns the player object for Dead Tainted Lazarus.
|
|
72
|
-
* - On Dead Tainted Lazarus, returns the player object for Tainted Lazarus.
|
|
73
|
-
* - Returns undefined if player object retrieval failed for any reason.
|
|
74
|
-
*
|
|
75
|
-
* If you call the `EntityPlayer.Exists` method on the returned object, it will return false.
|
|
76
|
-
* However, you can still call the other methods like you normally would (e.g.
|
|
77
|
-
* `EntityPlayer.AddCollectible`).
|
|
78
|
-
*/
|
|
79
|
-
export function getTaintedLazarusSubPlayer(player) {
|
|
80
|
-
errorIfFeaturesNotInitialized(FEATURE_NAME);
|
|
81
|
-
const ptrHash = GetPtrHash(player);
|
|
82
|
-
const entityPtr = v.run.subPlayerMap.get(ptrHash);
|
|
83
|
-
if (entityPtr === undefined) {
|
|
84
|
-
return undefined;
|
|
85
|
-
}
|
|
86
|
-
const entity = entityPtr.Ref;
|
|
87
|
-
if (entity === undefined) {
|
|
88
|
-
return undefined;
|
|
89
|
-
}
|
|
90
|
-
return entity.ToPlayer();
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=taintedLazarusPlayers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taintedLazarusPlayers.js","sourceRoot":"../src/","sources":["features/taintedLazarusPlayers.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,WAAW;AAEX,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,YAAY,GAAG,uBAAuB,CAAC;AAE7C,MAAM,CAAC,GAAG;IACR,GAAG,EAAE;QACH,oBAAoB,EAAE,EAAiB;QACvC,wBAAwB,EAAE,EAAiB;QAE3C;;;;;;WAMG;QACH,YAAY,EAAE,IAAI,GAAG,EAAsB;KAC5C;CACF,CAAC;AAEF,gBAAgB;AAChB,MAAM,UAAU,yBAAyB,CAAC,GAAQ;IAChD,eAAe,CAAC,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAE9C,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAChE,CAAC;AAED,mCAAmC;AACnC,SAAS,cAAc,CAAC,MAAoB;IAC1C,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC;IAEzC,IAAI,SAAS,KAAK,UAAU,CAAC,SAAS,EAAE;QACtC,CAAC,CAAC,GAAG,CAAC,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AA6B,CAAC,YAAY,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,SAAS,KAAK,SAAS,EAAE;QAC3B,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC;IAC7B,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
let featuresInitialized = false;
|
|
2
|
-
/** @internal */
|
|
3
|
-
export function areFeaturesInitialized() {
|
|
4
|
-
return featuresInitialized;
|
|
5
|
-
}
|
|
6
|
-
/** @internal */
|
|
7
|
-
export function errorIfFeaturesNotInitialized(featureName) {
|
|
8
|
-
if (!areFeaturesInitialized()) {
|
|
9
|
-
error(`The "${featureName}" feature is not initialized. You must first upgrade your mod object by calling the "upgradeMod" function.`);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/** @internal */
|
|
13
|
-
export function setFeaturesInitialized() {
|
|
14
|
-
featuresInitialized = true;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=featuresInitialized.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"featuresInitialized.js","sourceRoot":"../src/","sources":["featuresInitialized.ts"],"names":[],"mappings":"AAAA,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAEhC,gBAAgB;AAChB,MAAM,UAAU,sBAAsB;IACpC,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,6BAA6B,CAAC,WAAmB;IAC/D,IAAI,CAAC,sBAAsB,EAAE,EAAE;QAC7B,KAAK,CACH,QAAQ,WAAW,4GAA4G,CAChI,CAAC;KACH;AACH,CAAC;AAED,gBAAgB;AAChB,MAAM,UAAU,sBAAsB;IACpC,mBAAmB,GAAG,IAAI,CAAC;AAC7B,CAAC"}
|
package/dist/functions/ambush.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { SackSubType } from "isaac-typescript-definitions";
|
|
2
|
-
import { runNextGameFrame } from "../features/runInNFrames";
|
|
3
|
-
import { removeEntities } from "./entity";
|
|
4
|
-
import { getCoins, spawnSackWithSeed } from "./pickups";
|
|
5
|
-
/** Hard-coding this makes it easier to clean up the pickups afterwards. */
|
|
6
|
-
const SACK_SEED_THAT_SPAWNS_TWO_COINS = 6;
|
|
7
|
-
/**
|
|
8
|
-
* Helper function to start a Challenge Room or the Boss Rush.
|
|
9
|
-
*
|
|
10
|
-
* Specifically, this is performed by spawning a sack on top of the player, waiting a game frame,
|
|
11
|
-
* and then removing the sack and the pickups that the sack dropped.
|
|
12
|
-
*/
|
|
13
|
-
export function startAmbush() {
|
|
14
|
-
const player = Isaac.GetPlayer();
|
|
15
|
-
const sack = spawnSackWithSeed(SackSubType.NULL, player.Position, SACK_SEED_THAT_SPAWNS_TWO_COINS);
|
|
16
|
-
// The sack will play the "Appear" animation and the player will not be able to interact with it
|
|
17
|
-
// while this is occurring. By stopping the animation, it will transition to the "Idle" animation
|
|
18
|
-
// and be interactable on the next game frame.
|
|
19
|
-
const sprite = sack.GetSprite();
|
|
20
|
-
sprite.Stop();
|
|
21
|
-
const sackPtr = EntityPtr(sack);
|
|
22
|
-
runNextGameFrame(() => {
|
|
23
|
-
const futureSack = sackPtr.Ref;
|
|
24
|
-
if (futureSack === undefined) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
futureSack.Remove();
|
|
28
|
-
const sackPtrHash = GetPtrHash(futureSack);
|
|
29
|
-
const coins = getCoins();
|
|
30
|
-
const coinsFromSack = coins.filter((pickup) => pickup.SpawnerEntity !== undefined &&
|
|
31
|
-
GetPtrHash(pickup.SpawnerEntity) === sackPtrHash);
|
|
32
|
-
removeEntities(coinsFromSack);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=ambush.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ambush.js","sourceRoot":"../src/","sources":["functions/ambush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAExD,2EAA2E;AAC3E,MAAM,+BAA+B,GAAG,CAAS,CAAC;AAElD;;;;;GAKG;AACH,MAAM,UAAU,WAAW;IACzB,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IACjC,MAAM,IAAI,GAAG,iBAAiB,CAC5B,WAAW,CAAC,IAAI,EAChB,MAAM,CAAC,QAAQ,EACf,+BAA+B,CAChC,CAAC;IAEF,gGAAgG;IAChG,iGAAiG;IACjG,8CAA8C;IAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,MAAM,CAAC,IAAI,EAAE,CAAC;IACd,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IAChC,gBAAgB,CAAC,GAAG,EAAE;QACpB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;QAC/B,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,OAAO;SACR;QAED,UAAU,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;QACzB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAChC,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,aAAa,KAAK,SAAS;YAClC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,WAAW,CACnD,CAAC;QACF,cAAc,CAAC,aAAa,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/functions/array.js
DELETED
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { getRandomInt } from "./random";
|
|
2
|
-
import { getRandomSeed, isRNG, newRNG } from "./rng";
|
|
3
|
-
import { isNumber, isTable } from "./types";
|
|
4
|
-
import { erange, repeat } from "./utils";
|
|
5
|
-
/**
|
|
6
|
-
* Helper function for determining if two arrays contain the exact same elements. Note that this
|
|
7
|
-
* only performs a shallow comparison.
|
|
8
|
-
*/
|
|
9
|
-
export function arrayEquals(array1, array2) {
|
|
10
|
-
if (array1.length !== array2.length) {
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
return array1.every((array1Element, i) => {
|
|
14
|
-
const array2Element = array2[i];
|
|
15
|
-
return array1Element === array2Element;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Shallow copies and removes the specified element(s) from the array. Returns the copied array. If
|
|
20
|
-
* the specified element(s) are not found in the array, it will simply return a shallow copy of the
|
|
21
|
-
* array.
|
|
22
|
-
*
|
|
23
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
24
|
-
*
|
|
25
|
-
* If there is more than one matching element in the array, this function will only remove the first
|
|
26
|
-
* matching element. If you want to remove all of the elements, use the `arrayRemoveAll` function
|
|
27
|
-
* instead.
|
|
28
|
-
*/
|
|
29
|
-
export function arrayRemove(originalArray, ...elementsToRemove) {
|
|
30
|
-
const array = copyArray(originalArray);
|
|
31
|
-
arrayRemoveInPlace(array, ...elementsToRemove);
|
|
32
|
-
return array;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Shallow copies and removes the specified element(s) from the array. Returns the copied array. If
|
|
36
|
-
* the specified element(s) are not found in the array, it will simply return a shallow copy of the
|
|
37
|
-
* array.
|
|
38
|
-
*
|
|
39
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
40
|
-
*
|
|
41
|
-
* If there is more than one matching element in the array, this function will remove every matching
|
|
42
|
-
* element. If you want to only remove the first matching element, use the `arrayRemove` function
|
|
43
|
-
* instead.
|
|
44
|
-
*/
|
|
45
|
-
export function arrayRemoveAll(originalArray, ...elementsToRemove) {
|
|
46
|
-
const array = copyArray(originalArray);
|
|
47
|
-
arrayRemoveAllInPlace(array, ...elementsToRemove);
|
|
48
|
-
return array;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Removes all of the specified element(s) from the array. If the specified element(s) are not found
|
|
52
|
-
* in the array, this function will do nothing.
|
|
53
|
-
*
|
|
54
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
55
|
-
*
|
|
56
|
-
* If there is more than one matching element in the array, this function will remove every matching
|
|
57
|
-
* element. If you want to only remove the first matching element, use the `arrayRemoveInPlace`
|
|
58
|
-
* function instead.
|
|
59
|
-
*
|
|
60
|
-
* @returns True if one or more elements were removed, false otherwise.
|
|
61
|
-
*/
|
|
62
|
-
export function arrayRemoveAllInPlace(array, ...elementsToRemove) {
|
|
63
|
-
let removedOneOrMoreElements = false;
|
|
64
|
-
for (const element of elementsToRemove) {
|
|
65
|
-
let index;
|
|
66
|
-
do {
|
|
67
|
-
index = array.indexOf(element);
|
|
68
|
-
if (index > -1) {
|
|
69
|
-
removedOneOrMoreElements = true;
|
|
70
|
-
array.splice(index, 1);
|
|
71
|
-
}
|
|
72
|
-
} while (index > -1);
|
|
73
|
-
}
|
|
74
|
-
return removedOneOrMoreElements;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Removes the specified element(s) from the array. If the specified element(s) are not found in the
|
|
78
|
-
* array, this function will do nothing.
|
|
79
|
-
*
|
|
80
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
81
|
-
*
|
|
82
|
-
* If there is more than one matching element in the array, this function will only remove the first
|
|
83
|
-
* matching element. If you want to remove all of the elements, use the `arrayRemoveAllInPlace`
|
|
84
|
-
* function instead.
|
|
85
|
-
*
|
|
86
|
-
* @returns True if one or more elements were removed, false otherwise.
|
|
87
|
-
*/
|
|
88
|
-
export function arrayRemoveInPlace(array, ...elementsToRemove) {
|
|
89
|
-
let removedOneOrMoreElements = false;
|
|
90
|
-
for (const element of elementsToRemove) {
|
|
91
|
-
const index = array.indexOf(element);
|
|
92
|
-
if (index > -1) {
|
|
93
|
-
removedOneOrMoreElements = true;
|
|
94
|
-
array.splice(index, 1);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return removedOneOrMoreElements;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Shallow copies and removes the elements at the specified indexes from the array. Returns the
|
|
101
|
-
* copied array. If the specified indexes are not found in the array, it will simply return a
|
|
102
|
-
* shallow copy of the array.
|
|
103
|
-
*
|
|
104
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
105
|
-
*/
|
|
106
|
-
export function arrayRemoveIndex(originalArray, ...indexesToRemove) {
|
|
107
|
-
const indexesToRemoveSet = new Set(indexesToRemove);
|
|
108
|
-
const array = [];
|
|
109
|
-
originalArray.forEach((element, i) => {
|
|
110
|
-
if (!indexesToRemoveSet.has(i)) {
|
|
111
|
-
array.push(element);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
return array;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Removes the elements at the specified indexes from the array. If the specified indexes are not
|
|
118
|
-
* found in the array, this function will do nothing. Returns true if one or more elements were
|
|
119
|
-
* removed.
|
|
120
|
-
*
|
|
121
|
-
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
122
|
-
*
|
|
123
|
-
* @returns Whether or not any array elements were removed.
|
|
124
|
-
*/
|
|
125
|
-
export function arrayRemoveIndexInPlace(array, ...indexesToRemove) {
|
|
126
|
-
const legalIndexes = indexesToRemove.filter((i) => i >= 0 && i < array.length);
|
|
127
|
-
legalIndexes.sort();
|
|
128
|
-
if (legalIndexes.length === 0) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
for (let i = array.length - 1; i >= 0; i--) {
|
|
132
|
-
array.splice(i, 1);
|
|
133
|
-
}
|
|
134
|
-
return true;
|
|
135
|
-
}
|
|
136
|
-
export function arrayToString(array) {
|
|
137
|
-
if (array.length === 0) {
|
|
138
|
-
return "[]";
|
|
139
|
-
}
|
|
140
|
-
const strings = array.map((element) => tostring(element));
|
|
141
|
-
const commaSeparatedStrings = strings.join(", ");
|
|
142
|
-
return `[${commaSeparatedStrings}]`;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Helper function to combine two or more arrays. Returns a new array that is the composition of all
|
|
146
|
-
* of the specified arrays.
|
|
147
|
-
*
|
|
148
|
-
* This function is variadic, meaning that you can specify N arguments to combine N arrays. Note
|
|
149
|
-
* that this will only perform a shallow copy of the array elements.
|
|
150
|
-
*/
|
|
151
|
-
export function combineArrays(...arrays) {
|
|
152
|
-
const elements = [];
|
|
153
|
-
for (const array of arrays) {
|
|
154
|
-
for (const element of array) {
|
|
155
|
-
elements.push(element);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return elements;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Helper function to perform a shallow copy.
|
|
162
|
-
*
|
|
163
|
-
* @param oldArray The array to copy.
|
|
164
|
-
* @param numElements Optional. If specified, will only copy the first N elements. By default, the
|
|
165
|
-
* entire array will be copied.
|
|
166
|
-
*/
|
|
167
|
-
export function copyArray(oldArray, numElements) {
|
|
168
|
-
if (numElements === undefined) {
|
|
169
|
-
numElements = oldArray.length;
|
|
170
|
-
}
|
|
171
|
-
const newArray = [];
|
|
172
|
-
for (let i = 0; i < numElements; i++) {
|
|
173
|
-
const oldElement = oldArray[i];
|
|
174
|
-
if (oldElement !== undefined) {
|
|
175
|
-
newArray.push(oldElement);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
return newArray;
|
|
179
|
-
}
|
|
180
|
-
/** Helper function to remove all of the elements in an array in-place. */
|
|
181
|
-
export function emptyArray(array) {
|
|
182
|
-
array.splice(0, array.length);
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Helper function to get all possible combinations of the given array. This includes the
|
|
186
|
-
* combination of an empty array.
|
|
187
|
-
*
|
|
188
|
-
* For example, if this function is provided an array containing 1, 2, and 3, then it will return an
|
|
189
|
-
* array containing the following arrays:
|
|
190
|
-
*
|
|
191
|
-
* - [] (if `includeEmptyArray` is set to true)
|
|
192
|
-
* - [1]
|
|
193
|
-
* - [2]
|
|
194
|
-
* - [3]
|
|
195
|
-
* - [1, 2]
|
|
196
|
-
* - [1, 3]
|
|
197
|
-
* - [2, 3]
|
|
198
|
-
* - [1, 2, 3]
|
|
199
|
-
*
|
|
200
|
-
* From: https://github.com/firstandthird/combinations/blob/master/index.js
|
|
201
|
-
*
|
|
202
|
-
* @param array The array to get the combinations of.
|
|
203
|
-
* @param includeEmptyArray Whether or not to include an empty array in the combinations.
|
|
204
|
-
* @param min Optional. The minimum number of elements to include in each combination. Default is 1.
|
|
205
|
-
* @param max Optional. The maximum number of elements to include in each combination. Default is
|
|
206
|
-
* the length of the array.
|
|
207
|
-
*/
|
|
208
|
-
export function getArrayCombinations(array, includeEmptyArray, min, max) {
|
|
209
|
-
if (min === undefined || min <= 0) {
|
|
210
|
-
min = 1;
|
|
211
|
-
}
|
|
212
|
-
if (max === undefined || max <= 0) {
|
|
213
|
-
max = array.length;
|
|
214
|
-
}
|
|
215
|
-
const addCombinations = (n, src, got, all) => {
|
|
216
|
-
if (n === 0) {
|
|
217
|
-
if (got.length > 0) {
|
|
218
|
-
all[all.length] = got;
|
|
219
|
-
}
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
for (let j = 0; j < src.length; j++) {
|
|
223
|
-
const value = src[j]; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
224
|
-
addCombinations(n - 1, src.slice(j + 1), got.concat([value]), all);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
const all = [];
|
|
228
|
-
for (let i = min; i < array.length; i++) {
|
|
229
|
-
addCombinations(i, array, [], all);
|
|
230
|
-
}
|
|
231
|
-
if (array.length === max) {
|
|
232
|
-
all.push(array);
|
|
233
|
-
}
|
|
234
|
-
// Finally, account for the empty array combination.
|
|
235
|
-
if (includeEmptyArray) {
|
|
236
|
-
all.unshift([]);
|
|
237
|
-
}
|
|
238
|
-
return all;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Helper function to get an array containing the indexes of an array.
|
|
242
|
-
*
|
|
243
|
-
* For example, an array of `["Apple", "Banana"]` would return an array of `[0, 1]`.
|
|
244
|
-
*/
|
|
245
|
-
export function getArrayIndexes(array) {
|
|
246
|
-
return erange(array.length);
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Helper function to return the last element of an array.
|
|
250
|
-
*
|
|
251
|
-
* If the array is empty, this will return undefined.
|
|
252
|
-
*/
|
|
253
|
-
export function getLastElement(array) {
|
|
254
|
-
return array[array.length - 1];
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Helper function to get a random element from the provided array.
|
|
258
|
-
*
|
|
259
|
-
* @param array The array to get an element from.
|
|
260
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
261
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
262
|
-
* @param exceptions Optional. An array of elements to skip over if selected.
|
|
263
|
-
*/
|
|
264
|
-
export function getRandomArrayElement(array, seedOrRNG = getRandomSeed(), exceptions = []) {
|
|
265
|
-
if (array.length === 0) {
|
|
266
|
-
error("Failed to get a random array element since the provided array is empty.");
|
|
267
|
-
}
|
|
268
|
-
const arrayWithoutExceptions = arrayRemove(array, ...exceptions);
|
|
269
|
-
const randomIndex = getRandomArrayIndex(arrayWithoutExceptions, seedOrRNG);
|
|
270
|
-
const randomElement = arrayWithoutExceptions[randomIndex];
|
|
271
|
-
if (randomElement === undefined) {
|
|
272
|
-
error(`Failed to get a random array element since the random index of ${randomIndex} was not valid.`);
|
|
273
|
-
}
|
|
274
|
-
return randomElement;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Helper function to get a random element from the provided array. Once the random element is
|
|
278
|
-
* decided, it is then removed from the array (in-place).
|
|
279
|
-
*
|
|
280
|
-
* @param array The array to get an element from.
|
|
281
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
282
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
283
|
-
* @param exceptions Optional. An array of elements to skip over if selected.
|
|
284
|
-
*/
|
|
285
|
-
export function getRandomArrayElementAndRemove(array, seedOrRNG = getRandomSeed(), exceptions = []) {
|
|
286
|
-
const randomArrayElement = getRandomArrayElement(array, seedOrRNG, exceptions);
|
|
287
|
-
arrayRemoveInPlace(array, randomArrayElement);
|
|
288
|
-
return randomArrayElement;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Helper function to get a random index from the provided array.
|
|
292
|
-
*
|
|
293
|
-
* @param array The array to get the index from.
|
|
294
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
295
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
296
|
-
* @param exceptions Optional. An array of indexes that will be skipped over when getting the random
|
|
297
|
-
* index. Default is an empty array.
|
|
298
|
-
*/
|
|
299
|
-
export function getRandomArrayIndex(array, seedOrRNG = getRandomSeed(), exceptions = []) {
|
|
300
|
-
if (array.length === 0) {
|
|
301
|
-
error("Failed to get a random array index since the provided array is empty.");
|
|
302
|
-
}
|
|
303
|
-
return getRandomInt(0, array.length - 1, seedOrRNG, exceptions);
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Initializes an array with all elements containing the specified default value.
|
|
307
|
-
*
|
|
308
|
-
* For example:
|
|
309
|
-
*
|
|
310
|
-
* ```ts
|
|
311
|
-
* const playerTransformations = initArray(false, PlayerForm.NUM_PLAYER_FORMS - 1);
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
export function initArray(defaultValue, size) {
|
|
315
|
-
const array = [];
|
|
316
|
-
repeat(size, () => {
|
|
317
|
-
array.push(defaultValue);
|
|
318
|
-
});
|
|
319
|
-
return array;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Since Lua uses tables for every non-primitive data structure, it is non-trivial to determine if a
|
|
323
|
-
* particular table is being used as an array. `isArray` returns true if:
|
|
324
|
-
*
|
|
325
|
-
* - the table contains all numerical indexes that are contiguous, starting at 1
|
|
326
|
-
* - the table has no keys (i.e. an "empty" table)
|
|
327
|
-
*/
|
|
328
|
-
export function isArray(object) {
|
|
329
|
-
if (!isTable(object)) {
|
|
330
|
-
return false;
|
|
331
|
-
}
|
|
332
|
-
// First, if there is a metatable, this cannot be a simple array and must be a more complex
|
|
333
|
-
// object.
|
|
334
|
-
const metatable = getmetatable(object);
|
|
335
|
-
if (metatable !== undefined) {
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
// Second, handle the case of non-numerical keys.
|
|
339
|
-
const keys = Object.keys(object);
|
|
340
|
-
const hasAllNumberKeys = keys.every((key) => isNumber(key));
|
|
341
|
-
if (!hasAllNumberKeys) {
|
|
342
|
-
return false;
|
|
343
|
-
}
|
|
344
|
-
const tableLength = object.length();
|
|
345
|
-
if (tableLength === 0) {
|
|
346
|
-
return true;
|
|
347
|
-
}
|
|
348
|
-
// Third, check for non-contiguous elements. (Lua tables start at an index of 1.)
|
|
349
|
-
for (let i = 1; i <= tableLength; i++) {
|
|
350
|
-
const element = object.get(i);
|
|
351
|
-
if (element === undefined) {
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
return true;
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Helper function to see if every element in the array is N + 1.
|
|
359
|
-
*
|
|
360
|
-
* For example, `[2, 3, 4]` would return true, and `[2, 3, 5]` would return false.
|
|
361
|
-
*/
|
|
362
|
-
export function isArrayContiguous(array) {
|
|
363
|
-
let lastValue;
|
|
364
|
-
for (const element of array) {
|
|
365
|
-
if (lastValue === undefined) {
|
|
366
|
-
lastValue = element - 1;
|
|
367
|
-
}
|
|
368
|
-
if (element !== lastValue - 1) {
|
|
369
|
-
return false;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return true;
|
|
373
|
-
}
|
|
374
|
-
/** Checks if an array is in the provided 2-dimensional array. */
|
|
375
|
-
export function isArrayInArray(arrayToMatch, parentArray) {
|
|
376
|
-
return parentArray.some((element) => arrayEquals(element, arrayToMatch));
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Shallow copies and shuffles the array using the Fisher-Yates algorithm. Returns the copied array.
|
|
380
|
-
*
|
|
381
|
-
* From: https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array
|
|
382
|
-
*
|
|
383
|
-
* @param originalArray The array to shuffle.
|
|
384
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
385
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
386
|
-
*/
|
|
387
|
-
export function shuffleArray(originalArray, seedOrRNG = getRandomSeed()) {
|
|
388
|
-
const array = copyArray(originalArray);
|
|
389
|
-
shuffleArrayInPlace(array, seedOrRNG);
|
|
390
|
-
return array;
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Shuffles the provided array in-place using the Fisher-Yates algorithm.
|
|
394
|
-
*
|
|
395
|
-
* From: https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array
|
|
396
|
-
*
|
|
397
|
-
* @param array The array to shuffle.
|
|
398
|
-
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
399
|
-
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
400
|
-
*/
|
|
401
|
-
export function shuffleArrayInPlace(array, seedOrRNG = getRandomSeed()) {
|
|
402
|
-
let currentIndex = array.length;
|
|
403
|
-
const rng = isRNG(seedOrRNG) ? seedOrRNG : newRNG(seedOrRNG);
|
|
404
|
-
while (currentIndex > 0) {
|
|
405
|
-
currentIndex -= 1;
|
|
406
|
-
const randomIndex = getRandomArrayIndex(array, rng);
|
|
407
|
-
swapArrayElements(array, currentIndex, randomIndex);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
/** Helper function to sum every value in an array together. */
|
|
411
|
-
export function sumArray(array) {
|
|
412
|
-
return array.reduce((accumulator, element) => accumulator + element);
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* Helper function to swap two different array elements. (The elements will be swapped in-place.)
|
|
416
|
-
*/
|
|
417
|
-
export function swapArrayElements(array, i, j) {
|
|
418
|
-
const value1 = array[i]; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
419
|
-
const value2 = array[j]; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
|
420
|
-
array[i] = value2;
|
|
421
|
-
array[j] = value1;
|
|
422
|
-
}
|
|
423
|
-
//# sourceMappingURL=array.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"../src/","sources":["functions/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,MAA0B,EAC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G,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAE7D,OAAO,YAAY,GAAG,CAAC,EAAE;QACvB,YAAY,IAAI,CAAC,CAAC;QAElB,MAAM,WAAW,GAAG,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACpD,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;KACrD;AACH,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,QAAQ,CAAC,KAAmC;IAC1D,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC,CAAC;AACvE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAI,KAAU,EAAE,CAAS,EAAE,CAAS;IACnE,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,+DAA+D;IACzF,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,+DAA+D;IAEzF,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;IAClB,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AACpB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { log } from "./log";
|
|
2
|
-
/**
|
|
3
|
-
* Helper function to benchmark the performance of a function.
|
|
4
|
-
*
|
|
5
|
-
* This function is variadic, which means that you can supply as many as you want to benchmark.
|
|
6
|
-
*
|
|
7
|
-
* @returns An array containing the average time in milliseconds for each function. (This will also
|
|
8
|
-
* be printed to the log.)
|
|
9
|
-
*/
|
|
10
|
-
export function benchmark(numTrials, ...functions) {
|
|
11
|
-
log(`Benchmarking ${functions.length} function(s) with ${numTrials} trials.`);
|
|
12
|
-
const averages = [];
|
|
13
|
-
functions.forEach((func, i) => {
|
|
14
|
-
let totalTimeMilliseconds = 0;
|
|
15
|
-
for (let j = 0; j < numTrials; j++) {
|
|
16
|
-
const startTimeMilliseconds = Isaac.GetTime();
|
|
17
|
-
func();
|
|
18
|
-
const endTimeMilliseconds = Isaac.GetTime();
|
|
19
|
-
const elapsedTimeMilliseconds = endTimeMilliseconds - startTimeMilliseconds;
|
|
20
|
-
totalTimeMilliseconds += elapsedTimeMilliseconds;
|
|
21
|
-
}
|
|
22
|
-
const averageTimeMilliseconds = totalTimeMilliseconds / numTrials;
|
|
23
|
-
log(`The average time of the function at index ${i} is: ${averageTimeMilliseconds} milliseconds`);
|
|
24
|
-
averages.push(averageTimeMilliseconds);
|
|
25
|
-
});
|
|
26
|
-
return averages;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=benchmark.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.js","sourceRoot":"../src/","sources":["functions/benchmark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CACvB,SAAc,EACd,GAAG,SAA4B;IAE/B,GAAG,CAAC,gBAAgB,SAAS,CAAC,MAAM,qBAAqB,SAAS,UAAU,CAAC,CAAC;IAE9E,MAAM,QAAQ,GAAU,EAAE,CAAC;IAC3B,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC5B,IAAI,qBAAqB,GAAG,CAAC,CAAC;QAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE;YAClC,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;YAC9C,IAAI,EAAE,CAAC;YACP,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;YAC5C,MAAM,uBAAuB,GAC3B,mBAAmB,GAAG,qBAAqB,CAAC;YAC9C,qBAAqB,IAAI,uBAAuB,CAAC;SAClD;QACD,MAAM,uBAAuB,GAAG,qBAAqB,GAAG,SAAS,CAAC;QAClE,GAAG,CACD,6CAA6C,CAAC,QAAQ,uBAAuB,eAAe,CAC7F,CAAC;QACF,QAAQ,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|