isaacscript-common 7.17.5 → 8.0.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.
- package/dist/core/constantsFirstLast.d.ts +10 -85
- package/dist/core/constantsFirstLast.d.ts.map +1 -1
- package/dist/core/constantsFirstLast.lua +10 -90
- package/dist/enums/ModCallbackCustom.d.ts +21 -0
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/features/characterStats.lua +2 -2
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +9 -5
- package/dist/features/firstLast.d.ts +190 -0
- package/dist/features/firstLast.d.ts.map +1 -0
- package/dist/features/firstLast.lua +341 -0
- package/dist/functions/array.d.ts +1 -9
- package/dist/functions/array.d.ts.map +1 -1
- package/dist/functions/array.lua +0 -6
- package/dist/functions/cards.d.ts +0 -8
- package/dist/functions/cards.d.ts.map +1 -1
- package/dist/functions/cards.lua +9 -24
- package/dist/functions/{cacheFlag.d.ts → collectibleCacheFlag.d.ts} +8 -8
- package/dist/functions/collectibleCacheFlag.d.ts.map +1 -0
- package/dist/functions/{cacheFlag.lua → collectibleCacheFlag.lua} +12 -13
- package/dist/functions/collectibleSet.d.ts +18 -0
- package/dist/functions/collectibleSet.d.ts.map +1 -1
- package/dist/functions/collectibleSet.lua +29 -9
- package/dist/functions/collectibles.d.ts +0 -13
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.lua +0 -18
- package/dist/functions/flying.lua +2 -2
- package/dist/functions/pills.d.ts +0 -10
- package/dist/functions/pills.d.ts.map +1 -1
- package/dist/functions/pills.lua +0 -15
- package/dist/functions/players.lua +1 -1
- package/dist/functions/random.d.ts.map +1 -1
- package/dist/functions/random.lua +2 -0
- package/dist/functions/run.d.ts +5 -0
- package/dist/functions/run.d.ts.map +1 -1
- package/dist/functions/run.lua +13 -0
- package/dist/functions/stats.d.ts +9 -0
- package/dist/functions/stats.d.ts.map +1 -0
- package/dist/functions/stats.lua +11 -0
- package/dist/functions/trinketCacheFlag.d.ts +9 -1
- package/dist/functions/trinketCacheFlag.d.ts.map +1 -1
- package/dist/functions/trinketCacheFlag.lua +28 -10
- package/dist/functions/trinketSet.d.ts +18 -0
- package/dist/functions/trinketSet.d.ts.map +1 -1
- package/dist/functions/trinketSet.lua +29 -9
- package/dist/functions/trinkets.d.ts +1 -10
- package/dist/functions/trinkets.d.ts.map +1 -1
- package/dist/functions/trinkets.lua +0 -24
- package/dist/index.d.ts +251 -117
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +14 -6
- package/dist/initFeatures.d.ts.map +1 -1
- package/dist/initFeatures.lua +3 -0
- package/package.json +1 -1
- package/src/core/constantsFirstLast.ts +12 -125
- package/src/enums/ModCallbackCustom.ts +21 -0
- package/src/features/characterStats.ts +1 -1
- package/src/features/extraConsoleCommands/listCommands.ts +8 -5
- package/src/features/firstLast.ts +429 -0
- package/src/functions/array.ts +1 -9
- package/src/functions/cards.ts +5 -28
- package/src/functions/{cacheFlag.ts → collectibleCacheFlag.ts} +13 -16
- package/src/functions/collectibleSet.ts +28 -21
- package/src/functions/collectibles.ts +0 -22
- package/src/functions/flying.ts +1 -1
- package/src/functions/pills.ts +0 -22
- package/src/functions/players.ts +2 -2
- package/src/functions/random.ts +3 -0
- package/src/functions/run.ts +23 -1
- package/src/functions/stats.ts +12 -0
- package/src/functions/trinketCacheFlag.ts +29 -7
- package/src/functions/trinketSet.ts +28 -21
- package/src/functions/trinkets.ts +0 -34
- package/src/index.ts +2 -1
- package/src/initFeatures.ts +2 -0
- package/dist/functions/cacheFlag.d.ts.map +0 -1
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { Card, CollectibleType, LevelStage, PillColor, PillEffect, PlayerType, RoomType, TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
/** Equal to `CollectibleType.SAD_ONION`. */
|
|
3
3
|
export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
|
|
4
|
-
/**
|
|
5
|
-
* Will change depending on how many modded collectibles there are.
|
|
6
|
-
*
|
|
7
|
-
* Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
|
|
8
|
-
* 666. We subtract one to account for `CollectibleType.NULL`.)
|
|
9
|
-
*/
|
|
10
|
-
export declare const LAST_COLLECTIBLE_TYPE: CollectibleType;
|
|
11
4
|
/**
|
|
12
5
|
* Calculated from the `CollectibleType` enum.
|
|
13
6
|
*
|
|
@@ -15,92 +8,30 @@ export declare const LAST_COLLECTIBLE_TYPE: CollectibleType;
|
|
|
15
8
|
* enums, collectible types are not contiguous.
|
|
16
9
|
*/
|
|
17
10
|
export declare const LAST_VANILLA_COLLECTIBLE_TYPE: CollectibleType;
|
|
18
|
-
/**
|
|
19
|
-
* If there are no modded collectibles, this constant will represent a collectible type that does
|
|
20
|
-
* not exist.
|
|
21
|
-
*/
|
|
22
|
-
export declare const FIRST_MODDED_COLLECTIBLE_TYPE: CollectibleType;
|
|
23
|
-
/** Calculated from the `CollectibleType` enum. `CollectibleType.NULL` is not included. */
|
|
11
|
+
/** Calculated from the `CollectibleType` enum. (`CollectibleType.NULL` is not included.) */
|
|
24
12
|
export declare const NUM_VANILLA_COLLECTIBLE_TYPES: number;
|
|
25
|
-
/** Unlike vanilla collectible types, modded collectible types are always contiguous. */
|
|
26
|
-
export declare const NUM_MODDED_COLLECTIBLE_TYPES: number;
|
|
27
|
-
export declare const NUM_COLLECTIBLE_TYPES: number;
|
|
28
|
-
/**
|
|
29
|
-
* Will change depending on how many modded cards there are.
|
|
30
|
-
*
|
|
31
|
-
* Equal to `itemConfig.GetTrinkets().Size - 1`. (We subtract one to account for
|
|
32
|
-
* `TrinketType.NULL`.)
|
|
33
|
-
*/
|
|
34
|
-
export declare const NUM_TRINKET_TYPES: number;
|
|
35
|
-
/** Calculated from the `TrinketType` enum. `TrinketType.NULL` is not included. */
|
|
36
|
-
export declare const NUM_VANILLA_TRINKET_TYPES: number;
|
|
37
|
-
export declare const NUM_MODDED_TRINKET_TYPES: number;
|
|
38
13
|
/** Equal to `TrinketType.SWALLOWED_PENNY`. */
|
|
39
14
|
export declare const FIRST_TRINKET_TYPE = TrinketType.SWALLOWED_PENNY;
|
|
40
|
-
/**
|
|
41
|
-
* Will change depending on how many modded cards there are.
|
|
42
|
-
*
|
|
43
|
-
* Equal to `itemConfig.GetTrinkets().Size - 1`. (We subtract one to account for
|
|
44
|
-
* `TrinketType.NULL`.)
|
|
45
|
-
*/
|
|
46
|
-
export declare const LAST_TRINKET_TYPE: TrinketType;
|
|
47
15
|
/** Calculated from the `TrinketType` enum. */
|
|
48
16
|
export declare const LAST_VANILLA_TRINKET_TYPE: TrinketType;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
*/
|
|
52
|
-
export declare const FIRST_MODDED_TRINKET_TYPE: TrinketType;
|
|
53
|
-
/**
|
|
54
|
-
* Will change depending on how many modded cards there are.
|
|
55
|
-
*
|
|
56
|
-
* Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
|
|
57
|
-
*/
|
|
58
|
-
export declare const NUM_CARDS: number;
|
|
59
|
-
/** Calculated from the `Card` enum. `Card.NULL` is not included. */
|
|
60
|
-
export declare const NUM_VANILLA_CARDS: number;
|
|
61
|
-
export declare const NUM_MODDED_CARDS: number;
|
|
17
|
+
/** Calculated from the `TrinketType` enum. (`TrinketType.NULL` is not included.) */
|
|
18
|
+
export declare const NUM_VANILLA_TRINKET_TYPES: number;
|
|
62
19
|
/** Equal to `Card.FOOL`. */
|
|
63
20
|
export declare const FIRST_CARD = Card.FOOL;
|
|
64
|
-
/**
|
|
65
|
-
* Will change depending on how many modded cards there are.
|
|
66
|
-
*
|
|
67
|
-
* Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
|
|
68
|
-
*/
|
|
69
|
-
export declare const LAST_CARD: Card;
|
|
70
21
|
/** Calculated from the `Card` enum. */
|
|
71
|
-
export declare const
|
|
72
|
-
/**
|
|
73
|
-
export declare const
|
|
74
|
-
/**
|
|
75
|
-
* Will change depending on how many modded pill effects there are.
|
|
76
|
-
*
|
|
77
|
-
* Equal to `itemConfig.GetPillEffects().Size - 1`. (We subtract one to account for
|
|
78
|
-
* `PillEffect.NULL`.)
|
|
79
|
-
*/
|
|
80
|
-
export declare const NUM_PILL_EFFECTS: number;
|
|
81
|
-
/**
|
|
82
|
-
* Calculated from the `PillEffect` enum.
|
|
83
|
-
*
|
|
84
|
-
* (There is no `PillEffect.NULL` in the custom enum, so we don't have to subtract one here.)
|
|
85
|
-
*/
|
|
86
|
-
export declare const NUM_VANILLA_PILL_EFFECTS: number;
|
|
87
|
-
export declare const NUM_MODDED_PILL_EFFECTS: number;
|
|
22
|
+
export declare const LAST_VANILLA_CARD: Card;
|
|
23
|
+
/** Calculated from the `Card` enum. `Card.NULL` is not included. */
|
|
24
|
+
export declare const NUM_VANILLA_CARDS: number;
|
|
88
25
|
/** Equal to `PillEffect.BAD_GAS`. */
|
|
89
26
|
export declare const FIRST_PILL_EFFECT = PillEffect.BAD_GAS;
|
|
90
|
-
/**
|
|
91
|
-
* Will change depending on how many modded pill effects there are.
|
|
92
|
-
*
|
|
93
|
-
* Equal to `itemConfig.GetPillEffects().Size - 1`. (We subtract one to account for
|
|
94
|
-
* `PillEffect.NULL`.)
|
|
95
|
-
*/
|
|
96
|
-
export declare const LAST_PILL_EFFECT: PillEffect;
|
|
97
27
|
/** Calculated from the `PillEffect` enum. */
|
|
98
28
|
export declare const LAST_VANILLA_PILL_EFFECT: PillEffect;
|
|
99
29
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
30
|
+
* Calculated from the `PillEffect` enum.
|
|
31
|
+
*
|
|
32
|
+
* (There is no `PillEffect.NULL` in the custom enum, so we do not have to subtract one here.)
|
|
102
33
|
*/
|
|
103
|
-
export declare const
|
|
34
|
+
export declare const NUM_VANILLA_PILL_EFFECTS: number;
|
|
104
35
|
/** Equal to `PillColor.BLUE_BLUE`. */
|
|
105
36
|
export declare const FIRST_PILL_COLOR = PillColor.BLUE_BLUE;
|
|
106
37
|
/**
|
|
@@ -124,12 +55,6 @@ export declare const NUM_NORMAL_PILL_COLORS: number;
|
|
|
124
55
|
export declare const FIRST_CHARACTER = PlayerType.ISAAC;
|
|
125
56
|
/** Calculated from the `PlayerType` enum. */
|
|
126
57
|
export declare const LAST_VANILLA_CHARACTER: PlayerType;
|
|
127
|
-
/**
|
|
128
|
-
* If there are no modded characters, this constant will represent a character that does not exist.
|
|
129
|
-
* (There is no way to determine the amount of modded characters at run-time, since there is no
|
|
130
|
-
* exposed player config.)
|
|
131
|
-
*/
|
|
132
|
-
export declare const FIRST_MODDED_CHARACTER: PlayerType;
|
|
133
58
|
export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
|
|
134
59
|
export declare const LAST_ROOM_TYPE: RoomType;
|
|
135
60
|
export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../../src/core/constantsFirstLast.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../../src/core/constantsFirstLast.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,eAAe,EACf,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAOtC,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,iBAAoC,CAAC;AAE/E,4FAA4F;AAC5F,eAAO,MAAM,6BAA6B,QAAqC,CAAC;AAMhF,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAE9D,8CAA8C;AAC9C,eAAO,MAAM,yBAAyB,aAAgC,CAAC;AAEvE,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,QAAiC,CAAC;AAMxE,4BAA4B;AAC5B,eAAO,MAAM,UAAU,YAAY,CAAC;AAEpC,uCAAuC;AACvC,eAAO,MAAM,iBAAiB,MAAyB,CAAC;AAExD,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,QAA0B,CAAC;AAMzD,qCAAqC;AACrC,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAEpD,6CAA6C;AAC7C,eAAO,MAAM,wBAAwB,YAA+B,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAA4B,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,QAA4C,CAAC;AAMhF,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAA+B,CAAC;AAMnE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAA6B,CAAC;AAMzD,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAA+B,CAAC"}
|
|
@@ -11,108 +11,35 @@ local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
|
11
11
|
local ____enums = require("functions.enums")
|
|
12
12
|
local getEnumLength = ____enums.getEnumLength
|
|
13
13
|
local getLastEnumValue = ____enums.getLastEnumValue
|
|
14
|
-
local ____types = require("functions.types")
|
|
15
|
-
local asCard = ____types.asCard
|
|
16
|
-
local asCollectibleType = ____types.asCollectibleType
|
|
17
|
-
local asNumber = ____types.asNumber
|
|
18
|
-
local asPillEffect = ____types.asPillEffect
|
|
19
|
-
local asPlayerType = ____types.asPlayerType
|
|
20
|
-
local asTrinketType = ____types.asTrinketType
|
|
21
|
-
local ____cachedClasses = require("core.cachedClasses")
|
|
22
|
-
local itemConfig = ____cachedClasses.itemConfig
|
|
23
14
|
--- Equal to `CollectibleType.SAD_ONION`.
|
|
24
15
|
____exports.FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION
|
|
25
|
-
--- Will change depending on how many modded collectibles there are.
|
|
26
|
-
--
|
|
27
|
-
-- Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
|
|
28
|
-
-- 666. We subtract one to account for `CollectibleType.NULL`.)
|
|
29
|
-
____exports.LAST_COLLECTIBLE_TYPE = asCollectibleType(
|
|
30
|
-
nil,
|
|
31
|
-
itemConfig:GetCollectibles().Size - 1
|
|
32
|
-
)
|
|
33
16
|
--- Calculated from the `CollectibleType` enum.
|
|
34
17
|
--
|
|
35
18
|
-- Note that this cannot be calculated from the length of the enum, because unlike all of the other
|
|
36
19
|
-- enums, collectible types are not contiguous.
|
|
37
20
|
____exports.LAST_VANILLA_COLLECTIBLE_TYPE = getLastEnumValue(nil, CollectibleType)
|
|
38
|
-
---
|
|
39
|
-
-- not exist.
|
|
40
|
-
____exports.FIRST_MODDED_COLLECTIBLE_TYPE = asCollectibleType(
|
|
41
|
-
nil,
|
|
42
|
-
asNumber(nil, ____exports.LAST_VANILLA_COLLECTIBLE_TYPE) + 1
|
|
43
|
-
)
|
|
44
|
-
--- Calculated from the `CollectibleType` enum. `CollectibleType.NULL` is not included.
|
|
21
|
+
--- Calculated from the `CollectibleType` enum. (`CollectibleType.NULL` is not included.)
|
|
45
22
|
____exports.NUM_VANILLA_COLLECTIBLE_TYPES = getEnumLength(nil, CollectibleType) - 1
|
|
46
|
-
--- Unlike vanilla collectible types, modded collectible types are always contiguous.
|
|
47
|
-
____exports.NUM_MODDED_COLLECTIBLE_TYPES = ____exports.LAST_COLLECTIBLE_TYPE - ____exports.LAST_VANILLA_COLLECTIBLE_TYPE
|
|
48
|
-
____exports.NUM_COLLECTIBLE_TYPES = ____exports.NUM_VANILLA_COLLECTIBLE_TYPES + ____exports.NUM_MODDED_COLLECTIBLE_TYPES
|
|
49
|
-
--- Will change depending on how many modded cards there are.
|
|
50
|
-
--
|
|
51
|
-
-- Equal to `itemConfig.GetTrinkets().Size - 1`. (We subtract one to account for
|
|
52
|
-
-- `TrinketType.NULL`.)
|
|
53
|
-
____exports.NUM_TRINKET_TYPES = itemConfig:GetTrinkets().Size - 1
|
|
54
|
-
--- Calculated from the `TrinketType` enum. `TrinketType.NULL` is not included.
|
|
55
|
-
____exports.NUM_VANILLA_TRINKET_TYPES = getEnumLength(nil, TrinketType) - 1
|
|
56
|
-
____exports.NUM_MODDED_TRINKET_TYPES = ____exports.NUM_TRINKET_TYPES - ____exports.NUM_VANILLA_TRINKET_TYPES
|
|
57
23
|
--- Equal to `TrinketType.SWALLOWED_PENNY`.
|
|
58
24
|
____exports.FIRST_TRINKET_TYPE = TrinketType.SWALLOWED_PENNY
|
|
59
|
-
--- Will change depending on how many modded cards there are.
|
|
60
|
-
--
|
|
61
|
-
-- Equal to `itemConfig.GetTrinkets().Size - 1`. (We subtract one to account for
|
|
62
|
-
-- `TrinketType.NULL`.)
|
|
63
|
-
____exports.LAST_TRINKET_TYPE = asTrinketType(nil, ____exports.NUM_TRINKET_TYPES)
|
|
64
25
|
--- Calculated from the `TrinketType` enum.
|
|
65
26
|
____exports.LAST_VANILLA_TRINKET_TYPE = getLastEnumValue(nil, TrinketType)
|
|
66
|
-
---
|
|
67
|
-
____exports.
|
|
68
|
-
nil,
|
|
69
|
-
asNumber(nil, ____exports.LAST_VANILLA_TRINKET_TYPE) + 1
|
|
70
|
-
)
|
|
71
|
-
--- Will change depending on how many modded cards there are.
|
|
72
|
-
--
|
|
73
|
-
-- Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
|
|
74
|
-
____exports.NUM_CARDS = itemConfig:GetCards().Size - 1
|
|
75
|
-
--- Calculated from the `Card` enum. `Card.NULL` is not included.
|
|
76
|
-
____exports.NUM_VANILLA_CARDS = getEnumLength(nil, Card) - 1
|
|
77
|
-
____exports.NUM_MODDED_CARDS = ____exports.NUM_CARDS - ____exports.NUM_VANILLA_CARDS
|
|
27
|
+
--- Calculated from the `TrinketType` enum. (`TrinketType.NULL` is not included.)
|
|
28
|
+
____exports.NUM_VANILLA_TRINKET_TYPES = getEnumLength(nil, TrinketType) - 1
|
|
78
29
|
--- Equal to `Card.FOOL`.
|
|
79
30
|
____exports.FIRST_CARD = Card.FOOL
|
|
80
|
-
--- Will change depending on how many modded cards there are.
|
|
81
|
-
--
|
|
82
|
-
-- Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
|
|
83
|
-
____exports.LAST_CARD = asCard(nil, ____exports.NUM_CARDS)
|
|
84
31
|
--- Calculated from the `Card` enum.
|
|
85
|
-
____exports.
|
|
86
|
-
---
|
|
87
|
-
____exports.
|
|
88
|
-
nil,
|
|
89
|
-
asNumber(nil, ____exports.MAX_VANILLA_CARD) + 1
|
|
90
|
-
)
|
|
91
|
-
--- Will change depending on how many modded pill effects there are.
|
|
92
|
-
--
|
|
93
|
-
-- Equal to `itemConfig.GetPillEffects().Size - 1`. (We subtract one to account for
|
|
94
|
-
-- `PillEffect.NULL`.)
|
|
95
|
-
____exports.NUM_PILL_EFFECTS = itemConfig:GetPillEffects().Size - 1
|
|
96
|
-
--- Calculated from the `PillEffect` enum.
|
|
97
|
-
--
|
|
98
|
-
-- (There is no `PillEffect.NULL` in the custom enum, so we don't have to subtract one here.)
|
|
99
|
-
____exports.NUM_VANILLA_PILL_EFFECTS = getEnumLength(nil, PillEffect)
|
|
100
|
-
____exports.NUM_MODDED_PILL_EFFECTS = ____exports.NUM_PILL_EFFECTS - ____exports.NUM_VANILLA_PILL_EFFECTS
|
|
32
|
+
____exports.LAST_VANILLA_CARD = getLastEnumValue(nil, Card)
|
|
33
|
+
--- Calculated from the `Card` enum. `Card.NULL` is not included.
|
|
34
|
+
____exports.NUM_VANILLA_CARDS = getEnumLength(nil, Card) - 1
|
|
101
35
|
--- Equal to `PillEffect.BAD_GAS`.
|
|
102
36
|
____exports.FIRST_PILL_EFFECT = PillEffect.BAD_GAS
|
|
103
|
-
--- Will change depending on how many modded pill effects there are.
|
|
104
|
-
--
|
|
105
|
-
-- Equal to `itemConfig.GetPillEffects().Size - 1`. (We subtract one to account for
|
|
106
|
-
-- `PillEffect.NULL`.)
|
|
107
|
-
____exports.LAST_PILL_EFFECT = asPillEffect(nil, ____exports.NUM_PILL_EFFECTS)
|
|
108
37
|
--- Calculated from the `PillEffect` enum.
|
|
109
38
|
____exports.LAST_VANILLA_PILL_EFFECT = getLastEnumValue(nil, PillEffect)
|
|
110
|
-
---
|
|
111
|
-
--
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
asNumber(nil, ____exports.LAST_VANILLA_PILL_EFFECT) + 1
|
|
115
|
-
)
|
|
39
|
+
--- Calculated from the `PillEffect` enum.
|
|
40
|
+
--
|
|
41
|
+
-- (There is no `PillEffect.NULL` in the custom enum, so we do not have to subtract one here.)
|
|
42
|
+
____exports.NUM_VANILLA_PILL_EFFECTS = getEnumLength(nil, PillEffect)
|
|
116
43
|
--- Equal to `PillColor.BLUE_BLUE`.
|
|
117
44
|
____exports.FIRST_PILL_COLOR = PillColor.BLUE_BLUE
|
|
118
45
|
--- Equal to `PillColor.WHITE_YELLOW`.
|
|
@@ -132,13 +59,6 @@ ____exports.NUM_NORMAL_PILL_COLORS = ____exports.LAST_NORMAL_PILL_COLOR - ____ex
|
|
|
132
59
|
____exports.FIRST_CHARACTER = PlayerType.ISAAC
|
|
133
60
|
--- Calculated from the `PlayerType` enum.
|
|
134
61
|
____exports.LAST_VANILLA_CHARACTER = getLastEnumValue(nil, PlayerType)
|
|
135
|
-
--- If there are no modded characters, this constant will represent a character that does not exist.
|
|
136
|
-
-- (There is no way to determine the amount of modded characters at run-time, since there is no
|
|
137
|
-
-- exposed player config.)
|
|
138
|
-
____exports.FIRST_MODDED_CHARACTER = asPlayerType(
|
|
139
|
-
nil,
|
|
140
|
-
asNumber(nil, ____exports.LAST_VANILLA_CHARACTER) + 1
|
|
141
|
-
)
|
|
142
62
|
____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
|
|
143
63
|
____exports.LAST_ROOM_TYPE = getLastEnumValue(nil, RoomType)
|
|
144
64
|
____exports.FIRST_STAGE = LevelStage.BASEMENT_1
|
|
@@ -320,6 +320,9 @@ export declare enum ModCallbackCustom {
|
|
|
320
320
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
321
321
|
* `GridEntityType.ROCK` (2) when its state changes to `RockState.BROKEN` (2).)
|
|
322
322
|
*
|
|
323
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
324
|
+
* `POST_GRID_ENTITY_CUSTOM_BROKEN` callback instead.
|
|
325
|
+
*
|
|
323
326
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
324
327
|
* only fire if it matches the `GridEntityType` provided.
|
|
325
328
|
*
|
|
@@ -333,6 +336,9 @@ export declare enum ModCallbackCustom {
|
|
|
333
336
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
334
337
|
* of range and then moves back into range.)
|
|
335
338
|
*
|
|
339
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
340
|
+
* `POST_GRID_ENTITY_CUSTOM_COLLISION` callback instead.
|
|
341
|
+
*
|
|
336
342
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
337
343
|
* only fire if it matches the `GridEntityType` provided.
|
|
338
344
|
*
|
|
@@ -460,6 +466,9 @@ export declare enum ModCallbackCustom {
|
|
|
460
466
|
* - in the `POST_UPDATE` callback (if the entity appeared mid-way through the room, like when the
|
|
461
467
|
* trapdoor appears after defeating It Lives!)
|
|
462
468
|
*
|
|
469
|
+
* For grid entities created with `spawnCustomGridEntity`, use the `POST_GRID_ENTITY_CUSTOM_INIT`
|
|
470
|
+
* callback instead.
|
|
471
|
+
*
|
|
463
472
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
464
473
|
* only fire if it matches the `GridEntityType` provided.
|
|
465
474
|
*
|
|
@@ -476,6 +485,9 @@ export declare enum ModCallbackCustom {
|
|
|
476
485
|
*
|
|
477
486
|
* This will fire when a Polty/Kineti picks up a grid entity.
|
|
478
487
|
*
|
|
488
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
489
|
+
* `POST_GRID_ENTITY_CUSTOM_REMOVE` callback instead.
|
|
490
|
+
*
|
|
479
491
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
480
492
|
* only fire if it matches the `GridEntityType` provided.
|
|
481
493
|
*
|
|
@@ -495,6 +507,9 @@ export declare enum ModCallbackCustom {
|
|
|
495
507
|
* - When registering the callback, takes an optional third argument that will make the callback
|
|
496
508
|
* only fire if it matches the variant provided.
|
|
497
509
|
*
|
|
510
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
511
|
+
* `POST_GRID_ENTITY_CUSTOM_RENDER` callback instead.
|
|
512
|
+
*
|
|
498
513
|
* ```ts
|
|
499
514
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
500
515
|
* ```
|
|
@@ -507,6 +522,9 @@ export declare enum ModCallbackCustom {
|
|
|
507
522
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
508
523
|
* only fire if it matches the `GridEntityType` provided.
|
|
509
524
|
*
|
|
525
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
526
|
+
* `POST_GRID_ENTITY_CUSTOM_STATE_CHANGED` callback instead.
|
|
527
|
+
*
|
|
510
528
|
* ```ts
|
|
511
529
|
* function postGridEntityStateChanged(
|
|
512
530
|
* gridEntity: GridEntity,
|
|
@@ -524,6 +542,9 @@ export declare enum ModCallbackCustom {
|
|
|
524
542
|
* - When registering the callback, takes an optional third argument that will make the callback
|
|
525
543
|
* only fire if it matches the variant provided.
|
|
526
544
|
*
|
|
545
|
+
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
546
|
+
* `POST_GRID_ENTITY_CUSTOM_UPDATE` callback instead.
|
|
547
|
+
*
|
|
527
548
|
* ```ts
|
|
528
549
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
529
550
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;OAUG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;OAUG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;OAYG;IACH,mBAAmB,IAAA;IAEnB;;;;;;OAMG;IACH,eAAe,IAAA;IAEf;;;;;;;;;;;;;OAaG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,IAAA;IAE3B;;;;;;;;OAQG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,qBAAqB,KAAA;IAErB;;;;;;;;;;;;;;OAcG;IACH,yBAAyB,KAAA;IAEzB;;;;;;;OAOG;IACH,YAAY,KAAA;IAEZ;;;;;;;;;;;;OAYG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;OAUG;IACH,kBAAkB,KAAA;IAElB;;;;;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IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;OAUG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;OAYG;IACH,cAAc,KAAA;IAEd;;;;;;;;;OASG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;;;;;;;;OAiBG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;;;OAcG;IACH,cAAc,KAAA;IAEd;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;OASG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,eAAe,KAAA;IAEf;;;;;;;;;OASG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,KAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,iBAAiB,KAAA;IAEjB;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,KAAA;IAEjB;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;;OAYG;IACH,aAAa,KAAA;CACd"}
|
|
@@ -7,10 +7,10 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
|
|
|
7
7
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
8
8
|
local ____featuresInitialized = require("featuresInitialized")
|
|
9
9
|
local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
|
|
10
|
-
local ____cacheFlag = require("functions.cacheFlag")
|
|
11
|
-
local getDefaultPlayerStat = ____cacheFlag.getDefaultPlayerStat
|
|
12
10
|
local ____players = require("functions.players")
|
|
13
11
|
local addStat = ____players.addStat
|
|
12
|
+
local ____stats = require("functions.stats")
|
|
13
|
+
local getDefaultPlayerStat = ____stats.getDefaultPlayerStat
|
|
14
14
|
function evaluateCache(self, player, cacheFlag)
|
|
15
15
|
local character = player:GetPlayerType()
|
|
16
16
|
local statMap = charactersStatMap:get(character)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA4GA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CA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,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -27,8 +27,6 @@ local FIRST_CHARACTER = ____constantsFirstLast.FIRST_CHARACTER
|
|
|
27
27
|
local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
|
|
28
28
|
local FIRST_ROOM_TYPE = ____constantsFirstLast.FIRST_ROOM_TYPE
|
|
29
29
|
local FIRST_STAGE = ____constantsFirstLast.FIRST_STAGE
|
|
30
|
-
local LAST_CARD = ____constantsFirstLast.LAST_CARD
|
|
31
|
-
local LAST_PILL_EFFECT = ____constantsFirstLast.LAST_PILL_EFFECT
|
|
32
30
|
local LAST_ROOM_TYPE = ____constantsFirstLast.LAST_ROOM_TYPE
|
|
33
31
|
local LAST_STAGE = ____constantsFirstLast.LAST_STAGE
|
|
34
32
|
local LAST_VANILLA_CHARACTER = ____constantsFirstLast.LAST_VANILLA_CHARACTER
|
|
@@ -100,6 +98,9 @@ local ____pillEffectMap = require("maps.pillEffectMap")
|
|
|
100
98
|
local PILL_EFFECT_MAP = ____pillEffectMap.PILL_EFFECT_MAP
|
|
101
99
|
local ____roomTypeMap = require("maps.roomTypeMap")
|
|
102
100
|
local ROOM_TYPE_MAP = ____roomTypeMap.ROOM_TYPE_MAP
|
|
101
|
+
local ____firstLast = require("features.firstLast")
|
|
102
|
+
local getLastCard = ____firstLast.getLastCard
|
|
103
|
+
local getLastPillEffect = ____firstLast.getLastPillEffect
|
|
103
104
|
local ____commandsSubroutines = require("features.extraConsoleCommands.commandsSubroutines")
|
|
104
105
|
local addHeart = ____commandsSubroutines.addHeart
|
|
105
106
|
local devilAngel = ____commandsSubroutines.devilAngel
|
|
@@ -364,7 +365,8 @@ function ____exports.card(self, params)
|
|
|
364
365
|
end
|
|
365
366
|
cardNum = match[2]
|
|
366
367
|
else
|
|
367
|
-
|
|
368
|
+
local lastCard = getLastCard(nil)
|
|
369
|
+
if num < FIRST_CARD or num > lastCard then
|
|
368
370
|
printConsole(
|
|
369
371
|
nil,
|
|
370
372
|
"Invalid card sub-type: " .. tostring(num)
|
|
@@ -382,6 +384,7 @@ function ____exports.card(self, params)
|
|
|
382
384
|
end
|
|
383
385
|
--- Spawns every card on the ground, starting at the top-left-most tile.
|
|
384
386
|
function ____exports.cards(self)
|
|
387
|
+
local lastCard = getLastCard(nil)
|
|
385
388
|
local cardType = 1
|
|
386
389
|
do
|
|
387
390
|
local y = 0
|
|
@@ -389,7 +392,7 @@ function ____exports.cards(self)
|
|
|
389
392
|
do
|
|
390
393
|
local x = 0
|
|
391
394
|
while x <= 12 do
|
|
392
|
-
if asCard(nil, cardType) ==
|
|
395
|
+
if asCard(nil, cardType) == lastCard then
|
|
393
396
|
return
|
|
394
397
|
end
|
|
395
398
|
local position = gridCoordinatesToWorldPosition(nil, x, y)
|
|
@@ -762,7 +765,8 @@ function ____exports.pill(self, params)
|
|
|
762
765
|
end
|
|
763
766
|
pillEffect = match[2]
|
|
764
767
|
else
|
|
765
|
-
|
|
768
|
+
local lastPillEffect = getLastPillEffect(nil)
|
|
769
|
+
if num < FIRST_PILL_EFFECT or num > lastPillEffect then
|
|
766
770
|
printConsole(
|
|
767
771
|
nil,
|
|
768
772
|
"Invalid pill effect ID: " .. tostring(num)
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Card, CollectibleType, PillEffect, TrinketType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the first modded collectible type, or undefined if there are no modded collectibles.
|
|
4
|
+
*
|
|
5
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
6
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
7
|
+
*/
|
|
8
|
+
export declare function getFirstModdedCollectibleType(): CollectibleType | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Will change depending on how many modded collectibles there are.
|
|
11
|
+
*
|
|
12
|
+
* Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
|
|
13
|
+
* 666. We subtract one to account for `CollectibleType.NULL`.)
|
|
14
|
+
*
|
|
15
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
16
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
17
|
+
*/
|
|
18
|
+
export declare function getLastCollectibleType(): CollectibleType;
|
|
19
|
+
/**
|
|
20
|
+
* Helper function to get an array that represents the all modded collectible types.
|
|
21
|
+
*
|
|
22
|
+
* This function is only useful when building collectible type objects. For most purposes, you
|
|
23
|
+
* should use the `getModdedCollectibleSet` helper function instead.
|
|
24
|
+
*
|
|
25
|
+
* Returns an empty array if there are no modded collectible types.
|
|
26
|
+
*
|
|
27
|
+
* (This function is named differently from the `getVanillaCollectibleTypeRange` function because
|
|
28
|
+
* all modded collectible types are contiguous. Thus, each value represents a real
|
|
29
|
+
* `CollectibleType`.)
|
|
30
|
+
*
|
|
31
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
32
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
33
|
+
*/
|
|
34
|
+
export declare function getModdedCollectibleTypes(): CollectibleType[];
|
|
35
|
+
/**
|
|
36
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
37
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
38
|
+
*/
|
|
39
|
+
export declare function getNumCollectibleTypes(): int;
|
|
40
|
+
/**
|
|
41
|
+
* Unlike vanilla collectible types, modded collectible types are always contiguous.
|
|
42
|
+
*
|
|
43
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
44
|
+
* all collectibles will necessarily be present when a mod first loads (due to mod load order).
|
|
45
|
+
*/
|
|
46
|
+
export declare function getNumModdedCollectibleTypes(): int;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the first modded trinket type, or undefined if there are no modded trinkets.
|
|
49
|
+
*
|
|
50
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
51
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
52
|
+
*/
|
|
53
|
+
export declare function getFirstModdedTrinketType(): TrinketType | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Will change depending on how many modded cards there are.
|
|
56
|
+
*
|
|
57
|
+
* This is equal to the number of trinket types, since all trinket types are contiguous (unlike
|
|
58
|
+
* collectibles).
|
|
59
|
+
*
|
|
60
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
61
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
62
|
+
*/
|
|
63
|
+
export declare function getLastTrinketType(): TrinketType;
|
|
64
|
+
/**
|
|
65
|
+
* Helper function to get an array that represents every modded trinket type.
|
|
66
|
+
*
|
|
67
|
+
* Returns an empty array if there are no modded trinket types.
|
|
68
|
+
*
|
|
69
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
70
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
71
|
+
*/
|
|
72
|
+
export declare function getModdedTrinketTypes(): TrinketType[];
|
|
73
|
+
/**
|
|
74
|
+
* Will change depending on how many modded cards there are.
|
|
75
|
+
*
|
|
76
|
+
* Equal to `itemConfig.GetTrinkets().Size - 1`. (We subtract one to account for
|
|
77
|
+
* `TrinketType.NULL`.)
|
|
78
|
+
*
|
|
79
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
80
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
81
|
+
*/
|
|
82
|
+
export declare function getNumTrinketTypes(): int;
|
|
83
|
+
/**
|
|
84
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
85
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
86
|
+
*/
|
|
87
|
+
export declare function getNumModdedTrinketTypes(): int;
|
|
88
|
+
/**
|
|
89
|
+
* Helper function to get an array that contains every trinket type.
|
|
90
|
+
*
|
|
91
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
92
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
93
|
+
*/
|
|
94
|
+
export declare function getTrinketTypes(): TrinketType[];
|
|
95
|
+
/**
|
|
96
|
+
* Helper function to get an array with every valid card sub-type. This includes modded cards.
|
|
97
|
+
*
|
|
98
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
99
|
+
* all cards will necessarily be present when a mod first loads (due to mod load order).
|
|
100
|
+
*/
|
|
101
|
+
export declare function getAllCards(): Card[];
|
|
102
|
+
/**
|
|
103
|
+
* Returns the first modded card sub-type, or undefined if there are no modded cards.
|
|
104
|
+
*
|
|
105
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
106
|
+
* all cards will necessarily be present when a mod first loads (due to mod load order).
|
|
107
|
+
*/
|
|
108
|
+
export declare function getFirstModdedCard(): Card | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Will change depending on how many modded cards there are.
|
|
111
|
+
*
|
|
112
|
+
* This is equal to the number of cards, since all card sub-types are contiguous (unlike
|
|
113
|
+
* collectibles).
|
|
114
|
+
*
|
|
115
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
116
|
+
* all cards will necessarily be present when a mod first loads (due to mod load order).
|
|
117
|
+
*/
|
|
118
|
+
export declare function getLastCard(): Card;
|
|
119
|
+
/**
|
|
120
|
+
* Helper function to get an array with every modded card sub-type.
|
|
121
|
+
*
|
|
122
|
+
* Returns an empty array if there are no modded cards.
|
|
123
|
+
*
|
|
124
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
125
|
+
* all cards will necessarily be present when a mod first loads (due to mod load order).
|
|
126
|
+
*/
|
|
127
|
+
export declare function getModdedCards(): Card[];
|
|
128
|
+
/**
|
|
129
|
+
* Will change depending on how many modded cards there are.
|
|
130
|
+
*
|
|
131
|
+
* Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
|
|
132
|
+
*
|
|
133
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
134
|
+
* all cards will necessarily be present when a mod first loads (due to mod load order).
|
|
135
|
+
*/
|
|
136
|
+
export declare function getNumCards(): int;
|
|
137
|
+
/**
|
|
138
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
139
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
140
|
+
*/
|
|
141
|
+
export declare function getNumModdedCards(): int;
|
|
142
|
+
/**
|
|
143
|
+
* Helper function to get an array with every valid pill effect. This includes modded pill effects.
|
|
144
|
+
*
|
|
145
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
146
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
147
|
+
*/
|
|
148
|
+
export declare function getAllPillEffects(): PillEffect[];
|
|
149
|
+
/**
|
|
150
|
+
* Returns the first modded pill effect, or undefined if there are no modded pill effects.
|
|
151
|
+
*
|
|
152
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
153
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
154
|
+
*/
|
|
155
|
+
export declare function getFirstModdedPillEffect(): PillEffect | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Will change depending on how many modded pill effects there are.
|
|
158
|
+
*
|
|
159
|
+
* This is equal to the number of pill effects, since all pill effects are contiguous (unlike
|
|
160
|
+
* collectibles).
|
|
161
|
+
*
|
|
162
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
163
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
164
|
+
*/
|
|
165
|
+
export declare function getLastPillEffect(): PillEffect;
|
|
166
|
+
/**
|
|
167
|
+
* Helper function to get an array with every modded pill effect.
|
|
168
|
+
*
|
|
169
|
+
* Returns an empty array if there are no modded pill effects.
|
|
170
|
+
*
|
|
171
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
172
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
173
|
+
*/
|
|
174
|
+
export declare function getModdedPillEffects(): PillEffect[];
|
|
175
|
+
/**
|
|
176
|
+
* Will change depending on how many modded pill effects there are.
|
|
177
|
+
*
|
|
178
|
+
* Equal to `itemConfig.GetPillEffects().Size`. (We do not have to subtract one, because the first
|
|
179
|
+
* pill effect has an ID of 0 and there is no `PillEffect.NULL`.)
|
|
180
|
+
*
|
|
181
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
182
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
183
|
+
*/
|
|
184
|
+
export declare function getNumPillEffects(): int;
|
|
185
|
+
/**
|
|
186
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
187
|
+
* all pill effects will necessarily be present when a mod first loads (due to mod load order).
|
|
188
|
+
*/
|
|
189
|
+
export declare function getNumModdedPillEffects(): int;
|
|
190
|
+
//# sourceMappingURL=firstLast.d.ts.map
|