isaacscript-common 2.0.8 → 2.0.9

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.
@@ -1,12 +1,12 @@
1
- import { PillColor, PlayerType } from "isaac-typescript-definitions";
1
+ import { CollectibleType, PillColor, PlayerType } from "isaac-typescript-definitions";
2
2
  export declare const NUM_CARDS: number;
3
3
  export declare const MAX_CARD: number;
4
4
  export declare const NUM_VANILLA_CARDS: number;
5
5
  export declare const MAX_VANILLA_CARD: number;
6
6
  export declare const NUM_COLLECTIBLE_TYPES: number;
7
7
  export declare const MAX_COLLECTIBLE_TYPE: number;
8
- export declare const NUM_VANILLA_COLLECTIBLE_TYPES: number;
9
- export declare const MAX_VANILLA_COLLECTIBLE_TYPE: number;
8
+ export declare const NUM_VANILLA_COLLECTIBLE_TYPES: CollectibleType;
9
+ export declare const MAX_VANILLA_COLLECTIBLE_TYPE: CollectibleType;
10
10
  export declare const NUM_PILL_EFFECTS: number;
11
11
  export declare const MAX_PILL_EFFECT: number;
12
12
  export declare const NUM_VANILLA_PILL_EFFECTS: number;
@@ -14,6 +14,6 @@ export declare const MAX_VANILLA_PILL_EFFECT: number;
14
14
  export declare const NUM_TRINKET_TYPES: number;
15
15
  export declare const MAX_TRINKET_TYPE: number;
16
16
  export declare const NUM_VANILLA_TRINKET_TYPES: number;
17
- export declare const MAX_VANILLA_TRINKET_TYPE: number;
17
+ export declare const MAX_VANILLA_TRINKET_TYPE: CollectibleType;
18
18
  export declare const MAX_VANILLA_PLAYER_TYPE: PlayerType;
19
19
  export declare const MAX_NORMAL_PILL_COLOR = PillColor.WHITE_YELLOW;
@@ -17,7 +17,7 @@ ____exports.NUM_VANILLA_CARDS = getEnumLength(nil, Card) - 1
17
17
  ____exports.MAX_VANILLA_CARD = ____exports.NUM_VANILLA_CARDS
18
18
  ____exports.NUM_COLLECTIBLE_TYPES = itemConfig:GetCollectibles().Size - 1
19
19
  ____exports.MAX_COLLECTIBLE_TYPE = ____exports.NUM_COLLECTIBLE_TYPES - 1
20
- ____exports.NUM_VANILLA_COLLECTIBLE_TYPES = getEnumLength(nil, CollectibleType) - 1
20
+ ____exports.NUM_VANILLA_COLLECTIBLE_TYPES = getLastEnumValue(nil, CollectibleType)
21
21
  ____exports.MAX_VANILLA_COLLECTIBLE_TYPE = ____exports.NUM_VANILLA_COLLECTIBLE_TYPES
22
22
  ____exports.NUM_PILL_EFFECTS = itemConfig:GetPillEffects().Size - 1
23
23
  ____exports.MAX_PILL_EFFECT = ____exports.NUM_PILL_EFFECTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -28,7 +28,7 @@
28
28
  "isaac-typescript-definitions": "^2.0.13"
29
29
  },
30
30
  "devDependencies": {
31
- "isaacscript-lint": "^1.0.141",
31
+ "isaacscript-lint": "^1.0.142",
32
32
  "isaacscript-spell": "^1.0.3",
33
33
  "isaacscript-tsconfig": "^1.1.16",
34
34
  "ts-node": "^10.7.0",