isaacscript-common 7.18.0 → 8.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.
- 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.d.ts +12 -0
- package/dist/functions/players.d.ts.map +1 -1
- package/dist/functions/players.lua +52 -9
- package/dist/functions/random.d.ts.map +1 -1
- package/dist/functions/random.lua +2 -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 +259 -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 +41 -0
- package/src/functions/random.ts +3 -0
- 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
|
@@ -4,6 +4,9 @@ import { TrinketType } from "isaac-typescript-definitions";
|
|
|
4
4
|
*
|
|
5
5
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
6
6
|
* use the `getTrinketSet` helper function instead.
|
|
7
|
+
*
|
|
8
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
9
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
7
10
|
*/
|
|
8
11
|
export declare function getModdedTrinketArray(): readonly TrinketType[];
|
|
9
12
|
/**
|
|
@@ -11,6 +14,9 @@ export declare function getModdedTrinketArray(): readonly TrinketType[];
|
|
|
11
14
|
*
|
|
12
15
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
13
16
|
* use the `getTrinketArray` helper function instead.
|
|
17
|
+
*
|
|
18
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
19
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
14
20
|
*/
|
|
15
21
|
export declare function getModdedTrinketSet(): ReadonlySet<TrinketType>;
|
|
16
22
|
/**
|
|
@@ -18,6 +24,9 @@ export declare function getModdedTrinketSet(): ReadonlySet<TrinketType>;
|
|
|
18
24
|
*
|
|
19
25
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
20
26
|
* use the `getModdedTrinketSet` helper function instead.
|
|
27
|
+
*
|
|
28
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
29
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
21
30
|
*/
|
|
22
31
|
export declare function getTrinketArray(): readonly TrinketType[];
|
|
23
32
|
/**
|
|
@@ -25,6 +34,9 @@ export declare function getTrinketArray(): readonly TrinketType[];
|
|
|
25
34
|
*
|
|
26
35
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
27
36
|
* use the `getModdedTrinketArray` helper function instead.
|
|
37
|
+
*
|
|
38
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
39
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
28
40
|
*/
|
|
29
41
|
export declare function getTrinketSet(): ReadonlySet<TrinketType>;
|
|
30
42
|
/**
|
|
@@ -32,6 +44,9 @@ export declare function getTrinketSet(): ReadonlySet<TrinketType>;
|
|
|
32
44
|
*
|
|
33
45
|
* Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
34
46
|
* use the `getVanillaTrinketSet` helper function instead.
|
|
47
|
+
*
|
|
48
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
49
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
35
50
|
*/
|
|
36
51
|
export declare function getVanillaTrinketArray(): readonly TrinketType[];
|
|
37
52
|
/**
|
|
@@ -39,6 +54,9 @@ export declare function getVanillaTrinketArray(): readonly TrinketType[];
|
|
|
39
54
|
*
|
|
40
55
|
* Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
41
56
|
* use the `getVanillaTrinketArray` helper function instead.
|
|
57
|
+
*
|
|
58
|
+
* This function can only be called if at least one callback has been executed. This is because not
|
|
59
|
+
* all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
42
60
|
*/
|
|
43
61
|
export declare function getVanillaTrinketSet(): ReadonlySet<TrinketType>;
|
|
44
62
|
//# sourceMappingURL=trinketSet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinketSet.d.ts","sourceRoot":"","sources":["../../src/functions/trinketSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"trinketSet.d.ts","sourceRoot":"","sources":["../../src/functions/trinketSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAyD3D;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,SAAS,WAAW,EAAE,CAG9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,WAAW,CAAC,WAAW,CAAC,CAG9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,SAAS,WAAW,EAAE,CAGxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,WAAW,CAAC,WAAW,CAAC,CAGxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,IAAI,SAAS,WAAW,EAAE,CAG/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CAAC,WAAW,CAAC,CAG/D"}
|
|
@@ -7,8 +7,9 @@ local ____cachedClasses = require("core.cachedClasses")
|
|
|
7
7
|
local itemConfig = ____cachedClasses.itemConfig
|
|
8
8
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
9
9
|
local FIRST_TRINKET_TYPE = ____constantsFirstLast.FIRST_TRINKET_TYPE
|
|
10
|
-
local LAST_TRINKET_TYPE = ____constantsFirstLast.LAST_TRINKET_TYPE
|
|
11
10
|
local LAST_VANILLA_TRINKET_TYPE = ____constantsFirstLast.LAST_VANILLA_TRINKET_TYPE
|
|
11
|
+
local ____firstLast = require("features.firstLast")
|
|
12
|
+
local getLastTrinketType = ____firstLast.getLastTrinketType
|
|
12
13
|
local ____utils = require("functions.utils")
|
|
13
14
|
local irange = ____utils.irange
|
|
14
15
|
local ALL_TRINKETS_ARRAY = {}
|
|
@@ -17,11 +18,12 @@ local MODDED_TRINKETS_ARRAY = {}
|
|
|
17
18
|
local ALL_TRINKETS_SET = __TS__New(Set)
|
|
18
19
|
local VANILLA_TRINKETS_SET = __TS__New(Set)
|
|
19
20
|
local MODDED_TRINKETS_SET = __TS__New(Set)
|
|
20
|
-
local function
|
|
21
|
+
local function lazyInitTrinketArraysAndSets(self)
|
|
21
22
|
if #ALL_TRINKETS_ARRAY ~= 0 then
|
|
22
23
|
return
|
|
23
24
|
end
|
|
24
|
-
local
|
|
25
|
+
local lastTrinketType = getLastTrinketType(nil)
|
|
26
|
+
local trinketTypeRange = irange(nil, FIRST_TRINKET_TYPE, lastTrinketType)
|
|
25
27
|
for ____, trinketType in ipairs(trinketTypeRange) do
|
|
26
28
|
do
|
|
27
29
|
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
@@ -54,48 +56,66 @@ end
|
|
|
54
56
|
--
|
|
55
57
|
-- Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
56
58
|
-- use the `getTrinketSet` helper function instead.
|
|
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).
|
|
57
62
|
function ____exports.getModdedTrinketArray(self)
|
|
58
|
-
|
|
63
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
59
64
|
return MODDED_TRINKETS_ARRAY
|
|
60
65
|
end
|
|
61
66
|
--- Returns a set containing every valid trinket type in the game, including modded trinkets.
|
|
62
67
|
--
|
|
63
68
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
64
69
|
-- use the `getTrinketArray` helper function instead.
|
|
70
|
+
--
|
|
71
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
72
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
65
73
|
function ____exports.getModdedTrinketSet(self)
|
|
66
|
-
|
|
74
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
67
75
|
return MODDED_TRINKETS_SET
|
|
68
76
|
end
|
|
69
77
|
--- Returns an array containing every modded trinket type in the game.
|
|
70
78
|
--
|
|
71
79
|
-- Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
72
80
|
-- use the `getModdedTrinketSet` helper function instead.
|
|
81
|
+
--
|
|
82
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
83
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
73
84
|
function ____exports.getTrinketArray(self)
|
|
74
|
-
|
|
85
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
75
86
|
return ALL_TRINKETS_ARRAY
|
|
76
87
|
end
|
|
77
88
|
--- Returns a set containing every modded trinket type in the game.
|
|
78
89
|
--
|
|
79
90
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
80
91
|
-- use the `getModdedTrinketArray` helper function instead.
|
|
92
|
+
--
|
|
93
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
94
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
81
95
|
function ____exports.getTrinketSet(self)
|
|
82
|
-
|
|
96
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
83
97
|
return ALL_TRINKETS_SET
|
|
84
98
|
end
|
|
85
99
|
--- Returns an array containing every valid vanilla trinket type in the game.
|
|
86
100
|
--
|
|
87
101
|
-- Use this if you need to iterate over the trinkets in order. If you need to do O(1) lookups, then
|
|
88
102
|
-- use the `getVanillaTrinketSet` helper function instead.
|
|
103
|
+
--
|
|
104
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
105
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
89
106
|
function ____exports.getVanillaTrinketArray(self)
|
|
90
|
-
|
|
107
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
91
108
|
return VANILLA_TRINKETS_ARRAY
|
|
92
109
|
end
|
|
93
110
|
--- Returns a set containing every valid vanilla trinket type in the game.
|
|
94
111
|
--
|
|
95
112
|
-- Use this if you need to do O(1) lookups. If you need to iterate over the trinkets in order, then
|
|
96
113
|
-- use the `getVanillaTrinketArray` helper function instead.
|
|
114
|
+
--
|
|
115
|
+
-- This function can only be called if at least one callback has been executed. This is because not
|
|
116
|
+
-- all trinkets will necessarily be present when a mod first loads (due to mod load order).
|
|
97
117
|
function ____exports.getVanillaTrinketSet(self)
|
|
98
|
-
|
|
118
|
+
lazyInitTrinketArraysAndSets(nil)
|
|
99
119
|
return VANILLA_TRINKETS_SET
|
|
100
120
|
end
|
|
101
121
|
return ____exports
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
/**
|
|
3
3
|
* Helper function to get the corresponding golden trinket type from a normal trinket type.
|
|
4
4
|
*
|
|
@@ -6,12 +6,6 @@ import { CacheFlag, TrinketType } from "isaac-typescript-definitions";
|
|
|
6
6
|
* corresponds to the golden trinket sub-type for Swallowed Penny.
|
|
7
7
|
*/
|
|
8
8
|
export declare function getGoldenTrinketType(trinketType: TrinketType): TrinketType;
|
|
9
|
-
/**
|
|
10
|
-
* Helper function to get an array that represents every modded trinket type.
|
|
11
|
-
*
|
|
12
|
-
* Returns an empty array if there are no modded trinket types.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getModdedTrinketTypes(): TrinketType[];
|
|
15
9
|
/**
|
|
16
10
|
* Returns the slot number corresponding to where a trinket can be safely inserted.
|
|
17
11
|
*
|
|
@@ -44,8 +38,6 @@ export declare function getTrinketDescription(trinketType: TrinketType): string;
|
|
|
44
38
|
* ```
|
|
45
39
|
*/
|
|
46
40
|
export declare function getTrinketName(trinketType: TrinketType): string;
|
|
47
|
-
/** Helper function to get an array that contains every trinket type. */
|
|
48
|
-
export declare function getTrinketTypes(): TrinketType[];
|
|
49
41
|
/** Helper function to get an array that represents every vanilla trinket type. */
|
|
50
42
|
export declare function getVanillaTrinketTypes(): TrinketType[];
|
|
51
43
|
/**
|
|
@@ -70,5 +62,4 @@ export declare function isGoldenTrinket(trinketType: TrinketType): boolean;
|
|
|
70
62
|
* taken by the player.
|
|
71
63
|
*/
|
|
72
64
|
export declare function setTrinketSprite(trinket: EntityPickup, pngPath: string | undefined): void;
|
|
73
|
-
export declare function trinketHasCacheFlag(trinketType: TrinketType, cacheFlag: CacheFlag): boolean;
|
|
74
65
|
//# sourceMappingURL=trinkets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinkets.d.ts","sourceRoot":"","sources":["../../src/functions/trinkets.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"trinkets.d.ts","sourceRoot":"","sources":["../../src/functions/trinkets.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AA6BtC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAE1E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,GAAG,SAAS,CAkBxE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CActE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAc/D;AAED,kFAAkF;AAClF,wBAAgB,sBAAsB,IAAI,WAAW,EAAE,CAEtD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAOhE;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAeN"}
|
|
@@ -6,9 +6,7 @@ local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
|
|
|
6
6
|
local ____cachedClasses = require("core.cachedClasses")
|
|
7
7
|
local itemConfig = ____cachedClasses.itemConfig
|
|
8
8
|
local ____constantsFirstLast = require("core.constantsFirstLast")
|
|
9
|
-
local FIRST_MODDED_TRINKET_TYPE = ____constantsFirstLast.FIRST_MODDED_TRINKET_TYPE
|
|
10
9
|
local FIRST_TRINKET_TYPE = ____constantsFirstLast.FIRST_TRINKET_TYPE
|
|
11
|
-
local LAST_TRINKET_TYPE = ____constantsFirstLast.LAST_TRINKET_TYPE
|
|
12
10
|
local LAST_VANILLA_TRINKET_TYPE = ____constantsFirstLast.LAST_VANILLA_TRINKET_TYPE
|
|
13
11
|
local ____trinketDescriptionMap = require("maps.trinketDescriptionMap")
|
|
14
12
|
local DEFAULT_TRINKET_DESCRIPTION = ____trinketDescriptionMap.DEFAULT_TRINKET_DESCRIPTION
|
|
@@ -18,8 +16,6 @@ local DEFAULT_TRINKET_NAME = ____trinketNameMap.DEFAULT_TRINKET_NAME
|
|
|
18
16
|
local TRINKET_NAME_MAP = ____trinketNameMap.TRINKET_NAME_MAP
|
|
19
17
|
local ____entities = require("functions.entities")
|
|
20
18
|
local getEntityID = ____entities.getEntityID
|
|
21
|
-
local ____flag = require("functions.flag")
|
|
22
|
-
local hasFlag = ____flag.hasFlag
|
|
23
19
|
local ____pickupVariants = require("functions.pickupVariants")
|
|
24
20
|
local isTrinket = ____pickupVariants.isTrinket
|
|
25
21
|
local ____players = require("functions.players")
|
|
@@ -44,15 +40,6 @@ local TRINKET_SPRITE_LAYER = 0
|
|
|
44
40
|
function ____exports.getGoldenTrinketType(self, trinketType)
|
|
45
41
|
return asNumber(nil, trinketType) + GOLDEN_TRINKET_ADJUSTMENT
|
|
46
42
|
end
|
|
47
|
-
--- Helper function to get an array that represents every modded trinket type.
|
|
48
|
-
--
|
|
49
|
-
-- Returns an empty array if there are no modded trinket types.
|
|
50
|
-
function ____exports.getModdedTrinketTypes(self)
|
|
51
|
-
if LAST_VANILLA_TRINKET_TYPE == LAST_TRINKET_TYPE then
|
|
52
|
-
return {}
|
|
53
|
-
end
|
|
54
|
-
return irange(nil, FIRST_MODDED_TRINKET_TYPE, LAST_TRINKET_TYPE)
|
|
55
|
-
end
|
|
56
43
|
--- Returns the slot number corresponding to where a trinket can be safely inserted.
|
|
57
44
|
--
|
|
58
45
|
-- For example:
|
|
@@ -113,10 +100,6 @@ function ____exports.getTrinketName(self, trinketType)
|
|
|
113
100
|
end
|
|
114
101
|
return DEFAULT_TRINKET_NAME
|
|
115
102
|
end
|
|
116
|
-
--- Helper function to get an array that contains every trinket type.
|
|
117
|
-
function ____exports.getTrinketTypes(self)
|
|
118
|
-
return irange(nil, FIRST_TRINKET_TYPE, LAST_TRINKET_TYPE)
|
|
119
|
-
end
|
|
120
103
|
--- Helper function to get an array that represents every vanilla trinket type.
|
|
121
104
|
function ____exports.getVanillaTrinketTypes(self)
|
|
122
105
|
return irange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
|
|
@@ -159,11 +142,4 @@ function ____exports.setTrinketSprite(self, trinket, pngPath)
|
|
|
159
142
|
sprite:LoadGraphics()
|
|
160
143
|
end
|
|
161
144
|
end
|
|
162
|
-
function ____exports.trinketHasCacheFlag(self, trinketType, cacheFlag)
|
|
163
|
-
local itemConfigItem = itemConfig:GetTrinket(trinketType)
|
|
164
|
-
if itemConfigItem == nil then
|
|
165
|
-
return false
|
|
166
|
-
end
|
|
167
|
-
return hasFlag(nil, itemConfigItem.CacheFlags, cacheFlag)
|
|
168
|
-
end
|
|
169
145
|
return ____exports
|