isaacscript-common 1.2.139 → 1.2.142
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/callbacks/postSlotRender.d.ts +1 -0
- package/dist/callbacks/postSlotRender.lua +73 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +2 -0
- package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +25 -0
- package/dist/features/extraConsoleCommands/commands.lua +76 -62
- package/dist/features/extraConsoleCommands/init.lua +6 -4
- package/dist/features/playerInventory.d.ts +6 -0
- package/dist/features/playerInventory.lua +73 -0
- package/dist/functions/cards.lua +12 -18
- package/dist/functions/challenges.lua +3 -2
- package/dist/functions/collectibles.lua +8 -14
- package/dist/functions/map.d.ts +4 -1
- package/dist/functions/map.lua +5 -1
- package/dist/functions/pills.lua +10 -15
- package/dist/functions/player.d.ts +2 -0
- package/dist/functions/player.lua +37 -81
- package/dist/functions/playerHealth.d.ts +3 -3
- package/dist/functions/transformations.lua +3 -3
- package/dist/functions/trinkets.lua +8 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.lua +5 -0
- package/dist/maps/cardDescriptionMap.d.ts +4 -1
- package/dist/maps/cardDescriptionMap.lua +103 -102
- package/dist/maps/cardNameMap.d.ts +4 -1
- package/dist/maps/cardNameMap.lua +103 -102
- package/dist/maps/cardTypeMap.d.ts +3 -1
- package/dist/maps/cardTypeMap.lua +102 -102
- package/dist/maps/challengeNameMap.d.ts +4 -1
- package/dist/maps/challengeNameMap.lua +50 -50
- package/dist/maps/characterNameMap.d.ts +5 -0
- package/dist/maps/characterNameMap.lua +49 -0
- package/dist/maps/collectibleDescriptionMap.d.ts +1 -0
- package/dist/maps/collectibleDescriptionMap.lua +1 -0
- package/dist/maps/collectibleNameMap.d.ts +1 -0
- package/dist/maps/collectibleNameMap.lua +1 -0
- package/dist/maps/pillEffectClassMap.d.ts +4 -1
- package/dist/maps/pillEffectClassMap.lua +56 -55
- package/dist/maps/pillEffectNameMap.d.ts +4 -1
- package/dist/maps/pillEffectNameMap.lua +55 -55
- package/dist/maps/pillEffectTypeMap.d.ts +4 -1
- package/dist/maps/pillEffectTypeMap.lua +55 -55
- package/dist/maps/roomTypeNameMap.d.ts +4 -1
- package/dist/maps/roomTypeNameMap.lua +34 -35
- package/dist/maps/transformationNameMap.d.ts +4 -1
- package/dist/maps/transformationNameMap.lua +19 -20
- package/dist/maps/trinketDescriptionMap.d.ts +1 -0
- package/dist/maps/trinketDescriptionMap.lua +1 -0
- package/dist/maps/trinketNameMap.d.ts +1 -0
- package/dist/maps/trinketNameMap.lua +1 -0
- package/dist/types/CallbackParametersCustom.d.ts +5 -0
- package/dist/types/CardType.d.ts +10 -8
- package/dist/types/CardType.lua +9 -7
- package/dist/types/ModCallbacksCustom.d.ts +10 -9
- package/dist/types/ModCallbacksCustom.lua +11 -9
- package/dist/types/ModUpgraded.lua +8 -0
- package/dist/types/PillEffectClass.d.ts +11 -5
- package/dist/types/PillEffectClass.lua +8 -5
- package/dist/types/PillEffectType.d.ts +10 -4
- package/dist/types/PillEffectType.lua +7 -4
- package/dist/upgradeMod.lua +3 -3
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ local __TS__Iterator = ____lualib.__TS__Iterator
|
|
|
11
11
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
12
12
|
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
13
13
|
local ____exports = {}
|
|
14
|
-
local getPlayerIndexCollectibleType,
|
|
14
|
+
local getPlayerIndexCollectibleType, isTaintedModded, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
|
|
15
15
|
local ____cachedClasses = require("cachedClasses")
|
|
16
16
|
local game = ____cachedClasses.game
|
|
17
17
|
local itemConfig = ____cachedClasses.itemConfig
|
|
@@ -22,6 +22,9 @@ local CHARACTERS_WITH_NO_RED_HEARTS = ____constants.CHARACTERS_WITH_NO_RED_HEART
|
|
|
22
22
|
local CHARACTERS_WITH_NO_SOUL_HEARTS = ____constants.CHARACTERS_WITH_NO_SOUL_HEARTS
|
|
23
23
|
local LOST_STYLE_PLAYER_TYPES = ____constants.LOST_STYLE_PLAYER_TYPES
|
|
24
24
|
local MAX_VANILLA_CHARACTER = ____constants.MAX_VANILLA_CHARACTER
|
|
25
|
+
local ____characterNameMap = require("maps.characterNameMap")
|
|
26
|
+
local CHARACTER_NAME_MAP = ____characterNameMap.CHARACTER_NAME_MAP
|
|
27
|
+
local DEFAULT_CHARACTER_NAME = ____characterNameMap.DEFAULT_CHARACTER_NAME
|
|
25
28
|
local ____HealthType = require("types.HealthType")
|
|
26
29
|
local HealthType = ____HealthType.HealthType
|
|
27
30
|
local ____array = require("functions.array")
|
|
@@ -35,9 +38,6 @@ local ____collectibles = require("functions.collectibles")
|
|
|
35
38
|
local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
|
|
36
39
|
local ____collectibleSet = require("functions.collectibleSet")
|
|
37
40
|
local getCollectibleSet = ____collectibleSet.getCollectibleSet
|
|
38
|
-
local ____string = require("functions.string")
|
|
39
|
-
local stringContains = ____string.stringContains
|
|
40
|
-
local trimPrefix = ____string.trimPrefix
|
|
41
41
|
local ____utils = require("functions.utils")
|
|
42
42
|
local ensureAllCases = ____utils.ensureAllCases
|
|
43
43
|
local ____repeat = ____utils["repeat"]
|
|
@@ -100,15 +100,15 @@ end
|
|
|
100
100
|
function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSoul)
|
|
101
101
|
local character = player:GetPlayerType()
|
|
102
102
|
repeat
|
|
103
|
-
local
|
|
104
|
-
local
|
|
105
|
-
if
|
|
103
|
+
local ____switch71 = character
|
|
104
|
+
local ____cond71 = ____switch71 == PlayerType.PLAYER_THESOUL
|
|
105
|
+
if ____cond71 then
|
|
106
106
|
do
|
|
107
107
|
return differentiateForgottenAndSoul and CollectibleType.COLLECTIBLE_SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
|
-
|
|
111
|
-
if
|
|
110
|
+
____cond71 = ____cond71 or ____switch71 == PlayerType.PLAYER_LAZARUS2_B
|
|
111
|
+
if ____cond71 then
|
|
112
112
|
do
|
|
113
113
|
return CollectibleType.COLLECTIBLE_INNER_EYE
|
|
114
114
|
end
|
|
@@ -136,53 +136,6 @@ function ____exports.getPlayerMaxHeartContainers(self, player)
|
|
|
136
136
|
end
|
|
137
137
|
return characterMaxHeartContainers
|
|
138
138
|
end
|
|
139
|
-
function getAdjustedPlayerName(self, player)
|
|
140
|
-
local character = player:GetPlayerType()
|
|
141
|
-
repeat
|
|
142
|
-
local ____switch82 = character
|
|
143
|
-
local ____cond82 = ____switch82 == PlayerType.PLAYER_BLUEBABY or ____switch82 == PlayerType.PLAYER_BLUEBABY_B
|
|
144
|
-
if ____cond82 then
|
|
145
|
-
do
|
|
146
|
-
return "Blue Baby"
|
|
147
|
-
end
|
|
148
|
-
end
|
|
149
|
-
____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_LAZARUS2
|
|
150
|
-
if ____cond82 then
|
|
151
|
-
do
|
|
152
|
-
return "Lazarus II"
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_BLACKJUDAS
|
|
156
|
-
if ____cond82 then
|
|
157
|
-
do
|
|
158
|
-
return "Dark Judas"
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_JACOB
|
|
162
|
-
if ____cond82 then
|
|
163
|
-
do
|
|
164
|
-
return "Jacob & Esau"
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_LAZARUS2_B
|
|
168
|
-
if ____cond82 then
|
|
169
|
-
do
|
|
170
|
-
return "Dead Tainted Lazarus"
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_JACOB2_B
|
|
174
|
-
if ____cond82 then
|
|
175
|
-
do
|
|
176
|
-
return "Dead Tainted Jacob"
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
do
|
|
180
|
-
do
|
|
181
|
-
return player:GetName()
|
|
182
|
-
end
|
|
183
|
-
end
|
|
184
|
-
until true
|
|
185
|
-
end
|
|
186
139
|
function ____exports.getPlayers(self, performCharacterExclusions)
|
|
187
140
|
if performCharacterExclusions == nil then
|
|
188
141
|
performCharacterExclusions = false
|
|
@@ -223,16 +176,6 @@ function ____exports.isKeeper(self, player)
|
|
|
223
176
|
local character = player:GetPlayerType()
|
|
224
177
|
return character == PlayerType.PLAYER_KEEPER or character == PlayerType.PLAYER_KEEPER_B
|
|
225
178
|
end
|
|
226
|
-
function ____exports.isTainted(self, player)
|
|
227
|
-
local character = player:GetPlayerType()
|
|
228
|
-
local ____isVanillaCharacter_result_1
|
|
229
|
-
if ____exports.isVanillaCharacter(nil, player) then
|
|
230
|
-
____isVanillaCharacter_result_1 = character >= PlayerType.PLAYER_ISAAC_B
|
|
231
|
-
else
|
|
232
|
-
____isVanillaCharacter_result_1 = isTaintedModded(nil, player)
|
|
233
|
-
end
|
|
234
|
-
return ____isVanillaCharacter_result_1
|
|
235
|
-
end
|
|
236
179
|
function isTaintedModded(self, player)
|
|
237
180
|
local character = player:GetPlayerType()
|
|
238
181
|
local name = player:GetName()
|
|
@@ -318,6 +261,13 @@ function ____exports.getBlackHearts(self, player)
|
|
|
318
261
|
local blackHeartBits = countSetBits(nil, blackHeartsBitmask)
|
|
319
262
|
return blackHeartBits * 2
|
|
320
263
|
end
|
|
264
|
+
function ____exports.getCharacterName(self, character)
|
|
265
|
+
if character >= PlayerType.NUM_PLAYER_TYPES then
|
|
266
|
+
return "unknown"
|
|
267
|
+
end
|
|
268
|
+
local characterName = CHARACTER_NAME_MAP[character]
|
|
269
|
+
return characterName == nil and DEFAULT_CHARACTER_NAME or characterName
|
|
270
|
+
end
|
|
321
271
|
function ____exports.getClosestPlayer(self, position)
|
|
322
272
|
local closestPlayer = nil
|
|
323
273
|
local closestDistance = math.huge
|
|
@@ -476,12 +426,8 @@ function ____exports.getPlayerIndexVanilla(self, playerToFind)
|
|
|
476
426
|
return nil
|
|
477
427
|
end
|
|
478
428
|
function ____exports.getPlayerName(self, player)
|
|
479
|
-
local
|
|
480
|
-
|
|
481
|
-
return adjustedName
|
|
482
|
-
end
|
|
483
|
-
local baseName = trimPrefix(nil, adjustedName, "The ")
|
|
484
|
-
return stringContains(nil, baseName, "Tainted") and baseName or "Tainted " .. baseName
|
|
429
|
+
local character = player:GetPlayerType()
|
|
430
|
+
return character >= PlayerType.NUM_PLAYER_TYPES and player:GetName() or ____exports.getCharacterName(nil, character)
|
|
485
431
|
end
|
|
486
432
|
function ____exports.getPlayerNumHitsRemaining(self, player)
|
|
487
433
|
local hearts = player:GetHearts()
|
|
@@ -578,6 +524,16 @@ function ____exports.canTakeFreeDevilDeals(self, player)
|
|
|
578
524
|
local character = player:GetPlayerType()
|
|
579
525
|
return CHARACTERS_WITH_FREE_DEVIL_DEALS:has(character)
|
|
580
526
|
end
|
|
527
|
+
function ____exports.isTainted(self, player)
|
|
528
|
+
local character = player:GetPlayerType()
|
|
529
|
+
local ____isVanillaCharacter_result_1
|
|
530
|
+
if ____exports.isVanillaCharacter(nil, player) then
|
|
531
|
+
____isVanillaCharacter_result_1 = character >= PlayerType.PLAYER_ISAAC_B
|
|
532
|
+
else
|
|
533
|
+
____isVanillaCharacter_result_1 = isTaintedModded(nil, player)
|
|
534
|
+
end
|
|
535
|
+
return ____isVanillaCharacter_result_1
|
|
536
|
+
end
|
|
581
537
|
function ____exports.isTaintedLazarus(self, player)
|
|
582
538
|
local character = player:GetPlayerType()
|
|
583
539
|
return character == PlayerType.PLAYER_LAZARUS_B or character == PlayerType.PLAYER_LAZARUS2_B
|
|
@@ -620,9 +576,9 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
620
576
|
itemPool:RemoveCollectible(collectibleType)
|
|
621
577
|
end
|
|
622
578
|
repeat
|
|
623
|
-
local
|
|
624
|
-
local
|
|
625
|
-
if
|
|
579
|
+
local ____switch125 = activeSlot
|
|
580
|
+
local ____cond125 = ____switch125 == ActiveSlot.SLOT_PRIMARY
|
|
581
|
+
if ____cond125 then
|
|
626
582
|
do
|
|
627
583
|
if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
|
|
628
584
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -631,8 +587,8 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
631
587
|
break
|
|
632
588
|
end
|
|
633
589
|
end
|
|
634
|
-
|
|
635
|
-
if
|
|
590
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_SECONDARY
|
|
591
|
+
if ____cond125 then
|
|
636
592
|
do
|
|
637
593
|
if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
|
|
638
594
|
player:RemoveCollectible(primaryCollectibleType)
|
|
@@ -647,16 +603,16 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
|
|
|
647
603
|
break
|
|
648
604
|
end
|
|
649
605
|
end
|
|
650
|
-
|
|
651
|
-
if
|
|
606
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET
|
|
607
|
+
if ____cond125 then
|
|
652
608
|
do
|
|
653
609
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
654
610
|
player:SetActiveCharge(charge, activeSlot)
|
|
655
611
|
break
|
|
656
612
|
end
|
|
657
613
|
end
|
|
658
|
-
|
|
659
|
-
if
|
|
614
|
+
____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET2
|
|
615
|
+
if ____cond125 then
|
|
660
616
|
do
|
|
661
617
|
player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
|
|
662
618
|
break
|
|
@@ -3,9 +3,9 @@ import { HealthType } from "../types/HealthType";
|
|
|
3
3
|
import { PlayerHealth } from "../types/PlayerHealth";
|
|
4
4
|
export declare function addPlayerHealthType(player: EntityPlayer, healthType: HealthType, numHearts: int): void;
|
|
5
5
|
/**
|
|
6
|
-
* Helper function to get an
|
|
7
|
-
* `setPlayerHealth` function to restore the player's health back to a certain
|
|
8
|
-
* later time.
|
|
6
|
+
* Helper function to get an object representing the player's health. You can use this in
|
|
7
|
+
* combination with the `setPlayerHealth` function to restore the player's health back to a certain
|
|
8
|
+
* configuration at a later time.
|
|
9
9
|
*
|
|
10
10
|
* This is based on the `REVEL.StoreHealth` function in the Revelations mod.
|
|
11
11
|
*/
|
|
@@ -6,6 +6,7 @@ local Set = ____lualib.Set
|
|
|
6
6
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
7
|
local ____exports = {}
|
|
8
8
|
local ____transformationNameMap = require("maps.transformationNameMap")
|
|
9
|
+
local DEFAULT_TRANSFORMATION_NAME = ____transformationNameMap.DEFAULT_TRANSFORMATION_NAME
|
|
9
10
|
local TRANSFORMATION_NAME_MAP = ____transformationNameMap.TRANSFORMATION_NAME_MAP
|
|
10
11
|
local ____DefaultMap = require("types.DefaultMap")
|
|
11
12
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
@@ -90,9 +91,8 @@ function ____exports.getPlayerNumTransformationCollectibles(self, player, player
|
|
|
90
91
|
return numCollectibles
|
|
91
92
|
end
|
|
92
93
|
function ____exports.getTransformationName(self, playerForm)
|
|
93
|
-
local
|
|
94
|
-
|
|
95
|
-
return transformationName == nil and defaultName or transformationName
|
|
94
|
+
local transformationName = TRANSFORMATION_NAME_MAP[playerForm]
|
|
95
|
+
return transformationName == nil and DEFAULT_TRANSFORMATION_NAME or transformationName
|
|
96
96
|
end
|
|
97
97
|
function ____exports.getTransformationsForCollectibleType(self, collectibleType)
|
|
98
98
|
if COLLECTIBLE_TYPE_TO_TRANSFORMATION_MAP.size == 0 then
|
|
@@ -5,8 +5,10 @@ local itemConfig = ____cachedClasses.itemConfig
|
|
|
5
5
|
local ____constants = require("constants")
|
|
6
6
|
local TRINKET_GOLDEN_FLAG = ____constants.TRINKET_GOLDEN_FLAG
|
|
7
7
|
local ____trinketDescriptionMap = require("maps.trinketDescriptionMap")
|
|
8
|
+
local DEFAULT_TRINKET_DESCRIPTION = ____trinketDescriptionMap.DEFAULT_TRINKET_DESCRIPTION
|
|
8
9
|
local TRINKET_DESCRIPTION_MAP = ____trinketDescriptionMap.TRINKET_DESCRIPTION_MAP
|
|
9
10
|
local ____trinketNameMap = require("maps.trinketNameMap")
|
|
11
|
+
local DEFAULT_TRINKET_NAME = ____trinketNameMap.DEFAULT_TRINKET_NAME
|
|
10
12
|
local TRINKET_NAME_MAP = ____trinketNameMap.TRINKET_NAME_MAP
|
|
11
13
|
local ____flag = require("functions.flag")
|
|
12
14
|
local hasFlag = ____flag.hasFlag
|
|
@@ -44,34 +46,26 @@ function ____exports.getTrinkets(self, matchingSubType)
|
|
|
44
46
|
return getPickups(nil, PickupVariant.PICKUP_TRINKET, matchingSubType)
|
|
45
47
|
end
|
|
46
48
|
function ____exports.getTrinketDescription(self, trinketType)
|
|
47
|
-
local defaultDescription = "Unknown"
|
|
48
|
-
if type(trinketType) ~= "number" then
|
|
49
|
-
return defaultDescription
|
|
50
|
-
end
|
|
51
49
|
local trinketDescription = TRINKET_DESCRIPTION_MAP:get(trinketType)
|
|
52
50
|
if trinketDescription ~= nil then
|
|
53
51
|
return trinketDescription
|
|
54
52
|
end
|
|
55
53
|
local itemConfigItem = itemConfig:GetCollectible(trinketType)
|
|
56
|
-
if itemConfigItem
|
|
57
|
-
return
|
|
54
|
+
if itemConfigItem ~= nil then
|
|
55
|
+
return itemConfigItem.Description
|
|
58
56
|
end
|
|
59
|
-
return
|
|
57
|
+
return DEFAULT_TRINKET_DESCRIPTION
|
|
60
58
|
end
|
|
61
59
|
function ____exports.getTrinketName(self, trinketType)
|
|
62
|
-
local defaultName = "Unknown"
|
|
63
|
-
if type(trinketType) ~= "number" then
|
|
64
|
-
return defaultName
|
|
65
|
-
end
|
|
66
60
|
local trinketName = TRINKET_NAME_MAP:get(trinketType)
|
|
67
61
|
if trinketName ~= nil then
|
|
68
62
|
return trinketName
|
|
69
63
|
end
|
|
70
64
|
local itemConfigItem = itemConfig:GetCollectible(trinketType)
|
|
71
|
-
if itemConfigItem
|
|
72
|
-
return
|
|
65
|
+
if itemConfigItem ~= nil then
|
|
66
|
+
return itemConfigItem.Name
|
|
73
67
|
end
|
|
74
|
-
return
|
|
68
|
+
return DEFAULT_TRINKET_NAME
|
|
75
69
|
end
|
|
76
70
|
function ____exports.hasOpenTrinketSlot(self, player)
|
|
77
71
|
local character = player:GetPlayerType()
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { addConsoleCommand, enableExtraConsoleCommands, removeConsoleCommand, }
|
|
|
9
9
|
export { forgottenSwitch } from "./features/forgottenSwitch";
|
|
10
10
|
export { getCollectibleItemPoolType } from "./features/getCollectibleItemPoolType";
|
|
11
11
|
export * from "./features/isPonyActive";
|
|
12
|
+
export { getPlayerInventory } from "./features/playerInventory";
|
|
12
13
|
export { preventCollectibleRotate } from "./features/preventCollectibleRotate";
|
|
13
14
|
export { runInNGameFrames, runInNRenderFrames, runNextGameFrame, runNextRenderFrame, } from "./features/runInNFrames";
|
|
14
15
|
export * from "./features/saveDataManager/exports";
|
package/dist/index.lua
CHANGED
|
@@ -86,6 +86,11 @@ do
|
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
|
+
do
|
|
90
|
+
local ____playerInventory = require("features.playerInventory")
|
|
91
|
+
local getPlayerInventory = ____playerInventory.getPlayerInventory
|
|
92
|
+
____exports.getPlayerInventory = getPlayerInventory
|
|
93
|
+
end
|
|
89
94
|
do
|
|
90
95
|
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
91
96
|
local preventCollectibleRotate = ____preventCollectibleRotate.preventCollectibleRotate
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const DEFAULT_CARD_DESCRIPTION = "Unknown";
|
|
3
|
+
export declare const CARD_DESCRIPTION_MAP: {
|
|
4
|
+
readonly [key in Card]: string;
|
|
5
|
+
};
|
|
@@ -1,105 +1,106 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____lualib = require("lualib_bundle")
|
|
3
|
-
local Map = ____lualib.Map
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
2
|
local ____exports = {}
|
|
6
|
-
____exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
3
|
+
____exports.DEFAULT_CARD_DESCRIPTION = "Unknown"
|
|
4
|
+
____exports.CARD_DESCRIPTION_MAP = {
|
|
5
|
+
[Card.CARD_RANDOM] = ____exports.DEFAULT_CARD_DESCRIPTION,
|
|
6
|
+
[Card.CARD_NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
|
|
7
|
+
[Card.CARD_FOOL] = "Where journey begins",
|
|
8
|
+
[Card.CARD_MAGICIAN] = "May you never miss your goal",
|
|
9
|
+
[Card.CARD_HIGH_PRIESTESS] = "Mother is watching you",
|
|
10
|
+
[Card.CARD_EMPRESS] = "May your rage bring power",
|
|
11
|
+
[Card.CARD_EMPEROR] = "Challenge me!",
|
|
12
|
+
[Card.CARD_HIEROPHANT] = "Two prayers for the lost",
|
|
13
|
+
[Card.CARD_LOVERS] = "May you prosper and be in good health",
|
|
14
|
+
[Card.CARD_CHARIOT] = "May nothing stand before you",
|
|
15
|
+
[Card.CARD_JUSTICE] = "May your future become balanced",
|
|
16
|
+
[Card.CARD_HERMIT] = "May you see what life has to offer",
|
|
17
|
+
[Card.CARD_WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
|
|
18
|
+
[Card.CARD_STRENGTH] = "May your power bring rage",
|
|
19
|
+
[Card.CARD_HANGED_MAN] = "May you find enlightenment ",
|
|
20
|
+
[Card.CARD_DEATH] = "Lay waste to all that oppose you ",
|
|
21
|
+
[Card.CARD_TEMPERANCE] = "May you be pure in heart",
|
|
22
|
+
[Card.CARD_DEVIL] = "Revel in the power of darkness",
|
|
23
|
+
[Card.CARD_TOWER] = "Destruction brings creation",
|
|
24
|
+
[Card.CARD_STARS] = "May you find what you desire ",
|
|
25
|
+
[Card.CARD_MOON] = "May you find all you have lost",
|
|
26
|
+
[Card.CARD_SUN] = "May the light heal and enlighten you",
|
|
27
|
+
[Card.CARD_JUDGEMENT] = "Judge lest ye be judged",
|
|
28
|
+
[Card.CARD_WORLD] = "Open your eyes and see",
|
|
29
|
+
[Card.CARD_CLUBS_2] = "Item multiplier",
|
|
30
|
+
[Card.CARD_DIAMONDS_2] = "Item multiplier",
|
|
31
|
+
[Card.CARD_SPADES_2] = "Item multiplier",
|
|
32
|
+
[Card.CARD_HEARTS_2] = "Item multiplier",
|
|
33
|
+
[Card.CARD_ACE_OF_CLUBS] = "Convert all",
|
|
34
|
+
[Card.CARD_ACE_OF_DIAMONDS] = "Convert all",
|
|
35
|
+
[Card.CARD_ACE_OF_SPADES] = "Convert all",
|
|
36
|
+
[Card.CARD_ACE_OF_HEARTS] = "Convert all",
|
|
37
|
+
[Card.CARD_JOKER] = "???",
|
|
38
|
+
[Card.RUNE_HAGALAZ] = "Destruction",
|
|
39
|
+
[Card.RUNE_JERA] = "Abundance",
|
|
40
|
+
[Card.RUNE_EHWAZ] = "Passage",
|
|
41
|
+
[Card.RUNE_DAGAZ] = "Purity",
|
|
42
|
+
[Card.RUNE_ANSUZ] = "Vision",
|
|
43
|
+
[Card.RUNE_PERTHRO] = "Change",
|
|
44
|
+
[Card.RUNE_BERKANO] = "Companionship",
|
|
45
|
+
[Card.RUNE_ALGIZ] = "Resistance",
|
|
46
|
+
[Card.RUNE_BLANK] = "???",
|
|
47
|
+
[Card.RUNE_BLACK] = "Void",
|
|
48
|
+
[Card.CARD_CHAOS] = "???",
|
|
49
|
+
[Card.CARD_CREDIT] = "Charge it!",
|
|
50
|
+
[Card.CARD_RULES] = "???",
|
|
51
|
+
[Card.CARD_HUMANITY] = "Something stinks...",
|
|
52
|
+
[Card.CARD_SUICIDE_KING] = "A true ending?",
|
|
53
|
+
[Card.CARD_GET_OUT_OF_JAIL] = "Open Sesame",
|
|
54
|
+
[Card.CARD_QUESTIONMARK] = "Double active",
|
|
55
|
+
[Card.CARD_DICE_SHARD] = "D6 + D20",
|
|
56
|
+
[Card.CARD_EMERGENCY_CONTACT] = "Help from above",
|
|
57
|
+
[Card.CARD_HOLY] = "You feel protected",
|
|
58
|
+
[Card.CARD_HUGE_GROWTH] = "Become immense!",
|
|
59
|
+
[Card.CARD_ANCIENT_RECALL] = "Draw 3 cards",
|
|
60
|
+
[Card.CARD_ERA_WALK] = "Savor the moment",
|
|
61
|
+
[Card.RUNE_SHARD] = "It still glows faintly",
|
|
62
|
+
[Card.CARD_REVERSE_FOOL] = "Let go and move on",
|
|
63
|
+
[Card.CARD_REVERSE_MAGICIAN] = "May no harm come to you",
|
|
64
|
+
[Card.CARD_REVERSE_HIGH_PRIESTESS] = "Run",
|
|
65
|
+
[Card.CARD_REVERSE_EMPRESS] = "May your love bring protection",
|
|
66
|
+
[Card.CARD_REVERSE_EMPEROR] = "May you find a worthy opponent",
|
|
67
|
+
[Card.CARD_REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
|
|
68
|
+
[Card.CARD_REVERSE_LOVERS] = "May your heart shatter into pieces",
|
|
69
|
+
[Card.CARD_REVERSE_CHARIOT] = "May nothing walk past you",
|
|
70
|
+
[Card.CARD_REVERSE_JUSTICE] = "May your sins come back to torment you",
|
|
71
|
+
[Card.CARD_REVERSE_HERMIT] = "May you see the value of all things in life",
|
|
72
|
+
[Card.CARD_REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
|
|
73
|
+
[Card.CARD_REVERSE_STRENGTH] = "May you break their resolve",
|
|
74
|
+
[Card.CARD_REVERSE_HANGED_MAN] = "May your greed know no bounds",
|
|
75
|
+
[Card.CARD_REVERSE_DEATH] = "May life spring forth from the fallen",
|
|
76
|
+
[Card.CARD_REVERSE_TEMPERANCE] = "May your hunger be satiated",
|
|
77
|
+
[Card.CARD_REVERSE_DEVIL] = "Bask in the light of your mercy",
|
|
78
|
+
[Card.CARD_REVERSE_TOWER] = "Creation brings destruction",
|
|
79
|
+
[Card.CARD_REVERSE_STARS] = "May your loss bring fortune",
|
|
80
|
+
[Card.CARD_REVERSE_MOON] = "May you remember lost memories",
|
|
81
|
+
[Card.CARD_REVERSE_SUN] = "May the darkness swallow all around you",
|
|
82
|
+
[Card.CARD_REVERSE_JUDGEMENT] = "May you redeem those found wanting",
|
|
83
|
+
[Card.CARD_REVERSE_WORLD] = "Step into the abyss",
|
|
84
|
+
[Card.CARD_CRACKED_KEY] = "???",
|
|
85
|
+
[Card.CARD_QUEEN_OF_HEARTS] = "<3",
|
|
86
|
+
[Card.CARD_WILD] = "Again",
|
|
87
|
+
[Card.CARD_SOUL_ISAAC] = "Reroll... or not",
|
|
88
|
+
[Card.CARD_SOUL_MAGDALENE] = "Give me your love!",
|
|
89
|
+
[Card.CARD_SOUL_CAIN] = "Opens the unopenable",
|
|
90
|
+
[Card.CARD_SOUL_JUDAS] = "Right behind you",
|
|
91
|
+
[Card.CARD_SOUL_BLUEBABY] = "Chemical warfare",
|
|
92
|
+
[Card.CARD_SOUL_EVE] = "Your very own murder",
|
|
93
|
+
[Card.CARD_SOUL_SAMSON] = "Slay a thousand",
|
|
94
|
+
[Card.CARD_SOUL_AZAZEL] = "Demon rage!",
|
|
95
|
+
[Card.CARD_SOUL_LAZARUS] = "Life after death",
|
|
96
|
+
[Card.CARD_SOUL_EDEN] = "Embrace chaos",
|
|
97
|
+
[Card.CARD_SOUL_LOST] = "Leave your body behind",
|
|
98
|
+
[Card.CARD_SOUL_LILITH] = "Motherhood",
|
|
99
|
+
[Card.CARD_SOUL_KEEPER] = "$$$",
|
|
100
|
+
[Card.CARD_SOUL_APOLLYON] = "Bringer of calamity",
|
|
101
|
+
[Card.CARD_SOUL_FORGOTTEN] = "Skeletal protector",
|
|
102
|
+
[Card.CARD_SOUL_BETHANY] = "Friends from beyond",
|
|
103
|
+
[Card.CARD_SOUL_JACOB] = "Bound by blood",
|
|
104
|
+
[Card.NUM_CARDS] = ____exports.DEFAULT_CARD_DESCRIPTION
|
|
105
|
+
}
|
|
105
106
|
return ____exports
|