isaacscript-common 46.0.0 → 47.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/index.rollup.d.ts +109 -19
- package/dist/isaacscript-common.lua +202 -16
- package/dist/src/functions/cards.d.ts +4 -1
- package/dist/src/functions/cards.d.ts.map +1 -1
- package/dist/src/functions/cards.lua +4 -1
- package/dist/src/functions/collectibles.d.ts +2 -2
- package/dist/src/functions/collectibles.lua +2 -2
- package/dist/src/functions/pickups.d.ts +64 -1
- package/dist/src/functions/pickups.d.ts.map +1 -1
- package/dist/src/functions/pickups.lua +84 -0
- package/dist/src/functions/pills.d.ts +4 -1
- package/dist/src/functions/pills.d.ts.map +1 -1
- package/dist/src/functions/pills.lua +4 -1
- package/dist/src/functions/stage.d.ts +12 -12
- package/dist/src/functions/stage.d.ts.map +1 -1
- package/dist/src/functions/stage.lua +21 -21
- package/dist/src/functions/trinkets.d.ts +2 -2
- package/dist/src/functions/trinkets.lua +2 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +16 -0
- package/dist/src/objects/batteryNames.d.ts +10 -0
- package/dist/src/objects/batteryNames.d.ts.map +1 -0
- package/dist/src/objects/batteryNames.lua +13 -0
- package/dist/src/objects/bombNames.d.ts +13 -0
- package/dist/src/objects/bombNames.d.ts.map +1 -0
- package/dist/src/objects/bombNames.lua +16 -0
- package/dist/src/objects/chestNames.d.ts +16 -0
- package/dist/src/objects/chestNames.d.ts.map +1 -0
- package/dist/src/objects/chestNames.lua +19 -0
- package/dist/src/objects/coinNames.d.ts +13 -0
- package/dist/src/objects/coinNames.d.ts.map +1 -0
- package/dist/src/objects/coinNames.lua +16 -0
- package/dist/src/objects/heartNames.d.ts +18 -0
- package/dist/src/objects/heartNames.d.ts.map +1 -0
- package/dist/src/objects/heartNames.lua +21 -0
- package/dist/src/objects/keyNames.d.ts +10 -0
- package/dist/src/objects/keyNames.d.ts.map +1 -0
- package/dist/src/objects/keyNames.lua +13 -0
- package/dist/src/objects/{englishLevelNames.d.ts → levelNames.d.ts} +2 -2
- package/dist/src/objects/levelNames.d.ts.map +1 -0
- package/dist/src/objects/{englishLevelNames.lua → levelNames.lua} +1 -1
- package/dist/src/objects/sackNames.d.ts +8 -0
- package/dist/src/objects/sackNames.d.ts.map +1 -0
- package/dist/src/objects/sackNames.lua +7 -0
- package/package.json +1 -1
- package/src/functions/cards.ts +4 -1
- package/src/functions/collectibles.ts +2 -2
- package/src/functions/pickups.ts +108 -0
- package/src/functions/pills.ts +4 -1
- package/src/functions/stage.ts +26 -26
- package/src/functions/trinkets.ts +2 -2
- package/src/index.ts +2 -0
- package/src/objects/batteryNames.ts +12 -0
- package/src/objects/bombNames.ts +16 -0
- package/src/objects/cardNames.ts +98 -98
- package/src/objects/chestNames.ts +18 -0
- package/src/objects/coinNames.ts +15 -0
- package/src/objects/heartNames.ts +20 -0
- package/src/objects/keyNames.ts +12 -0
- package/src/objects/languageNames.ts +7 -7
- package/src/objects/{englishLevelNames.ts → levelNames.ts} +26 -1
- package/src/objects/pillEffectNames.ts +50 -50
- package/src/objects/pillEffectTypes.ts +50 -50
- package/src/objects/sackNames.ts +10 -0
- package/dist/src/objects/englishLevelNames.d.ts.map +0 -1
|
@@ -1,11 +1,74 @@
|
|
|
1
|
-
import type { CoinSubType, HeartSubType, PickupVariant } from "isaac-typescript-definitions";
|
|
1
|
+
import type { BatterySubType, BombSubType, CoinSubType, HeartSubType, KeySubType, PickupVariant, SackSubType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
|
|
4
|
+
* "Unknown" if the provided battery sub-type is not valid.
|
|
5
|
+
*
|
|
6
|
+
* This function only works for vanilla battery types.
|
|
7
|
+
*
|
|
8
|
+
* For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
|
|
9
|
+
*/
|
|
10
|
+
export declare function getBatteryName(batterySubType: BatterySubType): string;
|
|
11
|
+
/**
|
|
12
|
+
* Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
|
|
13
|
+
* "Unknown" if the provided bomb sub-type is not valid.
|
|
14
|
+
*
|
|
15
|
+
* This function only works for vanilla bomb types.
|
|
16
|
+
*
|
|
17
|
+
* For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
|
|
18
|
+
*/
|
|
19
|
+
export declare function getBombName(bombSubType: BombSubType): string;
|
|
20
|
+
/**
|
|
21
|
+
* Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
|
|
22
|
+
* "Unknown" if the pickup variant was not a chest.
|
|
23
|
+
*
|
|
24
|
+
* This function only works for vanilla chest types.
|
|
25
|
+
*
|
|
26
|
+
* For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
|
|
27
|
+
*/
|
|
28
|
+
export declare function getChestName(pickupVariant: PickupVariant): string;
|
|
29
|
+
/**
|
|
30
|
+
* Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
|
|
31
|
+
* "Unknown" if the provided coin sub-type is not valid.
|
|
32
|
+
*
|
|
33
|
+
* This function only works for vanilla chest types.
|
|
34
|
+
*
|
|
35
|
+
* For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
|
|
36
|
+
*/
|
|
37
|
+
export declare function getCoinName(coinSubType: CoinSubType): string;
|
|
2
38
|
/**
|
|
3
39
|
* Helper function to get the corresponding coin amount from a `CoinSubType`. Returns 1 for modded
|
|
4
40
|
* sub-types.
|
|
5
41
|
*/
|
|
6
42
|
export declare function getCoinValue(coinSubType: CoinSubType): int;
|
|
43
|
+
/**
|
|
44
|
+
* Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
|
|
45
|
+
* "Unknown" if the provided heart sub-type is not valid.
|
|
46
|
+
*
|
|
47
|
+
* This function only works for vanilla heart types.
|
|
48
|
+
*
|
|
49
|
+
* For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
|
|
50
|
+
*/
|
|
51
|
+
export declare function getHeartName(heartSubType: HeartSubType): string;
|
|
52
|
+
/**
|
|
53
|
+
* Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
|
|
54
|
+
* "Unknown" if the provided key sub-type is not valid.
|
|
55
|
+
*
|
|
56
|
+
* This function only works for vanilla key types.
|
|
57
|
+
*
|
|
58
|
+
* For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
|
|
59
|
+
*/
|
|
60
|
+
export declare function getKeyName(keySubType: KeySubType): string;
|
|
7
61
|
/** Helper function to get all of the red heart pickup entities in the room. */
|
|
8
62
|
export declare function getRedHearts(): EntityPickupHeart[];
|
|
63
|
+
/**
|
|
64
|
+
* Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
|
|
65
|
+
* "Unknown" if the provided sack sub-type is not valid.
|
|
66
|
+
*
|
|
67
|
+
* This function only works for vanilla sack types.
|
|
68
|
+
*
|
|
69
|
+
* For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
|
|
70
|
+
*/
|
|
71
|
+
export declare function getSackName(sackSubType: SackSubType): string;
|
|
9
72
|
/** Helper function to test if the provided pickup matches one of the various chest variants. */
|
|
10
73
|
export declare function isChest(pickup: EntityPickup): boolean;
|
|
11
74
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickups.d.ts","sourceRoot":"","sources":["../../../src/functions/pickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,aAAa,
|
|
1
|
+
{"version":3,"file":"pickups.d.ts","sourceRoot":"","sources":["../../../src/functions/pickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAkBtC;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAIrE;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAI5D;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAGjE;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAI5D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,GAAG,CAK1D;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAI/D;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAIzD;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,IAAI,iBAAiB,EAAE,CAGlD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAI5D;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAEpE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAExD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,iBAAiB,EAAE,CAGjE"}
|
|
@@ -3,9 +3,29 @@ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local ____constants = require("src.core.constants")
|
|
5
5
|
local CHEST_PICKUP_VARIANTS_SET = ____constants.CHEST_PICKUP_VARIANTS_SET
|
|
6
|
+
local ____batteryNames = require("src.objects.batteryNames")
|
|
7
|
+
local BATTERY_NAMES = ____batteryNames.BATTERY_NAMES
|
|
8
|
+
local DEFAULT_BATTERY_NAME = ____batteryNames.DEFAULT_BATTERY_NAME
|
|
9
|
+
local ____bombNames = require("src.objects.bombNames")
|
|
10
|
+
local BOMB_NAMES = ____bombNames.BOMB_NAMES
|
|
11
|
+
local DEFAULT_BOMB_NAME = ____bombNames.DEFAULT_BOMB_NAME
|
|
12
|
+
local ____chestNames = require("src.objects.chestNames")
|
|
13
|
+
local CHEST_NAMES = ____chestNames.CHEST_NAMES
|
|
14
|
+
local ____coinNames = require("src.objects.coinNames")
|
|
15
|
+
local COIN_NAMES = ____coinNames.COIN_NAMES
|
|
16
|
+
local DEFAULT_COIN_NAME = ____coinNames.DEFAULT_COIN_NAME
|
|
6
17
|
local ____coinSubTypeToValue = require("src.objects.coinSubTypeToValue")
|
|
7
18
|
local COIN_SUB_TYPE_TO_VALUE = ____coinSubTypeToValue.COIN_SUB_TYPE_TO_VALUE
|
|
8
19
|
local DEFAULT_COIN_VALUE = ____coinSubTypeToValue.DEFAULT_COIN_VALUE
|
|
20
|
+
local ____heartNames = require("src.objects.heartNames")
|
|
21
|
+
local DEFAULT_HEART_NAME = ____heartNames.DEFAULT_HEART_NAME
|
|
22
|
+
local HEART_NAMES = ____heartNames.HEART_NAMES
|
|
23
|
+
local ____keyNames = require("src.objects.keyNames")
|
|
24
|
+
local DEFAULT_KEY_NAME = ____keyNames.DEFAULT_KEY_NAME
|
|
25
|
+
local KEY_NAMES = ____keyNames.KEY_NAMES
|
|
26
|
+
local ____sackNames = require("src.objects.sackNames")
|
|
27
|
+
local DEFAULT_SACK_NAME = ____sackNames.DEFAULT_SACK_NAME
|
|
28
|
+
local SACK_NAMES = ____sackNames.SACK_NAMES
|
|
9
29
|
local ____redHeartSubTypesSet = require("src.sets.redHeartSubTypesSet")
|
|
10
30
|
local RED_HEART_SUB_TYPES_SET = ____redHeartSubTypesSet.RED_HEART_SUB_TYPES_SET
|
|
11
31
|
local ____entities = require("src.functions.entities")
|
|
@@ -18,12 +38,67 @@ local getHearts = ____pickupsSpecific.getHearts
|
|
|
18
38
|
function ____exports.isChestVariant(self, pickupVariant)
|
|
19
39
|
return CHEST_PICKUP_VARIANTS_SET:has(pickupVariant)
|
|
20
40
|
end
|
|
41
|
+
--- Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
|
|
42
|
+
-- "Unknown" if the provided battery sub-type is not valid.
|
|
43
|
+
--
|
|
44
|
+
-- This function only works for vanilla battery types.
|
|
45
|
+
--
|
|
46
|
+
-- For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
|
|
47
|
+
function ____exports.getBatteryName(self, batterySubType)
|
|
48
|
+
return BATTERY_NAMES[batterySubType] or DEFAULT_BATTERY_NAME
|
|
49
|
+
end
|
|
50
|
+
--- Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
|
|
51
|
+
-- "Unknown" if the provided bomb sub-type is not valid.
|
|
52
|
+
--
|
|
53
|
+
-- This function only works for vanilla bomb types.
|
|
54
|
+
--
|
|
55
|
+
-- For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
|
|
56
|
+
function ____exports.getBombName(self, bombSubType)
|
|
57
|
+
return BOMB_NAMES[bombSubType] or DEFAULT_BOMB_NAME
|
|
58
|
+
end
|
|
59
|
+
--- Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
|
|
60
|
+
-- "Unknown" if the pickup variant was not a chest.
|
|
61
|
+
--
|
|
62
|
+
-- This function only works for vanilla chest types.
|
|
63
|
+
--
|
|
64
|
+
-- For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
|
|
65
|
+
function ____exports.getChestName(self, pickupVariant)
|
|
66
|
+
local chestNames = CHEST_NAMES
|
|
67
|
+
return chestNames[pickupVariant] or "Unknown"
|
|
68
|
+
end
|
|
69
|
+
--- Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
|
|
70
|
+
-- "Unknown" if the provided coin sub-type is not valid.
|
|
71
|
+
--
|
|
72
|
+
-- This function only works for vanilla chest types.
|
|
73
|
+
--
|
|
74
|
+
-- For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
|
|
75
|
+
function ____exports.getCoinName(self, coinSubType)
|
|
76
|
+
return COIN_NAMES[coinSubType] or DEFAULT_COIN_NAME
|
|
77
|
+
end
|
|
21
78
|
--- Helper function to get the corresponding coin amount from a `CoinSubType`. Returns 1 for modded
|
|
22
79
|
-- sub-types.
|
|
23
80
|
function ____exports.getCoinValue(self, coinSubType)
|
|
24
81
|
local value = COIN_SUB_TYPE_TO_VALUE[coinSubType]
|
|
25
82
|
return value or DEFAULT_COIN_VALUE
|
|
26
83
|
end
|
|
84
|
+
--- Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
|
|
85
|
+
-- "Unknown" if the provided heart sub-type is not valid.
|
|
86
|
+
--
|
|
87
|
+
-- This function only works for vanilla heart types.
|
|
88
|
+
--
|
|
89
|
+
-- For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
|
|
90
|
+
function ____exports.getHeartName(self, heartSubType)
|
|
91
|
+
return HEART_NAMES[heartSubType] or DEFAULT_HEART_NAME
|
|
92
|
+
end
|
|
93
|
+
--- Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
|
|
94
|
+
-- "Unknown" if the provided key sub-type is not valid.
|
|
95
|
+
--
|
|
96
|
+
-- This function only works for vanilla key types.
|
|
97
|
+
--
|
|
98
|
+
-- For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
|
|
99
|
+
function ____exports.getKeyName(self, keySubType)
|
|
100
|
+
return KEY_NAMES[keySubType] or DEFAULT_KEY_NAME
|
|
101
|
+
end
|
|
27
102
|
--- Helper function to get all of the red heart pickup entities in the room.
|
|
28
103
|
function ____exports.getRedHearts(self)
|
|
29
104
|
local hearts = getHearts(nil)
|
|
@@ -32,6 +107,15 @@ function ____exports.getRedHearts(self)
|
|
|
32
107
|
function(____, heart) return RED_HEART_SUB_TYPES_SET:has(heart.SubType) end
|
|
33
108
|
)
|
|
34
109
|
end
|
|
110
|
+
--- Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
|
|
111
|
+
-- "Unknown" if the provided sack sub-type is not valid.
|
|
112
|
+
--
|
|
113
|
+
-- This function only works for vanilla sack types.
|
|
114
|
+
--
|
|
115
|
+
-- For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
|
|
116
|
+
function ____exports.getSackName(self, sackSubType)
|
|
117
|
+
return SACK_NAMES[sackSubType] or DEFAULT_SACK_NAME
|
|
118
|
+
end
|
|
35
119
|
--- Helper function to test if the provided pickup matches one of the various chest variants.
|
|
36
120
|
function ____exports.isChest(self, pickup)
|
|
37
121
|
return ____exports.isChestVariant(nil, pickup.Variant)
|
|
@@ -60,7 +60,10 @@ export declare function getPillColorFromEffect(pillEffect: PillEffect): PillColo
|
|
|
60
60
|
*/
|
|
61
61
|
export declare function getPillEffectClass(pillEffect: PillEffect): ItemConfigPillEffectClass;
|
|
62
62
|
/**
|
|
63
|
-
* Helper function to get a pill effect name from a PillEffect
|
|
63
|
+
* Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
|
|
64
|
+
* pill effect is not valid.
|
|
65
|
+
*
|
|
66
|
+
* This function works for both vanilla and modded pill effects.
|
|
64
67
|
*
|
|
65
68
|
* For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
|
|
66
69
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../../src/functions/pills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAoCzD;;;GAGG;A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,GAAG,SAAS,CAM3E;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,IAAI,SAAS,EAAE,CAEjD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGnE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,GACrB,yBAAyB,CAQ3B;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAgBhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,GACrB,wBAAwB,CAQ1B;AAED,iGAAiG;AACjG,wBAAgB,UAAU,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAExD;AAED,sEAAsE;AACtE,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAElE;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAEnE"}
|
|
@@ -119,7 +119,10 @@ function ____exports.getPillEffectClass(self, pillEffect)
|
|
|
119
119
|
local pillEffectClass = PILL_EFFECT_CLASSES[pillEffect]
|
|
120
120
|
return pillEffectClass or DEFAULT_PILL_EFFECT_CLASS
|
|
121
121
|
end
|
|
122
|
-
--- Helper function to get a pill effect name from a PillEffect
|
|
122
|
+
--- Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
|
|
123
|
+
-- pill effect is not valid.
|
|
124
|
+
--
|
|
125
|
+
-- This function works for both vanilla and modded pill effects.
|
|
123
126
|
--
|
|
124
127
|
-- For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
|
|
125
128
|
function ____exports.getPillEffectName(self, pillEffect)
|
|
@@ -16,18 +16,6 @@ export declare function calculateStageTypeRepentance(stage: LevelStage): StageTy
|
|
|
16
16
|
* consider Downpour 2 to have a stage of 3.
|
|
17
17
|
*/
|
|
18
18
|
export declare function getEffectiveStage(): LevelStage;
|
|
19
|
-
/**
|
|
20
|
-
* Helper function to get the English name of the level. For example, "Caves 1".
|
|
21
|
-
*
|
|
22
|
-
* This is useful because the `Level.GetName` method returns a localized version of the level name,
|
|
23
|
-
* which will not display correctly on some fonts.
|
|
24
|
-
*
|
|
25
|
-
* Note that this returns "Blue Womb" instead of "???" for stage 9.
|
|
26
|
-
*
|
|
27
|
-
* @param stage Optional. If not specified, the current stage will be used.
|
|
28
|
-
* @param stageType Optional. If not specified, the current stage type will be used.
|
|
29
|
-
*/
|
|
30
|
-
export declare function getEnglishLevelName(stage?: LevelStage, stageType?: StageType): string;
|
|
31
19
|
/**
|
|
32
20
|
* Helper function to get the corresponding "goto" console command that would correspond to the
|
|
33
21
|
* provided room type and room variant.
|
|
@@ -39,6 +27,18 @@ export declare function getEnglishLevelName(stage?: LevelStage, stageType?: Stag
|
|
|
39
27
|
* `RoomType.DEFAULT` (1). False by default.
|
|
40
28
|
*/
|
|
41
29
|
export declare function getGotoCommand(roomType: RoomType, roomVariant: int, useSpecialRoomsForRoomTypeDefault?: boolean): string;
|
|
30
|
+
/**
|
|
31
|
+
* Helper function to get the English name of the level. For example, "Caves 1".
|
|
32
|
+
*
|
|
33
|
+
* This is useful because the `Level.GetName` method returns a localized version of the level name,
|
|
34
|
+
* which will not display correctly on some fonts.
|
|
35
|
+
*
|
|
36
|
+
* Note that this returns "Blue Womb" instead of "???" for stage 9.
|
|
37
|
+
*
|
|
38
|
+
* @param stage Optional. If not specified, the current stage will be used.
|
|
39
|
+
* @param stageType Optional. If not specified, the current stage type will be used.
|
|
40
|
+
*/
|
|
41
|
+
export declare function getLevelName(stage?: LevelStage, stageType?: StageType): string;
|
|
42
42
|
/** Alias for the `Level.GetStage` method. */
|
|
43
43
|
export declare function getStage(): LevelStage;
|
|
44
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/functions/stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CA6B/D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAmBzE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,UAAU,CAS9C;AAED
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/functions/stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CA6B/D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAmBzE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,UAAU,CAS9C;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,GAAG,EAChB,iCAAiC,UAAQ,GACxC,MAAM,CAOR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAC1B,KAAK,CAAC,EAAE,UAAU,EAClB,SAAS,CAAC,EAAE,SAAS,GACpB,MAAM,CAaR;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,UAA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SAAS,GAAG,MAAM,CAE9D"}
|
|
@@ -8,8 +8,8 @@ local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
|
8
8
|
local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
|
|
9
9
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
10
10
|
local game = ____cachedClasses.game
|
|
11
|
-
local
|
|
12
|
-
local
|
|
11
|
+
local ____levelNames = require("src.objects.levelNames")
|
|
12
|
+
local LEVEL_NAMES = ____levelNames.LEVEL_NAMES
|
|
13
13
|
local ____roomTypeSpecialGotoPrefixes = require("src.objects.roomTypeSpecialGotoPrefixes")
|
|
14
14
|
local ROOM_TYPE_SPECIAL_GOTO_PREFIXES = ____roomTypeSpecialGotoPrefixes.ROOM_TYPE_SPECIAL_GOTO_PREFIXES
|
|
15
15
|
local ____stageToStageID = require("src.objects.stageToStageID")
|
|
@@ -91,6 +91,23 @@ function ____exports.getEffectiveStage(self)
|
|
|
91
91
|
end
|
|
92
92
|
return stage
|
|
93
93
|
end
|
|
94
|
+
--- Helper function to get the corresponding "goto" console command that would correspond to the
|
|
95
|
+
-- provided room type and room variant.
|
|
96
|
+
--
|
|
97
|
+
-- @param roomType The `RoomType` of the destination room.
|
|
98
|
+
-- @param roomVariant The variant of the destination room.
|
|
99
|
+
-- @param useSpecialRoomsForRoomTypeDefault Optional. Whether to use `s.default` as the prefix for
|
|
100
|
+
-- the `goto` command (instead of `d`) if the room type is
|
|
101
|
+
-- `RoomType.DEFAULT` (1). False by default.
|
|
102
|
+
function ____exports.getGotoCommand(self, roomType, roomVariant, useSpecialRoomsForRoomTypeDefault)
|
|
103
|
+
if useSpecialRoomsForRoomTypeDefault == nil then
|
|
104
|
+
useSpecialRoomsForRoomTypeDefault = false
|
|
105
|
+
end
|
|
106
|
+
local isNormalRoom = roomType == RoomType.DEFAULT and not useSpecialRoomsForRoomTypeDefault
|
|
107
|
+
local roomTypeSpecialGotoPrefix = ROOM_TYPE_SPECIAL_GOTO_PREFIXES[roomType]
|
|
108
|
+
local prefix = isNormalRoom and "d" or "s." .. roomTypeSpecialGotoPrefix
|
|
109
|
+
return (("goto " .. prefix) .. ".") .. tostring(roomVariant)
|
|
110
|
+
end
|
|
94
111
|
--- Helper function to get the English name of the level. For example, "Caves 1".
|
|
95
112
|
--
|
|
96
113
|
-- This is useful because the `Level.GetName` method returns a localized version of the level name,
|
|
@@ -100,7 +117,7 @@ end
|
|
|
100
117
|
--
|
|
101
118
|
-- @param stage Optional. If not specified, the current stage will be used.
|
|
102
119
|
-- @param stageType Optional. If not specified, the current stage type will be used.
|
|
103
|
-
function ____exports.
|
|
120
|
+
function ____exports.getLevelName(self, stage, stageType)
|
|
104
121
|
local level = game:GetLevel()
|
|
105
122
|
if stage == nil then
|
|
106
123
|
stage = level:GetStage()
|
|
@@ -108,26 +125,9 @@ function ____exports.getEnglishLevelName(self, stage, stageType)
|
|
|
108
125
|
if stageType == nil then
|
|
109
126
|
stageType = level:GetStageType()
|
|
110
127
|
end
|
|
111
|
-
local stageNames =
|
|
128
|
+
local stageNames = LEVEL_NAMES[stage]
|
|
112
129
|
return stageNames[stageType]
|
|
113
130
|
end
|
|
114
|
-
--- Helper function to get the corresponding "goto" console command that would correspond to the
|
|
115
|
-
-- provided room type and room variant.
|
|
116
|
-
--
|
|
117
|
-
-- @param roomType The `RoomType` of the destination room.
|
|
118
|
-
-- @param roomVariant The variant of the destination room.
|
|
119
|
-
-- @param useSpecialRoomsForRoomTypeDefault Optional. Whether to use `s.default` as the prefix for
|
|
120
|
-
-- the `goto` command (instead of `d`) if the room type is
|
|
121
|
-
-- `RoomType.DEFAULT` (1). False by default.
|
|
122
|
-
function ____exports.getGotoCommand(self, roomType, roomVariant, useSpecialRoomsForRoomTypeDefault)
|
|
123
|
-
if useSpecialRoomsForRoomTypeDefault == nil then
|
|
124
|
-
useSpecialRoomsForRoomTypeDefault = false
|
|
125
|
-
end
|
|
126
|
-
local isNormalRoom = roomType == RoomType.DEFAULT and not useSpecialRoomsForRoomTypeDefault
|
|
127
|
-
local roomTypeSpecialGotoPrefix = ROOM_TYPE_SPECIAL_GOTO_PREFIXES[roomType]
|
|
128
|
-
local prefix = isNormalRoom and "d" or "s." .. roomTypeSpecialGotoPrefix
|
|
129
|
-
return (("goto " .. prefix) .. ".") .. tostring(roomVariant)
|
|
130
|
-
end
|
|
131
131
|
--- Alias for the `Level.GetStage` method.
|
|
132
132
|
function ____exports.getStage(self)
|
|
133
133
|
local level = game:GetLevel()
|
|
@@ -49,9 +49,9 @@ export declare function getTrinketGfxFilename(trinketType: TrinketType): string;
|
|
|
49
49
|
* Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
|
|
50
50
|
* not valid.
|
|
51
51
|
*
|
|
52
|
-
* For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
|
|
53
|
-
*
|
|
54
52
|
* This function works for both vanilla and modded trinkets.
|
|
53
|
+
*
|
|
54
|
+
* For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
|
|
55
55
|
*/
|
|
56
56
|
export declare function getTrinketName(trinketType: TrinketType): string;
|
|
57
57
|
export declare function isGoldenTrinketType(trinketType: TrinketType): boolean;
|
|
@@ -104,9 +104,9 @@ end
|
|
|
104
104
|
--- Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
|
|
105
105
|
-- not valid.
|
|
106
106
|
--
|
|
107
|
-
-- For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
|
|
108
|
-
--
|
|
109
107
|
-- This function works for both vanilla and modded trinkets.
|
|
108
|
+
--
|
|
109
|
+
-- For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
|
|
110
110
|
function ____exports.getTrinketName(self, trinketType)
|
|
111
111
|
local trinketName = TRINKET_TYPE_TO_NAME_MAP:get(trinketType)
|
|
112
112
|
if trinketName ~= nil then
|
package/dist/src/index.d.ts
CHANGED
|
@@ -146,9 +146,11 @@ export * from "./interfaces/TSTLClassMetatable";
|
|
|
146
146
|
export * from "./interfaces/TrinketSituation";
|
|
147
147
|
export * from "./maps/cardNameToTypeMap";
|
|
148
148
|
export * from "./maps/characterNameToTypeMap";
|
|
149
|
+
export * from "./maps/collectibleNameToTypeMap";
|
|
149
150
|
export * from "./maps/pillNameToEffectMap";
|
|
150
151
|
export * from "./maps/roomNameToTypeMap";
|
|
151
152
|
export * from "./maps/transformationNameToPlayerFormMap";
|
|
153
|
+
export * from "./maps/trinketNameToTypeMap";
|
|
152
154
|
export * from "./objects/colors";
|
|
153
155
|
export * from "./objects/kColors";
|
|
154
156
|
export * from "./types/AddSubtract";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,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14 @@ do
|
|
|
1079
1079
|
end
|
|
1080
1080
|
end
|
|
1081
1081
|
end
|
|
1082
|
+
do
|
|
1083
|
+
local ____export = require("src.maps.collectibleNameToTypeMap")
|
|
1084
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1085
|
+
if ____exportKey ~= "default" then
|
|
1086
|
+
____exports[____exportKey] = ____exportValue
|
|
1087
|
+
end
|
|
1088
|
+
end
|
|
1089
|
+
end
|
|
1082
1090
|
do
|
|
1083
1091
|
local ____export = require("src.maps.pillNameToEffectMap")
|
|
1084
1092
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -1103,6 +1111,14 @@ do
|
|
|
1103
1111
|
end
|
|
1104
1112
|
end
|
|
1105
1113
|
end
|
|
1114
|
+
do
|
|
1115
|
+
local ____export = require("src.maps.trinketNameToTypeMap")
|
|
1116
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1117
|
+
if ____exportKey ~= "default" then
|
|
1118
|
+
____exports[____exportKey] = ____exportValue
|
|
1119
|
+
end
|
|
1120
|
+
end
|
|
1121
|
+
end
|
|
1106
1122
|
do
|
|
1107
1123
|
local ____export = require("src.objects.colors")
|
|
1108
1124
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const DEFAULT_BATTERY_NAME = "Unknown";
|
|
2
|
+
/** Taken from "entities2.xml". */
|
|
3
|
+
export declare const BATTERY_NAMES: {
|
|
4
|
+
readonly 0: "Unknown";
|
|
5
|
+
readonly 1: "Lil' Battery";
|
|
6
|
+
readonly 2: "Micro Battery";
|
|
7
|
+
readonly 3: "Mega Battery";
|
|
8
|
+
readonly 4: "Golden Battery";
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=batteryNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batteryNames.d.ts","sourceRoot":"","sources":["../../../src/objects/batteryNames.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAE9C,kCAAkC;AAClC,eAAO,MAAM,aAAa;;;;;;CAMyB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local BatterySubType = ____isaac_2Dtypescript_2Ddefinitions.BatterySubType
|
|
4
|
+
____exports.DEFAULT_BATTERY_NAME = "Unknown"
|
|
5
|
+
--- Taken from "entities2.xml".
|
|
6
|
+
____exports.BATTERY_NAMES = {
|
|
7
|
+
[BatterySubType.NULL] = ____exports.DEFAULT_BATTERY_NAME,
|
|
8
|
+
[BatterySubType.NORMAL] = "Lil' Battery",
|
|
9
|
+
[BatterySubType.MICRO] = "Micro Battery",
|
|
10
|
+
[BatterySubType.MEGA] = "Mega Battery",
|
|
11
|
+
[BatterySubType.GOLDEN] = "Golden Battery"
|
|
12
|
+
}
|
|
13
|
+
return ____exports
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DEFAULT_BOMB_NAME = "Unknown";
|
|
2
|
+
/** Taken from "entities2.xml". */
|
|
3
|
+
export declare const BOMB_NAMES: {
|
|
4
|
+
readonly 0: "Unknown";
|
|
5
|
+
readonly 1: "Bomb";
|
|
6
|
+
readonly 2: "Double Bomb";
|
|
7
|
+
readonly 3: "Troll Bomb";
|
|
8
|
+
readonly 4: "Golden Bomb";
|
|
9
|
+
readonly 5: "Megatroll Bomb";
|
|
10
|
+
readonly 6: "Golden Troll Bomb";
|
|
11
|
+
readonly 7: "Giga Bomb";
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=bombNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bombNames.d.ts","sourceRoot":"","sources":["../../../src/objects/bombNames.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,kCAAkC;AAClC,eAAO,MAAM,UAAU;;;;;;;;;CAUyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local BombSubType = ____isaac_2Dtypescript_2Ddefinitions.BombSubType
|
|
4
|
+
____exports.DEFAULT_BOMB_NAME = "Unknown"
|
|
5
|
+
--- Taken from "entities2.xml".
|
|
6
|
+
____exports.BOMB_NAMES = {
|
|
7
|
+
[BombSubType.NULL] = ____exports.DEFAULT_BOMB_NAME,
|
|
8
|
+
[BombSubType.NORMAL] = "Bomb",
|
|
9
|
+
[BombSubType.DOUBLE_PACK] = "Double Bomb",
|
|
10
|
+
[BombSubType.TROLL] = "Troll Bomb",
|
|
11
|
+
[BombSubType.GOLDEN] = "Golden Bomb",
|
|
12
|
+
[BombSubType.MEGA_TROLL] = "Megatroll Bomb",
|
|
13
|
+
[BombSubType.GOLDEN_TROLL] = "Golden Troll Bomb",
|
|
14
|
+
[BombSubType.GIGA] = "Giga Bomb"
|
|
15
|
+
}
|
|
16
|
+
return ____exports
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Taken from "entities2.xml". */
|
|
2
|
+
export declare const CHEST_NAMES: {
|
|
3
|
+
readonly 50: "Chest";
|
|
4
|
+
readonly 51: "Bomb Chest";
|
|
5
|
+
readonly 52: "Spiked Chest";
|
|
6
|
+
readonly 53: "Eternal Chest";
|
|
7
|
+
readonly 54: "Mimic Chest";
|
|
8
|
+
readonly 55: "Old Chest";
|
|
9
|
+
readonly 56: "Wooden Chest";
|
|
10
|
+
readonly 57: "Mega Chest";
|
|
11
|
+
readonly 58: "Haunted Chest";
|
|
12
|
+
readonly 60: "Locked Chest";
|
|
13
|
+
readonly 360: "Red Chest";
|
|
14
|
+
readonly 390: "Mom's Chest";
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chestNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chestNames.d.ts","sourceRoot":"","sources":["../../../src/objects/chestNames.ts"],"names":[],"mappings":"AAGA,kCAAkC;AAClC,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAamD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
4
|
+
--- Taken from "entities2.xml".
|
|
5
|
+
____exports.CHEST_NAMES = {
|
|
6
|
+
[PickupVariant.CHEST] = "Chest",
|
|
7
|
+
[PickupVariant.BOMB_CHEST] = "Bomb Chest",
|
|
8
|
+
[PickupVariant.SPIKED_CHEST] = "Spiked Chest",
|
|
9
|
+
[PickupVariant.ETERNAL_CHEST] = "Eternal Chest",
|
|
10
|
+
[PickupVariant.MIMIC_CHEST] = "Mimic Chest",
|
|
11
|
+
[PickupVariant.OLD_CHEST] = "Old Chest",
|
|
12
|
+
[PickupVariant.WOODEN_CHEST] = "Wooden Chest",
|
|
13
|
+
[PickupVariant.MEGA_CHEST] = "Mega Chest",
|
|
14
|
+
[PickupVariant.HAUNTED_CHEST] = "Haunted Chest",
|
|
15
|
+
[PickupVariant.LOCKED_CHEST] = "Locked Chest",
|
|
16
|
+
[PickupVariant.RED_CHEST] = "Red Chest",
|
|
17
|
+
[PickupVariant.MOMS_CHEST] = "Mom's Chest"
|
|
18
|
+
}
|
|
19
|
+
return ____exports
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DEFAULT_COIN_NAME = "Unknown";
|
|
2
|
+
/** Taken from "entities2.xml". */
|
|
3
|
+
export declare const COIN_NAMES: {
|
|
4
|
+
readonly 0: "Unknown";
|
|
5
|
+
readonly 1: "Penny";
|
|
6
|
+
readonly 2: "Nickel";
|
|
7
|
+
readonly 3: "Dime";
|
|
8
|
+
readonly 4: "Double Penny";
|
|
9
|
+
readonly 5: "Lucky Penny";
|
|
10
|
+
readonly 6: "Sticky Nickel";
|
|
11
|
+
readonly 7: "Golden Penny";
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=coinNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinNames.d.ts","sourceRoot":"","sources":["../../../src/objects/coinNames.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,kCAAkC;AAClC,eAAO,MAAM,UAAU;;;;;;;;;CASyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local CoinSubType = ____isaac_2Dtypescript_2Ddefinitions.CoinSubType
|
|
4
|
+
____exports.DEFAULT_COIN_NAME = "Unknown"
|
|
5
|
+
--- Taken from "entities2.xml".
|
|
6
|
+
____exports.COIN_NAMES = {
|
|
7
|
+
[CoinSubType.NULL] = ____exports.DEFAULT_COIN_NAME,
|
|
8
|
+
[CoinSubType.PENNY] = "Penny",
|
|
9
|
+
[CoinSubType.NICKEL] = "Nickel",
|
|
10
|
+
[CoinSubType.DIME] = "Dime",
|
|
11
|
+
[CoinSubType.DOUBLE_PACK] = "Double Penny",
|
|
12
|
+
[CoinSubType.LUCKY_PENNY] = "Lucky Penny",
|
|
13
|
+
[CoinSubType.STICKY_NICKEL] = "Sticky Nickel",
|
|
14
|
+
[CoinSubType.GOLDEN] = "Golden Penny"
|
|
15
|
+
}
|
|
16
|
+
return ____exports
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const DEFAULT_HEART_NAME = "Unknown";
|
|
2
|
+
/** Taken from "entities2.xml". */
|
|
3
|
+
export declare const HEART_NAMES: {
|
|
4
|
+
readonly 0: "Unknown";
|
|
5
|
+
readonly 1: "Heart";
|
|
6
|
+
readonly 2: "Heart (half)";
|
|
7
|
+
readonly 3: "Heart (soul)";
|
|
8
|
+
readonly 4: "Heart (eternal)";
|
|
9
|
+
readonly 5: "Heart (double)";
|
|
10
|
+
readonly 6: "Black Heart";
|
|
11
|
+
readonly 7: "Gold Heart";
|
|
12
|
+
readonly 8: "Heart (half soul)";
|
|
13
|
+
readonly 9: "Scared Heart";
|
|
14
|
+
readonly 10: "Blended Heart";
|
|
15
|
+
readonly 11: "Bone Heart";
|
|
16
|
+
readonly 12: "Rotten Heart";
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=heartNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartNames.d.ts","sourceRoot":"","sources":["../../../src/objects/heartNames.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,kCAAkC;AAClC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAcyB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local HeartSubType = ____isaac_2Dtypescript_2Ddefinitions.HeartSubType
|
|
4
|
+
____exports.DEFAULT_HEART_NAME = "Unknown"
|
|
5
|
+
--- Taken from "entities2.xml".
|
|
6
|
+
____exports.HEART_NAMES = {
|
|
7
|
+
[HeartSubType.NULL] = ____exports.DEFAULT_HEART_NAME,
|
|
8
|
+
[HeartSubType.FULL] = "Heart",
|
|
9
|
+
[HeartSubType.HALF] = "Heart (half)",
|
|
10
|
+
[HeartSubType.SOUL] = "Heart (soul)",
|
|
11
|
+
[HeartSubType.ETERNAL] = "Heart (eternal)",
|
|
12
|
+
[HeartSubType.DOUBLE_PACK] = "Heart (double)",
|
|
13
|
+
[HeartSubType.BLACK] = "Black Heart",
|
|
14
|
+
[HeartSubType.GOLDEN] = "Gold Heart",
|
|
15
|
+
[HeartSubType.HALF_SOUL] = "Heart (half soul)",
|
|
16
|
+
[HeartSubType.SCARED] = "Scared Heart",
|
|
17
|
+
[HeartSubType.BLENDED] = "Blended Heart",
|
|
18
|
+
[HeartSubType.BONE] = "Bone Heart",
|
|
19
|
+
[HeartSubType.ROTTEN] = "Rotten Heart"
|
|
20
|
+
}
|
|
21
|
+
return ____exports
|