isaacscript-common 2.0.2 → 2.0.3
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.
- package/dist/constantsMax.d.ts +2 -0
- package/dist/constantsMax.lua +3 -0
- package/package.json +1 -1
package/dist/constantsMax.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PlayerType } from "isaac-typescript-definitions";
|
|
1
2
|
export declare const NUM_CARDS: number;
|
|
2
3
|
export declare const MAX_CARD: number;
|
|
3
4
|
export declare const NUM_VANILLA_CARDS: number;
|
|
@@ -14,3 +15,4 @@ export declare const NUM_TRINKET_TYPES: number;
|
|
|
14
15
|
export declare const MAX_TRINKET_TYPE: number;
|
|
15
16
|
export declare const NUM_VANILLA_TRINKET_TYPES: number;
|
|
16
17
|
export declare const MAX_VANILLA_TRINKET_TYPE: number;
|
|
18
|
+
export declare const MAX_VANILLA_PLAYER_TYPE: PlayerType;
|
package/dist/constantsMax.lua
CHANGED
|
@@ -3,11 +3,13 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
|
|
|
3
3
|
local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
|
|
4
4
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
5
5
|
local PillEffect = ____isaac_2Dtypescript_2Ddefinitions.PillEffect
|
|
6
|
+
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
6
7
|
local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
7
8
|
local ____cachedClasses = require("cachedClasses")
|
|
8
9
|
local itemConfig = ____cachedClasses.itemConfig
|
|
9
10
|
local ____enums = require("functions.enums")
|
|
10
11
|
local getEnumLength = ____enums.getEnumLength
|
|
12
|
+
local getLastEnumValue = ____enums.getLastEnumValue
|
|
11
13
|
____exports.NUM_CARDS = itemConfig:GetCards().Size - 1
|
|
12
14
|
____exports.MAX_CARD = ____exports.NUM_CARDS
|
|
13
15
|
____exports.NUM_VANILLA_CARDS = getEnumLength(nil, Card) - 1
|
|
@@ -24,4 +26,5 @@ ____exports.NUM_TRINKET_TYPES = itemConfig:GetTrinkets().Size - 1
|
|
|
24
26
|
____exports.MAX_TRINKET_TYPE = ____exports.NUM_COLLECTIBLE_TYPES - 1
|
|
25
27
|
____exports.NUM_VANILLA_TRINKET_TYPES = getEnumLength(nil, TrinketType) - 1
|
|
26
28
|
____exports.MAX_VANILLA_TRINKET_TYPE = ____exports.NUM_VANILLA_COLLECTIBLE_TYPES
|
|
29
|
+
____exports.MAX_VANILLA_PLAYER_TYPE = getLastEnumValue(nil, PlayerType)
|
|
27
30
|
return ____exports
|