isaacscript-common 72.1.0 → 72.1.1

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.
@@ -981,7 +981,7 @@ export declare function angleToDirection(angleDegrees: int): Direction;
981
981
  export declare type AnyClass = new () => object;
982
982
 
983
983
  /** Alias for the `anySeedEffectEnabled` function. */
984
- export declare function anyEasterEggEnabled(): boolean;
984
+ export declare function anyEasterEggEnabled(exceptions?: SeedEffect[]): boolean;
985
985
 
986
986
  /**
987
987
  * A type union that matches `Entity`, `EntityBomb`, `EntityEffect`, and so on.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 72.1.0
3
+ isaacscript-common 72.1.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -34988,8 +34988,8 @@ function ____exports.anySeedEffectEnabled(self, exceptions)
34988
34988
  function(____, seedEffect) return seeds:HasSeedEffect(seedEffect) and not exceptionsSet:has(seedEffect) end
34989
34989
  )
34990
34990
  end
34991
- function ____exports.anyEasterEggEnabled(self)
34992
- return ____exports.anySeedEffectEnabled(nil)
34991
+ function ____exports.anyEasterEggEnabled(self, exceptions)
34992
+ return ____exports.anySeedEffectEnabled(nil, exceptions)
34993
34993
  end
34994
34994
  function ____exports.canRunUnlockAchievements(self)
34995
34995
  local greedDonationMachine = spawnSlot(nil, SlotVariant.GREED_DONATION_MACHINE, 0, VectorZero)
@@ -1,7 +1,7 @@
1
1
  import type { PlayerType } from "isaac-typescript-definitions";
2
2
  import { SeedEffect } from "isaac-typescript-definitions";
3
3
  /** Alias for the `anySeedEffectEnabled` function. */
4
- export declare function anyEasterEggEnabled(): boolean;
4
+ export declare function anyEasterEggEnabled(exceptions?: SeedEffect[]): boolean;
5
5
  /**
6
6
  * Helper function to see if any seed effects (i.e. Easter Eggs) are enabled for the current run.
7
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAUtC,qDAAqD;AACrD,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,OAAO,CAavE;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAUlD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAO7C;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAMnC;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAGtC;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,CAkBpD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,0BAA0B,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAQ1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAUlC"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAUtC,qDAAqD;AACrD,wBAAgB,mBAAmB,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,OAAO,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,OAAO,CAavE;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAUlD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAO7C;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAMnC;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAGtC;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,CAkBpD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,0BAA0B,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAQ1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAUlC"}
@@ -40,8 +40,8 @@ function ____exports.anySeedEffectEnabled(self, exceptions)
40
40
  )
41
41
  end
42
42
  --- Alias for the `anySeedEffectEnabled` function.
43
- function ____exports.anyEasterEggEnabled(self)
44
- return ____exports.anySeedEffectEnabled(nil)
43
+ function ____exports.anyEasterEggEnabled(self, exceptions)
44
+ return ____exports.anySeedEffectEnabled(nil, exceptions)
45
45
  end
46
46
  --- Helper function to see if the current run can unlock achievements. For example, if playing on a
47
47
  -- set seed or in a victory lap, achievements are disabled.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "72.1.0",
3
+ "version": "72.1.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -14,8 +14,8 @@ import { log } from "./log";
14
14
  import { isString } from "./types";
15
15
 
16
16
  /** Alias for the `anySeedEffectEnabled` function. */
17
- export function anyEasterEggEnabled(): boolean {
18
- return anySeedEffectEnabled();
17
+ export function anyEasterEggEnabled(exceptions?: SeedEffect[]): boolean {
18
+ return anySeedEffectEnabled(exceptions);
19
19
  }
20
20
 
21
21
  /**