isaacscript-common 7.17.4 → 8.0.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/callbacks/customRevive.d.ts +3 -0
- package/dist/callbacks/customRevive.d.ts.map +1 -0
- package/dist/callbacks/itemPickup.d.ts +3 -0
- package/dist/callbacks/itemPickup.d.ts.map +1 -0
- package/dist/callbacks/postAmbush.d.ts +3 -0
- package/dist/callbacks/postAmbush.d.ts.map +1 -0
- package/dist/callbacks/postBombExploded.d.ts +3 -0
- package/dist/callbacks/postBombExploded.d.ts.map +1 -0
- package/dist/callbacks/postBombInitLate.d.ts +3 -0
- package/dist/callbacks/postBombInitLate.d.ts.map +1 -0
- package/dist/callbacks/postBoneSwing.d.ts +3 -0
- package/dist/callbacks/postBoneSwing.d.ts.map +1 -0
- package/dist/callbacks/postCollectibleEmpty.d.ts +3 -0
- package/dist/callbacks/postCollectibleEmpty.d.ts.map +1 -0
- package/dist/callbacks/postCollectibleInitFirst.d.ts +3 -0
- package/dist/callbacks/postCollectibleInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postCursedTeleport.d.ts +3 -0
- package/dist/callbacks/postCursedTeleport.d.ts.map +1 -0
- package/dist/callbacks/postCustomDoorEnter.d.ts +6 -0
- package/dist/callbacks/postCustomDoorEnter.d.ts.map +1 -0
- package/dist/callbacks/postDiceRoomActivated.d.ts +3 -0
- package/dist/callbacks/postDiceRoomActivated.d.ts.map +1 -0
- package/dist/callbacks/postDoorRender.d.ts +3 -0
- package/dist/callbacks/postDoorRender.d.ts.map +1 -0
- package/dist/callbacks/postDoorUpdate.d.ts +3 -0
- package/dist/callbacks/postDoorUpdate.d.ts.map +1 -0
- package/dist/callbacks/postEffectInitLate.d.ts +3 -0
- package/dist/callbacks/postEffectInitLate.d.ts.map +1 -0
- package/dist/callbacks/postEffectStateChanged.d.ts +3 -0
- package/dist/callbacks/postEffectStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postEsauJr.d.ts +3 -0
- package/dist/callbacks/postEsauJr.d.ts.map +1 -0
- package/dist/callbacks/postFamiliarInitLate.d.ts +3 -0
- package/dist/callbacks/postFamiliarInitLate.d.ts.map +1 -0
- package/dist/callbacks/postFamiliarStateChanged.d.ts +3 -0
- package/dist/callbacks/postFamiliarStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postFlip.d.ts +3 -0
- package/dist/callbacks/postFlip.d.ts.map +1 -0
- package/dist/callbacks/postGreedModeWave.d.ts +3 -0
- package/dist/callbacks/postGreedModeWave.d.ts.map +1 -0
- package/dist/callbacks/postGridEntity.d.ts +3 -0
- package/dist/callbacks/postGridEntity.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCollision.d.ts +3 -0
- package/dist/callbacks/postGridEntityCollision.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomCollision.d.ts +3 -0
- package/dist/callbacks/postGridEntityCustomCollision.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomRender.d.ts +3 -0
- package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts +3 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityRender.d.ts +3 -0
- package/dist/callbacks/postGridEntityRender.d.ts.map +1 -0
- package/dist/callbacks/postHolyMantleRemoved.d.ts +3 -0
- package/dist/callbacks/postHolyMantleRemoved.d.ts.map +1 -0
- package/dist/callbacks/postItemDischarged.d.ts +3 -0
- package/dist/callbacks/postItemDischarged.d.ts.map +1 -0
- package/dist/callbacks/postKnifeInitLate.d.ts +3 -0
- package/dist/callbacks/postKnifeInitLate.d.ts.map +1 -0
- package/dist/callbacks/postLaserInitLate.d.ts +3 -0
- package/dist/callbacks/postLaserInitLate.d.ts.map +1 -0
- package/dist/callbacks/postNPCInitLate.d.ts +3 -0
- package/dist/callbacks/postNPCInitLate.d.ts.map +1 -0
- package/dist/callbacks/postNPCStateChanged.d.ts +3 -0
- package/dist/callbacks/postNPCStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postNewRoomEarly.d.ts +3 -0
- package/dist/callbacks/postNewRoomEarly.d.ts.map +1 -0
- package/dist/callbacks/postPickupCollect.d.ts +3 -0
- package/dist/callbacks/postPickupCollect.d.ts.map +1 -0
- package/dist/callbacks/postPickupInitFirst.d.ts +3 -0
- package/dist/callbacks/postPickupInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postPickupInitLate.d.ts +3 -0
- package/dist/callbacks/postPickupInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPickupStateChanged.d.ts +3 -0
- package/dist/callbacks/postPickupStateChanged.d.ts.map +1 -0
- package/dist/callbacks/postPitRender.d.ts +3 -0
- package/dist/callbacks/postPitRender.d.ts.map +1 -0
- package/dist/callbacks/postPitUpdate.d.ts +3 -0
- package/dist/callbacks/postPitUpdate.d.ts.map +1 -0
- package/dist/callbacks/postPlayerChangeHealth.d.ts +3 -0
- package/dist/callbacks/postPlayerChangeHealth.d.ts.map +1 -0
- package/dist/callbacks/postPlayerChangeStat.d.ts +3 -0
- package/dist/callbacks/postPlayerChangeStat.d.ts.map +1 -0
- package/dist/callbacks/postPlayerChangeType.d.ts +3 -0
- package/dist/callbacks/postPlayerChangeType.d.ts.map +1 -0
- package/dist/callbacks/postPlayerCollectible.d.ts +3 -0
- package/dist/callbacks/postPlayerCollectible.d.ts.map +1 -0
- package/dist/callbacks/postPlayerFatalDamage.d.ts +3 -0
- package/dist/callbacks/postPlayerFatalDamage.d.ts.map +1 -0
- package/dist/callbacks/postPlayerInitFirst.d.ts +3 -0
- package/dist/callbacks/postPlayerInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postPlayerInitLate.d.ts +3 -0
- package/dist/callbacks/postPlayerInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts +3 -0
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts.map +1 -0
- package/dist/callbacks/postPoopRender.d.ts +3 -0
- package/dist/callbacks/postPoopRender.d.ts.map +1 -0
- package/dist/callbacks/postPoopUpdate.d.ts +3 -0
- package/dist/callbacks/postPoopUpdate.d.ts.map +1 -0
- package/dist/callbacks/postPressurePlateRender.d.ts +3 -0
- package/dist/callbacks/postPressurePlateRender.d.ts.map +1 -0
- package/dist/callbacks/postPressurePlateUpdate.d.ts +3 -0
- package/dist/callbacks/postPressurePlateUpdate.d.ts.map +1 -0
- package/dist/callbacks/postProjectileInitLate.d.ts +3 -0
- package/dist/callbacks/postProjectileInitLate.d.ts.map +1 -0
- package/dist/callbacks/postPurchase.d.ts +3 -0
- package/dist/callbacks/postPurchase.d.ts.map +1 -0
- package/dist/callbacks/postRockRender.d.ts +3 -0
- package/dist/callbacks/postRockRender.d.ts.map +1 -0
- package/dist/callbacks/postRockUpdate.d.ts +3 -0
- package/dist/callbacks/postRockUpdate.d.ts.map +1 -0
- package/dist/callbacks/postRoomClearChanged.d.ts +3 -0
- package/dist/callbacks/postRoomClearChanged.d.ts.map +1 -0
- package/dist/callbacks/postSacrifice.d.ts +3 -0
- package/dist/callbacks/postSacrifice.d.ts.map +1 -0
- package/dist/callbacks/postSlotCollision.d.ts +3 -0
- package/dist/callbacks/postSlotCollision.d.ts.map +1 -0
- package/dist/callbacks/postSlotDestroyed.d.ts +3 -0
- package/dist/callbacks/postSlotDestroyed.d.ts.map +1 -0
- package/dist/callbacks/postSlotInitUpdate.d.ts +3 -0
- package/dist/callbacks/postSlotInitUpdate.d.ts.map +1 -0
- package/dist/callbacks/postSlotRender.d.ts +3 -0
- package/dist/callbacks/postSlotRender.d.ts.map +1 -0
- package/dist/callbacks/postSpikesRender.d.ts +3 -0
- package/dist/callbacks/postSpikesRender.d.ts.map +1 -0
- package/dist/callbacks/postSpikesUpdate.d.ts +3 -0
- package/dist/callbacks/postSpikesUpdate.d.ts.map +1 -0
- package/dist/callbacks/postTNTRender.d.ts +3 -0
- package/dist/callbacks/postTNTRender.d.ts.map +1 -0
- package/dist/callbacks/postTNTUpdate.d.ts +3 -0
- package/dist/callbacks/postTNTUpdate.d.ts.map +1 -0
- package/dist/callbacks/postTearInitLate.d.ts +3 -0
- package/dist/callbacks/postTearInitLate.d.ts.map +1 -0
- package/dist/callbacks/postTearInitVeryLate.d.ts +3 -0
- package/dist/callbacks/postTearInitVeryLate.d.ts.map +1 -0
- package/dist/callbacks/postTransformation.d.ts +3 -0
- package/dist/callbacks/postTransformation.d.ts.map +1 -0
- package/dist/callbacks/postTrinketBreak.d.ts +3 -0
- package/dist/callbacks/postTrinketBreak.d.ts.map +1 -0
- package/dist/callbacks/preBerserkDeath.d.ts +3 -0
- package/dist/callbacks/preBerserkDeath.d.ts.map +1 -0
- package/dist/callbacks/preNewLevel.d.ts +3 -0
- package/dist/callbacks/preNewLevel.d.ts.map +1 -0
- package/dist/callbacks/reorderedCallbacks.d.ts +6 -0
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts +9 -0
- package/dist/callbacks/subscriptions/postAmbushFinished.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts +9 -0
- package/dist/callbacks/subscriptions/postAmbushStarted.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts +9 -0
- package/dist/callbacks/subscriptions/postBoneExploded.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts +8 -0
- package/dist/callbacks/subscriptions/postBoneSwing.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts +9 -0
- package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +9 -0
- package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +8 -0
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +9 -0
- package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +10 -0
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts +9 -0
- package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDoorRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postDoorRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postDoorUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +8 -0
- package/dist/callbacks/subscriptions/postEsauJr.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +8 -0
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +8 -0
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postFlip.d.ts +8 -0
- package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +7 -0
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGameStartedReorderedLast.d.ts +7 -0
- package/dist/callbacks/subscriptions/postGameStartedReorderedLast.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +8 -0
- package/dist/callbacks/subscriptions/postGreedModeWave.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +10 -0
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +10 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postItemDischarged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +15 -0
- package/dist/callbacks/subscriptions/postItemPickup.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +10 -0
- package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +5 -0
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +5 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +5 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPitRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPitRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPitUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +11 -0
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts +13 -0
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPoopRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPoopRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPoopUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postPurchase.d.ts +10 -0
- package/dist/callbacks/subscriptions/postPurchase.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRockRender.d.ts +10 -0
- package/dist/callbacks/subscriptions/postRockRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts +10 -0
- package/dist/callbacks/subscriptions/postRockUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +8 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +10 -0
- package/dist/callbacks/subscriptions/postSacrifice.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotCollision.d.ts +9 -0
- package/dist/callbacks/subscriptions/postSlotCollision.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +11 -0
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +9 -0
- package/dist/callbacks/subscriptions/postSlotInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +9 -0
- package/dist/callbacks/subscriptions/postSlotRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts +10 -0
- package/dist/callbacks/subscriptions/postSpikesRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts +10 -0
- package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTNTRender.d.ts +10 -0
- package/dist/callbacks/subscriptions/postTNTRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts +10 -0
- package/dist/callbacks/subscriptions/postTNTUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +9 -0
- package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTransformation.d.ts +9 -0
- package/dist/callbacks/subscriptions/postTransformation.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +9 -0
- package/dist/callbacks/subscriptions/postTrinketBreak.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +10 -0
- package/dist/callbacks/subscriptions/preBerserkDeath.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +10 -0
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +15 -0
- package/dist/callbacks/subscriptions/preItemPickup.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/preNewLevel.d.ts +8 -0
- package/dist/callbacks/subscriptions/preNewLevel.d.ts.map +1 -0
- package/dist/core/constantsFirstLast.d.ts +10 -85
- package/dist/core/constantsFirstLast.d.ts.map +1 -1
- package/dist/core/constantsFirstLast.lua +10 -90
- package/dist/enums/ModCallbackCustom.d.ts +21 -0
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/features/characterStats.lua +2 -2
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +9 -5
- package/dist/features/firstLast.d.ts +190 -0
- package/dist/features/firstLast.d.ts.map +1 -0
- package/dist/features/firstLast.lua +341 -0
- package/dist/functions/array.d.ts +1 -9
- package/dist/functions/array.d.ts.map +1 -1
- package/dist/functions/array.lua +0 -6
- package/dist/functions/cards.d.ts +0 -8
- package/dist/functions/cards.d.ts.map +1 -1
- package/dist/functions/cards.lua +9 -24
- package/dist/functions/{cacheFlag.d.ts → collectibleCacheFlag.d.ts} +8 -8
- package/dist/functions/collectibleCacheFlag.d.ts.map +1 -0
- package/dist/functions/{cacheFlag.lua → collectibleCacheFlag.lua} +12 -13
- package/dist/functions/collectibleSet.d.ts +18 -0
- package/dist/functions/collectibleSet.d.ts.map +1 -1
- package/dist/functions/collectibleSet.lua +29 -9
- package/dist/functions/collectibles.d.ts +0 -13
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.lua +0 -18
- package/dist/functions/flying.lua +2 -2
- package/dist/functions/pills.d.ts +0 -10
- package/dist/functions/pills.d.ts.map +1 -1
- package/dist/functions/pills.lua +0 -15
- package/dist/functions/players.lua +1 -1
- package/dist/functions/random.d.ts.map +1 -1
- package/dist/functions/random.lua +2 -0
- package/dist/functions/run.d.ts +5 -0
- package/dist/functions/run.d.ts.map +1 -1
- package/dist/functions/run.lua +13 -0
- package/dist/functions/stats.d.ts +9 -0
- package/dist/functions/stats.d.ts.map +1 -0
- package/dist/functions/stats.lua +11 -0
- package/dist/functions/trinketCacheFlag.d.ts +9 -1
- package/dist/functions/trinketCacheFlag.d.ts.map +1 -1
- package/dist/functions/trinketCacheFlag.lua +28 -10
- package/dist/functions/trinketSet.d.ts +18 -0
- package/dist/functions/trinketSet.d.ts.map +1 -1
- package/dist/functions/trinketSet.lua +29 -9
- package/dist/functions/trinkets.d.ts +1 -10
- package/dist/functions/trinkets.d.ts.map +1 -1
- package/dist/functions/trinkets.lua +0 -24
- package/dist/index.d.ts +11569 -175
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +158 -128
- package/package.json +1 -1
- package/src/core/constantsFirstLast.ts +12 -125
- package/src/enums/ModCallbackCustom.ts +21 -0
- package/src/features/characterStats.ts +1 -1
- package/src/features/extraConsoleCommands/listCommands.ts +8 -5
- package/src/features/firstLast.ts +429 -0
- package/src/functions/array.ts +1 -9
- package/src/functions/cards.ts +5 -28
- package/src/functions/{cacheFlag.ts → collectibleCacheFlag.ts} +13 -16
- package/src/functions/collectibleSet.ts +28 -21
- package/src/functions/collectibles.ts +0 -22
- package/src/functions/flying.ts +1 -1
- package/src/functions/pills.ts +0 -22
- package/src/functions/players.ts +2 -2
- package/src/functions/random.ts +3 -0
- package/src/functions/run.ts +23 -1
- package/src/functions/stats.ts +12 -0
- package/src/functions/trinketCacheFlag.ts +29 -7
- package/src/functions/trinketSet.ts +28 -21
- package/src/functions/trinkets.ts +0 -34
- package/src/index.ts +26 -62
- package/dist/functions/cacheFlag.d.ts.map +0 -1
|
@@ -5,6 +5,9 @@ import { CollectibleType } from "isaac-typescript-definitions";
|
|
|
5
5
|
*
|
|
6
6
|
* Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
7
7
|
* then use the `getCollectibleSet` helper function instead.
|
|
8
|
+
*
|
|
9
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
10
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
8
11
|
*/
|
|
9
12
|
export declare function getCollectibleArray(): readonly CollectibleType[];
|
|
10
13
|
/**
|
|
@@ -12,6 +15,9 @@ export declare function getCollectibleArray(): readonly CollectibleType[];
|
|
|
12
15
|
*
|
|
13
16
|
* Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
14
17
|
* then use the `getCollectibleArray` helper function instead.
|
|
18
|
+
*
|
|
19
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
20
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
15
21
|
*/
|
|
16
22
|
export declare function getCollectibleSet(): ReadonlySet<CollectibleType>;
|
|
17
23
|
/**
|
|
@@ -19,6 +25,9 @@ export declare function getCollectibleSet(): ReadonlySet<CollectibleType>;
|
|
|
19
25
|
*
|
|
20
26
|
* Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
21
27
|
* then use the `getModdedCollectibleSet` helper function instead.
|
|
28
|
+
*
|
|
29
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
30
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
22
31
|
*/
|
|
23
32
|
export declare function getModdedCollectibleArray(): readonly CollectibleType[];
|
|
24
33
|
/**
|
|
@@ -26,6 +35,9 @@ export declare function getModdedCollectibleArray(): readonly CollectibleType[];
|
|
|
26
35
|
*
|
|
27
36
|
* Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
28
37
|
* then use the `getModdedCollectibleArray` helper function instead.
|
|
38
|
+
*
|
|
39
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
40
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
29
41
|
*/
|
|
30
42
|
export declare function getModdedCollectibleSet(): ReadonlySet<CollectibleType>;
|
|
31
43
|
/**
|
|
@@ -33,6 +45,9 @@ export declare function getModdedCollectibleSet(): ReadonlySet<CollectibleType>;
|
|
|
33
45
|
*
|
|
34
46
|
* Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
35
47
|
* then use the `getVanillaCollectibleSet` helper function instead.
|
|
48
|
+
*
|
|
49
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
50
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
36
51
|
*/
|
|
37
52
|
export declare function getVanillaCollectibleArray(): readonly CollectibleType[];
|
|
38
53
|
/**
|
|
@@ -40,6 +55,9 @@ export declare function getVanillaCollectibleArray(): readonly CollectibleType[]
|
|
|
40
55
|
*
|
|
41
56
|
* Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
42
57
|
* then use the `getVanillaCollectibleArray` helper function instead.
|
|
58
|
+
*
|
|
59
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
60
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
43
61
|
*/
|
|
44
62
|
export declare function getVanillaCollectibleSet(): ReadonlySet<CollectibleType>;
|
|
45
63
|
//# sourceMappingURL=collectibleSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectibleSet.d.ts","sourceRoot":"","sources":["../../src/functions/collectibleSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"collectibleSet.d.ts","sourceRoot":"","sources":["../../src/functions/collectibleSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAyD/D;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,IAAI,SAAS,eAAe,EAAE,CAGhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CAAC,eAAe,CAAC,CAGhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,IAAI,SAAS,eAAe,EAAE,CAGtE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,IAAI,WAAW,CAAC,eAAe,CAAC,CAGtE;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,IAAI,SAAS,eAAe,EAAE,CAGvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,IAAI,WAAW,CAAC,eAAe,CAAC,CAGvE"}
|
|
@@ -7,8 +7,9 @@ local ____cachedClasses = require("core.cachedClasses")
|
|
|
7
7
|
local itemConfig = ____cachedClasses.itemConfig
|
|
8
8
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
9
9
|
local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
|
|
10
|
-
local LAST_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_COLLECTIBLE_TYPE
|
|
11
10
|
local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
|
|
11
|
+
local ____firstLast = require("features.firstLast")
|
|
12
|
+
local getLastCollectibleType = ____firstLast.getLastCollectibleType
|
|
12
13
|
local ____utils = require("functions.utils")
|
|
13
14
|
local irange = ____utils.irange
|
|
14
15
|
local ALL_COLLECTIBLES_ARRAY = {}
|
|
@@ -17,11 +18,12 @@ local MODDED_COLLECTIBLES_ARRAY = {}
|
|
|
17
18
|
local ALL_COLLECTIBLES_SET = __TS__New(Set)
|
|
18
19
|
local VANILLA_COLLECTIBLES_SET = __TS__New(Set)
|
|
19
20
|
local MODDED_COLLECTIBLES_SET = __TS__New(Set)
|
|
20
|
-
local function
|
|
21
|
+
local function lazyInitCollectibleArraysAndSets(self)
|
|
21
22
|
if #ALL_COLLECTIBLES_ARRAY ~= 0 then
|
|
22
23
|
return
|
|
23
24
|
end
|
|
24
|
-
local
|
|
25
|
+
local lastCollectibleType = getLastCollectibleType(nil)
|
|
26
|
+
local collectibleTypeRange = irange(nil, FIRST_COLLECTIBLE_TYPE, lastCollectibleType)
|
|
25
27
|
for ____, collectibleType in ipairs(collectibleTypeRange) do
|
|
26
28
|
do
|
|
27
29
|
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|
|
@@ -55,48 +57,66 @@ end
|
|
|
55
57
|
--
|
|
56
58
|
-- Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
57
59
|
-- then use the `getCollectibleSet` helper function instead.
|
|
60
|
+
--
|
|
61
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
62
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
58
63
|
function ____exports.getCollectibleArray(self)
|
|
59
|
-
|
|
64
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
60
65
|
return ALL_COLLECTIBLES_ARRAY
|
|
61
66
|
end
|
|
62
67
|
--- Returns a set containing every valid collectible type in the game, including modded collectibles.
|
|
63
68
|
--
|
|
64
69
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
65
70
|
-- then use the `getCollectibleArray` helper function instead.
|
|
71
|
+
--
|
|
72
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
73
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
66
74
|
function ____exports.getCollectibleSet(self)
|
|
67
|
-
|
|
75
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
68
76
|
return ALL_COLLECTIBLES_SET
|
|
69
77
|
end
|
|
70
78
|
--- Returns an array containing every modded collectible type in the game.
|
|
71
79
|
--
|
|
72
80
|
-- Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
73
81
|
-- then use the `getModdedCollectibleSet` helper function instead.
|
|
82
|
+
--
|
|
83
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
84
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
74
85
|
function ____exports.getModdedCollectibleArray(self)
|
|
75
|
-
|
|
86
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
76
87
|
return MODDED_COLLECTIBLES_ARRAY
|
|
77
88
|
end
|
|
78
89
|
--- Returns a set containing every modded collectible type in the game.
|
|
79
90
|
--
|
|
80
91
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
81
92
|
-- then use the `getModdedCollectibleArray` helper function instead.
|
|
93
|
+
--
|
|
94
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
95
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
82
96
|
function ____exports.getModdedCollectibleSet(self)
|
|
83
|
-
|
|
97
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
84
98
|
return MODDED_COLLECTIBLES_SET
|
|
85
99
|
end
|
|
86
100
|
--- Returns an array containing every valid vanilla collectible type in the game.
|
|
87
101
|
--
|
|
88
102
|
-- Use this if you need to iterate over the collectibles in order. If you need to do O(1) lookups,
|
|
89
103
|
-- then use the `getVanillaCollectibleSet` helper function instead.
|
|
104
|
+
--
|
|
105
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
106
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
90
107
|
function ____exports.getVanillaCollectibleArray(self)
|
|
91
|
-
|
|
108
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
92
109
|
return VANILLA_COLLECTIBLES_ARRAY
|
|
93
110
|
end
|
|
94
111
|
--- Returns a set containing every valid vanilla collectible type in the game.
|
|
95
112
|
--
|
|
96
113
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the collectibles in order,
|
|
97
114
|
-- then use the `getVanillaCollectibleArray` helper function instead.
|
|
115
|
+
--
|
|
116
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
117
|
+
-- all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
98
118
|
function ____exports.getVanillaCollectibleSet(self)
|
|
99
|
-
|
|
119
|
+
lazyInitCollectibleArraysAndSets(nil)
|
|
100
120
|
return VANILLA_COLLECTIBLES_SET
|
|
101
121
|
end
|
|
102
122
|
return ____exports
|
|
@@ -123,19 +123,6 @@ export declare function getCollectibleQuality(collectibleType: CollectibleType):
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
export declare function getCollectibleTags(collectibleType: CollectibleType): BitFlags<ItemConfigTag>;
|
|
126
|
-
/**
|
|
127
|
-
* Helper function to get an array that represents the all modded collectible types.
|
|
128
|
-
*
|
|
129
|
-
* This function is only useful when building collectible type objects. For most purposes, you
|
|
130
|
-
* should use the `getModdedCollectibleSet` helper function instead.
|
|
131
|
-
*
|
|
132
|
-
* Returns an empty array if there are no modded collectible types.
|
|
133
|
-
*
|
|
134
|
-
* (This function is named differently from the `getVanillaCollectibleTypeRange` function because
|
|
135
|
-
* all modded collectible types are contiguous. Thus, each value represents a real
|
|
136
|
-
* `CollectibleType`.)
|
|
137
|
-
*/
|
|
138
|
-
export declare function getModdedCollectibleTypes(): CollectibleType[];
|
|
139
126
|
/**
|
|
140
127
|
* Helper function to get an array that represents the range from the first collectible type to the
|
|
141
128
|
* last vanilla collectible type. This will include integers that do not represent any valid
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectibles.d.ts","sourceRoot":"","sources":["../../src/functions/collectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,eAAe,EAEf,aAAa,EAEb,QAAQ,EACR,WAAW,EAGZ,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"collectibles.d.ts","sourceRoot":"","sources":["../../src/functions/collectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,eAAe,EAEf,aAAa,EAEb,QAAQ,EACR,WAAW,EAGZ,MAAM,8BAA8B,CAAC;AAgBtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAyB7D,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAEtE;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAsBT;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAeR;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,eAAe,GAC/B,GAAG,CAYL;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,YAAY,GACnB,WAAW,CAyBb;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAOR;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,YAAY,GACxB,gBAAgB,CAsBlB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,eAAe,GAC/B,GAAG,CAOL;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,QAAQ,CAOV;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,eAAe,GAC/B,GAAG,CAOL;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM,CAc3E;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,YAAY,GACxB,uBAAuB,CAUzB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,GAAG,CAO3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,eAAe,GAC/B,QAAQ,CAAC,aAAa,CAAC,CAGzB;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,IAAI,eAAe,EAAE,CAElE;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAG7E;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAcrE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAKnE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAG7E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAGT;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAGT;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,eAAe,EAAE,eAAe,GAC/B,IAAI,CAQN;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAS5E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CASnE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAUnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAuBtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAeN;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,YAAY,EACzB,kBAAkB,EAAE,eAAe,GAClC,IAAI,CA2BN;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAK5D"}
|
|
@@ -16,8 +16,6 @@ local BLIND_ITEM_PNG_PATH = ____constants.BLIND_ITEM_PNG_PATH
|
|
|
16
16
|
local DEFAULT_ITEM_POOL_TYPE = ____constants.DEFAULT_ITEM_POOL_TYPE
|
|
17
17
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
18
18
|
local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
|
|
19
|
-
local FIRST_MODDED_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_MODDED_COLLECTIBLE_TYPE
|
|
20
|
-
local LAST_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_COLLECTIBLE_TYPE
|
|
21
19
|
local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
|
|
22
20
|
local ____collectibleDescriptionMap = require("maps.collectibleDescriptionMap")
|
|
23
21
|
local COLLECTIBLE_DESCRIPTION_MAP = ____collectibleDescriptionMap.COLLECTIBLE_DESCRIPTION_MAP
|
|
@@ -326,22 +324,6 @@ function ____exports.getCollectibleTags(self, collectibleType)
|
|
|
326
324
|
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|
|
327
325
|
return itemConfigItem == nil and ItemConfigTagZero or itemConfigItem.Tags
|
|
328
326
|
end
|
|
329
|
-
--- Helper function to get an array that represents the all modded collectible types.
|
|
330
|
-
--
|
|
331
|
-
-- This function is only useful when building collectible type objects. For most purposes, you
|
|
332
|
-
-- should use the `getModdedCollectibleSet` helper function instead.
|
|
333
|
-
--
|
|
334
|
-
-- Returns an empty array if there are no modded collectible types.
|
|
335
|
-
--
|
|
336
|
-
-- (This function is named differently from the `getVanillaCollectibleTypeRange` function because
|
|
337
|
-
-- all modded collectible types are contiguous. Thus, each value represents a real
|
|
338
|
-
-- `CollectibleType`.)
|
|
339
|
-
function ____exports.getModdedCollectibleTypes(self)
|
|
340
|
-
if LAST_VANILLA_COLLECTIBLE_TYPE == LAST_COLLECTIBLE_TYPE then
|
|
341
|
-
return {}
|
|
342
|
-
end
|
|
343
|
-
return irange(nil, FIRST_MODDED_COLLECTIBLE_TYPE, LAST_COLLECTIBLE_TYPE)
|
|
344
|
-
end
|
|
345
327
|
--- Helper function to get an array that represents the range from the first collectible type to the
|
|
346
328
|
-- last vanilla collectible type. This will include integers that do not represent any valid
|
|
347
329
|
-- collectible types.
|
|
@@ -9,8 +9,8 @@ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
|
9
9
|
local NullItemID = ____isaac_2Dtypescript_2Ddefinitions.NullItemID
|
|
10
10
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
11
11
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
12
|
-
local
|
|
13
|
-
local getCollectiblesForCacheFlag =
|
|
12
|
+
local ____collectibleCacheFlag = require("functions.collectibleCacheFlag")
|
|
13
|
+
local getCollectiblesForCacheFlag = ____collectibleCacheFlag.getCollectiblesForCacheFlag
|
|
14
14
|
local ____set = require("functions.set")
|
|
15
15
|
local copySet = ____set.copySet
|
|
16
16
|
local deleteSetsFromSet = ____set.deleteSetsFromSet
|
|
@@ -4,10 +4,6 @@ import { ItemConfigPillEffectClass, ItemConfigPillEffectType, PillColor, PillEff
|
|
|
4
4
|
* all horse colors.
|
|
5
5
|
*/
|
|
6
6
|
export declare function getAllPillColors(): PillColor[];
|
|
7
|
-
/**
|
|
8
|
-
* Helper function to get an array with every valid pill effect. This includes modded pill effects.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getAllPillEffects(): PillEffect[];
|
|
11
7
|
/**
|
|
12
8
|
* Helper function to get the associated pill effect after False PHD is acquired. If a pill effect
|
|
13
9
|
* is not altered by False PHD, then the same pill effect will be returned.
|
|
@@ -22,12 +18,6 @@ export declare function getFalsePHDPillEffect(pillEffect: PillEffect): PillEffec
|
|
|
22
18
|
export declare function getHorsePillColor(pillColor: PillColor): PillColor;
|
|
23
19
|
/** Helper function to get an array with every non-gold horse pill color. */
|
|
24
20
|
export declare function getHorsePillColors(): PillColor[];
|
|
25
|
-
/**
|
|
26
|
-
* Helper function to get an array with every modded pill effect.
|
|
27
|
-
*
|
|
28
|
-
* Returns an empty array if there are no modded pill effects.
|
|
29
|
-
*/
|
|
30
|
-
export declare function getModdedPillEffects(): PillEffect[];
|
|
31
21
|
/**
|
|
32
22
|
* Helper function to get the corresponding normal pill color from a horse pill color.
|
|
33
23
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../src/functions/pills.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,SAAS,EACT,UAAU,EACX,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../src/functions/pills.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,SAAS,EACT,UAAU,EACX,MAAM,8BAA8B,CAAC;AAqCtC;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,EAAE,CAI9C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGxE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAEjE;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,IAAI,SAAS,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAM3E;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,IAAI,SAAS,EAAE,CAEjD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,GACrB,yBAAyB,CAS3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAgBhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,GACrB,wBAAwB,CAS1B;AAED,sEAAsE;AACtE,wBAAgB,qBAAqB,IAAI,UAAU,EAAE,CAEpD;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD"}
|
package/dist/functions/pills.lua
CHANGED
|
@@ -7,12 +7,10 @@ local ____cachedClasses = require("core.cachedClasses")
|
|
|
7
7
|
local itemConfig = ____cachedClasses.itemConfig
|
|
8
8
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
9
9
|
local FIRST_HORSE_PILL_COLOR = ____constantsFirstLast.FIRST_HORSE_PILL_COLOR
|
|
10
|
-
local FIRST_MODDED_PILL_EFFECT = ____constantsFirstLast.FIRST_MODDED_PILL_EFFECT
|
|
11
10
|
local FIRST_PILL_COLOR = ____constantsFirstLast.FIRST_PILL_COLOR
|
|
12
11
|
local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
|
|
13
12
|
local LAST_HORSE_PILL_COLOR = ____constantsFirstLast.LAST_HORSE_PILL_COLOR
|
|
14
13
|
local LAST_NORMAL_PILL_COLOR = ____constantsFirstLast.LAST_NORMAL_PILL_COLOR
|
|
15
|
-
local LAST_PILL_EFFECT = ____constantsFirstLast.LAST_PILL_EFFECT
|
|
16
14
|
local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
|
|
17
15
|
local ____falsePHDPillConversions = require("maps.falsePHDPillConversions")
|
|
18
16
|
local FALSE_PHD_PILL_CONVERSIONS = ____falsePHDPillConversions.FALSE_PHD_PILL_CONVERSIONS
|
|
@@ -47,10 +45,6 @@ function ____exports.getAllPillColors(self)
|
|
|
47
45
|
__TS__ArraySlice(pillColors)
|
|
48
46
|
return pillColors
|
|
49
47
|
end
|
|
50
|
-
--- Helper function to get an array with every valid pill effect. This includes modded pill effects.
|
|
51
|
-
function ____exports.getAllPillEffects(self)
|
|
52
|
-
return irange(nil, FIRST_PILL_EFFECT, LAST_PILL_EFFECT)
|
|
53
|
-
end
|
|
54
48
|
--- Helper function to get the associated pill effect after False PHD is acquired. If a pill effect
|
|
55
49
|
-- is not altered by False PHD, then the same pill effect will be returned.
|
|
56
50
|
function ____exports.getFalsePHDPillEffect(self, pillEffect)
|
|
@@ -68,15 +62,6 @@ end
|
|
|
68
62
|
function ____exports.getHorsePillColors(self)
|
|
69
63
|
return irange(nil, FIRST_HORSE_PILL_COLOR, LAST_HORSE_PILL_COLOR)
|
|
70
64
|
end
|
|
71
|
-
--- Helper function to get an array with every modded pill effect.
|
|
72
|
-
--
|
|
73
|
-
-- Returns an empty array if there are no modded pill effects.
|
|
74
|
-
function ____exports.getModdedPillEffects(self)
|
|
75
|
-
if LAST_VANILLA_PILL_EFFECT == LAST_PILL_EFFECT then
|
|
76
|
-
return {}
|
|
77
|
-
end
|
|
78
|
-
return irange(nil, FIRST_MODDED_PILL_EFFECT, LAST_PILL_EFFECT)
|
|
79
|
-
end
|
|
80
65
|
--- Helper function to get the corresponding normal pill color from a horse pill color.
|
|
81
66
|
--
|
|
82
67
|
-- For example, passing 2049 would result in `PillColor.BLUE_BLUE`.
|
|
@@ -304,7 +304,7 @@ function ____exports.getAzazelBrimstoneDistance(self, playerOrTearHeight)
|
|
|
304
304
|
return 32 - 2.5 * tearHeight
|
|
305
305
|
end
|
|
306
306
|
function ____exports.getClosestPlayer(self, position)
|
|
307
|
-
local closestPlayer
|
|
307
|
+
local closestPlayer
|
|
308
308
|
local closestDistance = math.huge
|
|
309
309
|
for ____, player in ipairs(getPlayers(nil)) do
|
|
310
310
|
local distance = position:Distance(player.Position)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/functions/random.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,SAAS,GAAE,IAAI,GAAG,GAAqB,GAAG,KAAK,CAGxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,GAAE,IAAI,GAAG,GAAqB,GACtC,KAAK,CAUP;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,GAAG,EAAE,GAAG,SAAS,GAAG,EAAO,GACtC,GAAG,
|
|
1
|
+
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/functions/random.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,SAAS,GAAE,IAAI,GAAG,GAAqB,GAAG,KAAK,CAGxE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,GAAE,IAAI,GAAG,GAAqB,GACtC,KAAK,CAUP;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,GAAG,EAAE,GAAG,SAAS,GAAG,EAAO,GACtC,GAAG,CAqBL"}
|
|
@@ -69,6 +69,8 @@ function ____exports.getRandomInt(self, min, max, seedOrRNG, exceptions)
|
|
|
69
69
|
exceptions = {}
|
|
70
70
|
end
|
|
71
71
|
local rng = isRNG(nil, seedOrRNG) and seedOrRNG or newRNG(nil, seedOrRNG)
|
|
72
|
+
min = math.ceil(min)
|
|
73
|
+
max = math.floor(max)
|
|
72
74
|
if min > max then
|
|
73
75
|
local oldMin = min
|
|
74
76
|
local oldMax = max
|
package/dist/functions/run.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { PlayerType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to see if the current run can unlock achievements. For example, if playing on a
|
|
4
|
+
* set seed or in a victory lap, achievements are disabled.
|
|
5
|
+
*/
|
|
6
|
+
export declare function canRunUnlockAchievements(): boolean;
|
|
2
7
|
/**
|
|
3
8
|
* Whether or not the player is playing on a set seed (i.e. that they entered in a specific seed by
|
|
4
9
|
* pressing tab on the character selection screen). When the player resets the game on a set seed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAQtC;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAUlD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAMnC;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,CAiBpD;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,CAInE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAUlC"}
|
package/dist/functions/run.lua
CHANGED
|
@@ -2,14 +2,27 @@ local ____exports = {}
|
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
4
4
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
5
|
+
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
5
6
|
local ____cachedClasses = require("core.cachedClasses")
|
|
6
7
|
local game = ____cachedClasses.game
|
|
8
|
+
local ____constants = require("core.constants")
|
|
9
|
+
local VectorZero = ____constants.VectorZero
|
|
7
10
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
8
11
|
local FIRST_CHARACTER = ____constantsFirstLast.FIRST_CHARACTER
|
|
9
12
|
local ____runInNFrames = require("features.runInNFrames")
|
|
10
13
|
local runNextRenderFrame = ____runInNFrames.runNextRenderFrame
|
|
14
|
+
local ____entitiesSpecific = require("functions.entitiesSpecific")
|
|
15
|
+
local spawnSlot = ____entitiesSpecific.spawnSlot
|
|
11
16
|
local ____log = require("functions.log")
|
|
12
17
|
local log = ____log.log
|
|
18
|
+
--- Helper function to see if the current run can unlock achievements. For example, if playing on a
|
|
19
|
+
-- set seed or in a victory lap, achievements are disabled.
|
|
20
|
+
function ____exports.canRunUnlockAchievements(self)
|
|
21
|
+
local greedDonationMachine = spawnSlot(nil, SlotVariant.GREED_DONATION_MACHINE, 0, VectorZero)
|
|
22
|
+
local canUnlockAchievements = greedDonationMachine:Exists()
|
|
23
|
+
greedDonationMachine:Remove()
|
|
24
|
+
return canUnlockAchievements
|
|
25
|
+
end
|
|
13
26
|
--- Whether or not the player is playing on a set seed (i.e. that they entered in a specific seed by
|
|
14
27
|
-- pressing tab on the character selection screen). When the player resets the game on a set seed,
|
|
15
28
|
-- the game will not switch to a different seed.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CacheFlag } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the starting stat that Isaac (the default character) starts with. For example, if you
|
|
4
|
+
* pass this function `CacheFlag.DAMAGE`, it will return 3.5.
|
|
5
|
+
*
|
|
6
|
+
* Note that the default fire delay is represented in the tear stat, not the `MaxFireDelay` value.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDefaultPlayerStat(cacheFlag: CacheFlag): number | undefined;
|
|
9
|
+
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/functions/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAE7E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____defaultPlayerStatMap = require("maps.defaultPlayerStatMap")
|
|
3
|
+
local DEFAULT_PLAYER_STAT_MAP = ____defaultPlayerStatMap.DEFAULT_PLAYER_STAT_MAP
|
|
4
|
+
--- Returns the starting stat that Isaac (the default character) starts with. For example, if you
|
|
5
|
+
-- pass this function `CacheFlag.DAMAGE`, it will return 3.5.
|
|
6
|
+
--
|
|
7
|
+
-- Note that the default fire delay is represented in the tear stat, not the `MaxFireDelay` value.
|
|
8
|
+
function ____exports.getDefaultPlayerStat(self, cacheFlag)
|
|
9
|
+
return DEFAULT_PLAYER_STAT_MAP:get(cacheFlag)
|
|
10
|
+
end
|
|
11
|
+
return ____exports
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { CacheFlag, TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
/**
|
|
3
3
|
* Returns a map containing every trinket type that the player has that matches the provided
|
|
4
|
-
* CacheFlag
|
|
4
|
+
* `CacheFlag`. The values of the map correspond to the multiplier for that trinket.
|
|
5
|
+
*
|
|
6
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
7
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
5
8
|
*/
|
|
6
9
|
export declare function getPlayerTrinketsForCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): Map<TrinketType, int>;
|
|
7
10
|
/**
|
|
8
11
|
* Returns a set containing every trinket type with the given cache flag, including modded trinkets.
|
|
12
|
+
*
|
|
13
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
14
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
9
15
|
*/
|
|
10
16
|
export declare function getTrinketsForCacheFlag(cacheFlag: CacheFlag): Set<TrinketType>;
|
|
17
|
+
/** Helper function to check in the item config if a given trinket has a given cache flag. */
|
|
18
|
+
export declare function trinketHasCacheFlag(trinketType: TrinketType, cacheFlag: CacheFlag): boolean;
|
|
11
19
|
//# sourceMappingURL=trinketCacheFlag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinketCacheFlag.d.ts","sourceRoot":"","sources":["../../src/functions/trinketCacheFlag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"trinketCacheFlag.d.ts","sourceRoot":"","sources":["../../src/functions/trinketCacheFlag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AA2BtE;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,SAAS,GACnB,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,SAAS,GACnB,GAAG,CAAC,WAAW,CAAC,CASlB;AAED,6FAA6F;AAC7F,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,GACnB,OAAO,CAOT"}
|
|
@@ -4,21 +4,27 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local Set = ____lualib.Set
|
|
5
5
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
6
6
|
local ____exports = {}
|
|
7
|
-
local
|
|
7
|
+
local lazyInitCacheFlagMap, CACHE_FLAG_TO_TRINKETS_MAP
|
|
8
8
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
9
9
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
10
|
+
local ____cachedClasses = require("core.cachedClasses")
|
|
11
|
+
local itemConfig = ____cachedClasses.itemConfig
|
|
12
|
+
local ____firstLast = require("features.firstLast")
|
|
13
|
+
local getTrinketTypes = ____firstLast.getTrinketTypes
|
|
10
14
|
local ____enums = require("functions.enums")
|
|
11
15
|
local getEnumValues = ____enums.getEnumValues
|
|
16
|
+
local ____flag = require("functions.flag")
|
|
17
|
+
local hasFlag = ____flag.hasFlag
|
|
12
18
|
local ____set = require("functions.set")
|
|
13
19
|
local copySet = ____set.copySet
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
function lazyInitCacheFlagMap(self)
|
|
21
|
+
if CACHE_FLAG_TO_TRINKETS_MAP.size > 0 then
|
|
22
|
+
return
|
|
23
|
+
end
|
|
18
24
|
for ____, cacheFlag in ipairs(getEnumValues(nil, CacheFlag)) do
|
|
19
25
|
local trinketsSet = __TS__New(Set)
|
|
20
26
|
for ____, trinketType in ipairs(getTrinketTypes(nil)) do
|
|
21
|
-
if trinketHasCacheFlag(nil, trinketType, cacheFlag) then
|
|
27
|
+
if ____exports.trinketHasCacheFlag(nil, trinketType, cacheFlag) then
|
|
22
28
|
trinketsSet:add(trinketType)
|
|
23
29
|
end
|
|
24
30
|
end
|
|
@@ -26,19 +32,31 @@ function initCacheFlagMap(self)
|
|
|
26
32
|
end
|
|
27
33
|
end
|
|
28
34
|
--- Returns a set containing every trinket type with the given cache flag, including modded trinkets.
|
|
35
|
+
--
|
|
36
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
37
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
29
38
|
function ____exports.getTrinketsForCacheFlag(self, cacheFlag)
|
|
30
|
-
|
|
31
|
-
initCacheFlagMap(nil)
|
|
32
|
-
end
|
|
39
|
+
lazyInitCacheFlagMap(nil)
|
|
33
40
|
local trinketsSet = CACHE_FLAG_TO_TRINKETS_MAP:get(cacheFlag)
|
|
34
41
|
if trinketsSet == nil then
|
|
35
42
|
return __TS__New(Set)
|
|
36
43
|
end
|
|
37
44
|
return copySet(nil, trinketsSet)
|
|
38
45
|
end
|
|
46
|
+
--- Helper function to check in the item config if a given trinket has a given cache flag.
|
|
47
|
+
function ____exports.trinketHasCacheFlag(self, trinketType, cacheFlag)
|
|
48
|
+
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
49
|
+
if itemConfigItem == nil then
|
|
50
|
+
return false
|
|
51
|
+
end
|
|
52
|
+
return hasFlag(nil, itemConfigItem.CacheFlags, cacheFlag)
|
|
53
|
+
end
|
|
39
54
|
CACHE_FLAG_TO_TRINKETS_MAP = __TS__New(Map)
|
|
40
55
|
--- Returns a map containing every trinket type that the player has that matches the provided
|
|
41
|
-
-- CacheFlag
|
|
56
|
+
-- `CacheFlag`. The values of the map correspond to the multiplier for that trinket.
|
|
57
|
+
--
|
|
58
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
59
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
42
60
|
function ____exports.getPlayerTrinketsForCacheFlag(self, player, cacheFlag)
|
|
43
61
|
local trinketsForCacheFlag = ____exports.getTrinketsForCacheFlag(nil, cacheFlag)
|
|
44
62
|
local playerTrinkets = __TS__New(Map)
|
|
@@ -4,6 +4,9 @@ import { TrinketType } from "isaac-typescript-definitions";
|
|
|
4
4
|
*
|
|
5
5
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
6
6
|
* use the `getTrinketSet` helper function instead.
|
|
7
|
+
*
|
|
8
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
9
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
7
10
|
*/
|
|
8
11
|
export declare function getModdedTrinketArray(): readonly TrinketType[];
|
|
9
12
|
/**
|
|
@@ -11,6 +14,9 @@ export declare function getModdedTrinketArray(): readonly TrinketType[];
|
|
|
11
14
|
*
|
|
12
15
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
13
16
|
* use the `getTrinketArray` helper function instead.
|
|
17
|
+
*
|
|
18
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
19
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
14
20
|
*/
|
|
15
21
|
export declare function getModdedTrinketSet(): ReadonlySet<TrinketType>;
|
|
16
22
|
/**
|
|
@@ -18,6 +24,9 @@ export declare function getModdedTrinketSet(): ReadonlySet<TrinketType>;
|
|
|
18
24
|
*
|
|
19
25
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
20
26
|
* use the `getModdedTrinketSet` helper function instead.
|
|
27
|
+
*
|
|
28
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
29
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
21
30
|
*/
|
|
22
31
|
export declare function getTrinketArray(): readonly TrinketType[];
|
|
23
32
|
/**
|
|
@@ -25,6 +34,9 @@ export declare function getTrinketArray(): readonly TrinketType[];
|
|
|
25
34
|
*
|
|
26
35
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
27
36
|
* use the `getModdedTrinketArray` helper function instead.
|
|
37
|
+
*
|
|
38
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
39
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
28
40
|
*/
|
|
29
41
|
export declare function getTrinketSet(): ReadonlySet<TrinketType>;
|
|
30
42
|
/**
|
|
@@ -32,6 +44,9 @@ export declare function getTrinketSet(): ReadonlySet<TrinketType>;
|
|
|
32
44
|
*
|
|
33
45
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
34
46
|
* use the `getVanillaTrinketSet` helper function instead.
|
|
47
|
+
*
|
|
48
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
49
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
35
50
|
*/
|
|
36
51
|
export declare function getVanillaTrinketArray(): readonly TrinketType[];
|
|
37
52
|
/**
|
|
@@ -39,6 +54,9 @@ export declare function getVanillaTrinketArray(): readonly TrinketType[];
|
|
|
39
54
|
*
|
|
40
55
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
41
56
|
* use the `getVanillaTrinketArray` helper function instead.
|
|
57
|
+
*
|
|
58
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
59
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
42
60
|
*/
|
|
43
61
|
export declare function getVanillaTrinketSet(): ReadonlySet<TrinketType>;
|
|
44
62
|
//# sourceMappingURL=trinketSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinketSet.d.ts","sourceRoot":"","sources":["../../src/functions/trinketSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"trinketSet.d.ts","sourceRoot":"","sources":["../../src/functions/trinketSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAyD3D;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,SAAS,WAAW,EAAE,CAG9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,WAAW,CAAC,WAAW,CAAC,CAG9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,SAAS,WAAW,EAAE,CAGxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,WAAW,CAAC,WAAW,CAAC,CAGxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,WAAW,EAAE,CAG/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC,CAG/D"}
|