Unlock Achievements Detection
Classes
Section titled “Classes”UnlockAchievementsDetection
Section titled “UnlockAchievementsDetection”Defined in: packages/isaacscript-common/src/classes/features/other/UnlockAchievementsDetection.ts:14
Extends
Section titled “Extends”Feature
Methods
Section titled “Methods”canRunUnlockAchievements()
Section titled “canRunUnlockAchievements()”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.
Returns
Section titled “Returns”boolean
