Skip to content

Unlock Achievements Detection

Defined in: packages/isaacscript-common/src/classes/features/other/UnlockAchievementsDetection.ts:14

  • Feature

canRunUnlockAchievements(): boolean

Defined in: packages/isaacscript-common/src/classes/features/other/UnlockAchievementsDetection.ts:55

Helper function to see if the current run can unlock achievements. For example, if playing on a set seed or in a victory lap, achievements are disabled.

Under the hood, this is determined by spawning a Greed Donation Machine at the beginning of the run and then seeing if it exists before removing it. (The results are cached for the entire run.)

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

boolean