isaacscript-common 39.0.1 → 39.1.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.
@@ -13803,6 +13803,9 @@ export declare const NUM_PILLS_IN_POOL: number;
13803
13803
  /** Calculated from the `Card` enum. `Card.NULL` is not included. */
13804
13804
  export declare const NUM_VANILLA_CARD_TYPES: number;
13805
13805
 
13806
+ /** Calculated from the `Challenge` enum. `Challenge.NULL` is not included. */
13807
+ export declare const NUM_VANILLA_CHALLENGES: number;
13808
+
13806
13809
  /** Calculated from the `CollectibleType` enum. (`CollectibleType.NULL` is not included.) */
13807
13810
  export declare const NUM_VANILLA_COLLECTIBLE_TYPES: number;
13808
13811
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 39.0.1
3
+ isaacscript-common 39.1.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -17868,6 +17868,7 @@ return ____exports
17868
17868
  local ____exports = {}
17869
17869
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
17870
17870
  local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
17871
+ local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
17871
17872
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
17872
17873
  local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
17873
17874
  local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
@@ -17903,6 +17904,7 @@ ____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
17903
17904
  ____exports.LAST_ROOM_TYPE = getHighestEnumValue(nil, RoomType)
17904
17905
  ____exports.FIRST_STAGE = LevelStage.BASEMENT_1
17905
17906
  ____exports.LAST_STAGE = getHighestEnumValue(nil, LevelStage)
17907
+ ____exports.NUM_VANILLA_CHALLENGES = getEnumLength(nil, Challenge) - 1
17906
17908
  return ____exports
17907
17909
  end,
17908
17910
  ["src.core.constants"] = function(...)
@@ -58,4 +58,6 @@ export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
58
58
  export declare const LAST_ROOM_TYPE: RoomType;
59
59
  export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
60
60
  export declare const LAST_STAGE: LevelStage;
61
+ /** Calculated from the `Challenge` enum. `Challenge.NULL` is not included. */
62
+ export declare const NUM_VANILLA_CHALLENGES: number;
61
63
  //# sourceMappingURL=constantsFirstLast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../../../src/core/constantsFirstLast.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAQtC,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,iBACJ,CAAC;AAEvC,4FAA4F;AAC5F,eAAO,MAAM,6BAA6B,QAAqC,CAAC;AAMhF,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAE9D,8CAA8C;AAC9C,eAAO,MAAM,yBAAyB,aAAmC,CAAC;AAE1E,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,QAAiC,CAAC;AAMxE,4BAA4B;AAC5B,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,uCAAuC;AACvC,eAAO,MAAM,sBAAsB,UAAgC,CAAC;AAEpE,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAMlE,qCAAqC;AACrC,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,6CAA6C;AAC7C,eAAO,MAAM,wBAAwB,YAAkC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAA4B,CAAC;AAMlE,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sB,QAA8B,CAAC;AAMlE,qCAAqC;AACrC,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,6CAA6C;AAC7C,eAAO,MAAM,wBAAwB,YAAkC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAA4B,CAAC;AAMlE,sCAAsC;AACtC,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,eAAO,MAAM,sBAAsB,QAG3B,CAAC;AAMT,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAAkC,CAAC;AAMtE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAAgC,CAAC;AAM5D,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAAkC,CAAC;AAM1D,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,QAA+B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
3
  local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
4
+ local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
4
5
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
5
6
  local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
6
7
  local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
@@ -64,4 +65,6 @@ ____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
64
65
  ____exports.LAST_ROOM_TYPE = getHighestEnumValue(nil, RoomType)
65
66
  ____exports.FIRST_STAGE = LevelStage.BASEMENT_1
66
67
  ____exports.LAST_STAGE = getHighestEnumValue(nil, LevelStage)
68
+ --- Calculated from the `Challenge` enum. `Challenge.NULL` is not included.
69
+ ____exports.NUM_VANILLA_CHALLENGES = getEnumLength(nil, Challenge) - 1
67
70
  return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "39.0.1",
3
+ "version": "39.1.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,6 +25,6 @@
25
25
  "main": "dist/src/index",
26
26
  "types": "dist/index.rollup.d.ts",
27
27
  "dependencies": {
28
- "isaac-typescript-definitions": "^17.0.0"
28
+ "isaac-typescript-definitions": "^17.0.1"
29
29
  }
30
30
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import {
4
4
  CardType,
5
+ Challenge,
5
6
  CollectibleType,
6
7
  LevelStage,
7
8
  PillColor,
@@ -130,3 +131,10 @@ export const LAST_ROOM_TYPE = getHighestEnumValue(RoomType);
130
131
 
131
132
  export const FIRST_STAGE = LevelStage.BASEMENT_1;
132
133
  export const LAST_STAGE = getHighestEnumValue(LevelStage);
134
+
135
+ // ----------
136
+ // Challenges
137
+ // ----------
138
+
139
+ /** Calculated from the `Challenge` enum. `Challenge.NULL` is not included. */
140
+ export const NUM_VANILLA_CHALLENGES = getEnumLength(Challenge) - 1;