Skip to content

Collectible Item Pool Type

Defined in: packages/isaacscript-common/src/classes/features/other/CollectibleItemPoolType.ts:19

  • Feature

getCollectibleItemPoolType(collectible): ItemPoolType

Defined in: packages/isaacscript-common/src/classes/features/other/CollectibleItemPoolType.ts:68

Helper function to get the item pool type that a given collectible came from. Since there is no native method in the API to get this, we listen in the POST_PICKUP_INIT callback for collectibles, use the ItemPool.GetLastPool method, and then assume that the collectible matches.

In order to use this function, you must upgrade your mod with ISCFeature.COLLECTIBLE_ITEM_POOL_TYPE.

EntityPickup

ItemPoolType