isaacscript-common 9.14.0 → 9.16.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/features/extraConsoleCommands/listCommands.d.ts +2 -0
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +76 -19
- package/dist/functions/collectibles.lua +4 -4
- package/dist/functions/levelGrid.d.ts +4 -2
- package/dist/functions/levelGrid.d.ts.map +1 -1
- package/dist/functions/levelGrid.lua +13 -11
- package/dist/functions/minimap.d.ts +22 -4
- package/dist/functions/minimap.d.ts.map +1 -1
- package/dist/functions/minimap.lua +67 -7
- package/dist/functions/string.d.ts +2 -0
- package/dist/functions/string.d.ts.map +1 -1
- package/dist/functions/string.lua +5 -0
- package/dist/functions/trinkets.d.ts.map +1 -1
- package/dist/functions/trinkets.lua +4 -4
- package/dist/index.d.ts +38 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +4 -4
- package/dist/maps/cardNameToTypeMap.d.ts +4 -0
- package/dist/maps/cardNameToTypeMap.d.ts.map +1 -0
- package/dist/maps/{cardMap.lua → cardNameToTypeMap.lua} +2 -2
- package/dist/maps/characterNameToTypeMap.d.ts +4 -0
- package/dist/maps/characterNameToTypeMap.d.ts.map +1 -0
- package/dist/maps/characterNameToTypeMap.lua +92 -0
- package/dist/maps/collectibleDescriptionMap.d.ts +6 -0
- package/dist/maps/collectibleDescriptionMap.d.ts.map +1 -1
- package/dist/maps/collectibleDescriptionMap.lua +4 -0
- package/dist/maps/collectibleNameToTypeMap.d.ts +3 -0
- package/dist/maps/collectibleNameToTypeMap.d.ts.map +1 -0
- package/dist/maps/collectibleNameToTypeMap.lua +21 -0
- package/dist/maps/collectibleTypeToNameMap.d.ts +12 -0
- package/dist/maps/collectibleTypeToNameMap.d.ts.map +1 -0
- package/dist/maps/{collectibleNameMap.lua → collectibleTypeToNameMap.lua} +7 -1
- package/dist/maps/{pillEffectMap.d.ts → pillNameToEffectMap.d.ts} +2 -2
- package/dist/maps/pillNameToEffectMap.d.ts.map +1 -0
- package/dist/maps/{pillEffectMap.lua → pillNameToEffectMap.lua} +1 -1
- package/dist/maps/roomNameToTypeMap.d.ts +4 -0
- package/dist/maps/roomNameToTypeMap.d.ts.map +1 -0
- package/dist/maps/{roomTypeMap.lua → roomNameToTypeMap.lua} +2 -2
- package/dist/maps/trinketDescriptionMap.d.ts +6 -0
- package/dist/maps/trinketDescriptionMap.d.ts.map +1 -1
- package/dist/maps/trinketDescriptionMap.lua +4 -0
- package/dist/maps/trinketNameToTypeMap.d.ts +3 -0
- package/dist/maps/trinketNameToTypeMap.d.ts.map +1 -0
- package/dist/maps/trinketNameToTypeMap.lua +21 -0
- package/dist/maps/trinketTypeToNameMap.d.ts +12 -0
- package/dist/maps/trinketTypeToNameMap.d.ts.map +1 -0
- package/dist/maps/{trinketNameMap.lua → trinketTypeToNameMap.lua} +7 -1
- package/dist/objects/characterDamageMultipliers.lua +1 -1
- package/dist/objects/characterNames.lua +1 -1
- package/dist/objects/playerNamePNGFileNames.lua +1 -1
- package/dist/objects/playerPortraitPNGFileNames.lua +1 -1
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +1 -1
- package/dist/sets/charactersWithNoRedHeartsSet.lua +1 -1
- package/package.json +2 -2
- package/src/features/extraConsoleCommands/listCommands.ts +85 -16
- package/src/functions/collectibles.ts +3 -3
- package/src/functions/levelGrid.ts +16 -5
- package/src/functions/minimap.ts +78 -7
- package/src/functions/string.ts +6 -0
- package/src/functions/trinkets.ts +5 -2
- package/src/index.ts +4 -4
- package/src/maps/{cardMap.ts → cardNameToTypeMap.ts} +2 -2
- package/src/maps/characterNameToTypeMap.ts +88 -0
- package/src/maps/collectibleDescriptionMap.ts +6 -2
- package/src/maps/collectibleNameToTypeMap.ts +19 -0
- package/src/maps/collectibleTypeToNameMap.ts +739 -0
- package/src/maps/pillNameToEffectMap.ts +90 -0
- package/src/maps/{roomTypeMap.ts → roomNameToTypeMap.ts} +2 -2
- package/src/maps/trinketDescriptionMap.ts +6 -2
- package/src/maps/trinketNameToTypeMap.ts +17 -0
- package/src/maps/trinketTypeToNameMap.ts +205 -0
- package/src/objects/characterDamageMultipliers.ts +1 -1
- package/src/objects/characterNames.ts +1 -1
- package/src/objects/playerNamePNGFileNames.ts +1 -1
- package/src/objects/playerPortraitPNGFileNames.ts +1 -1
- package/src/sets/charactersWithBlackHeartFromEternalHeartSet.ts +1 -1
- package/src/sets/charactersWithNoRedHeartsSet.ts +1 -1
- package/dist/maps/cardMap.d.ts +0 -4
- package/dist/maps/cardMap.d.ts.map +0 -1
- package/dist/maps/characterMap.d.ts +0 -4
- package/dist/maps/characterMap.d.ts.map +0 -1
- package/dist/maps/characterMap.lua +0 -90
- package/dist/maps/collectibleNameMap.d.ts +0 -4
- package/dist/maps/collectibleNameMap.d.ts.map +0 -1
- package/dist/maps/pillEffectMap.d.ts.map +0 -1
- package/dist/maps/roomTypeMap.d.ts +0 -4
- package/dist/maps/roomTypeMap.d.ts.map +0 -1
- package/dist/maps/trinketNameMap.d.ts +0 -4
- package/dist/maps/trinketNameMap.d.ts.map +0 -1
- package/src/maps/characterMap.ts +0 -87
- package/src/maps/collectibleNameMap.ts +0 -731
- package/src/maps/pillEffectMap.ts +0 -88
- package/src/maps/trinketNameMap.ts +0 -198
package/dist/index.d.ts
CHANGED
|
@@ -287,6 +287,17 @@ export declare function addRoomClearCharges(bigRoomDoubleCharge?: boolean): void
|
|
|
287
287
|
*/
|
|
288
288
|
export declare function addRoomClearChargeToSlot(player: EntityPlayer, activeSlot: ActiveSlot, bigRoomDoubleCharge?: boolean, playSoundEffect?: boolean): void;
|
|
289
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Helper function to add a `DisplayFlag` to a particular room's minimap display flags (e.g. whether
|
|
292
|
+
* or not it is visible and so on).
|
|
293
|
+
*
|
|
294
|
+
* @param roomGridIndex Set to undefined to use the current room index.
|
|
295
|
+
* @param displayFlag The `DisplayFlag` to set. (See the `DisplayFlag` enum.)
|
|
296
|
+
* @param updateVisibility Optional. Whether to call the `Level.UpdateVisibility` method in order to
|
|
297
|
+
* make the changes immediately visible. Default is true.
|
|
298
|
+
*/
|
|
299
|
+
export declare function addRoomDisplayFlag(roomGridIndex: int | undefined, displayFlag: DisplayFlag, updateVisibility?: boolean): void;
|
|
300
|
+
|
|
290
301
|
/**
|
|
291
302
|
* Helper function to add all of the values in one set to another set. The first set passed will be
|
|
292
303
|
* modified in place.
|
|
@@ -615,8 +626,8 @@ export declare function canRunUnlockAchievements(): boolean;
|
|
|
615
626
|
|
|
616
627
|
export declare function capitalizeFirstLetter(string: string): string;
|
|
617
628
|
|
|
618
|
-
/** Maps card names to
|
|
619
|
-
export declare const
|
|
629
|
+
/** Maps card names to the values of the `CardType` enum. */
|
|
630
|
+
export declare const CARD_NAME_TO_TYPE_MAP: ReadonlyMap<string, CardType>;
|
|
620
631
|
|
|
621
632
|
/**
|
|
622
633
|
* Helper function for quickly switching to a new room without playing a particular animation. Use
|
|
@@ -625,8 +636,8 @@ export declare const CARD_MAP: ReadonlyMap<string, CardType>;
|
|
|
625
636
|
*/
|
|
626
637
|
export declare function changeRoom(roomGridIndex: int): void;
|
|
627
638
|
|
|
628
|
-
/** Maps character names to
|
|
629
|
-
export declare const
|
|
639
|
+
/** Maps character names to the values of the `PlayerType` enum. */
|
|
640
|
+
export declare const CHARACTER_NAME_TO_TYPE_MAP: Map<string, PlayerType>;
|
|
630
641
|
|
|
631
642
|
/**
|
|
632
643
|
* Helper function to determine if the given character can have red heart containers. Returns true
|
|
@@ -3656,7 +3667,8 @@ export declare function getNewRoomCandidate(seedOrRNG?: Seed | RNG): [adjacentRo
|
|
|
3656
3667
|
|
|
3657
3668
|
/**
|
|
3658
3669
|
* Helper function to iterate through the possible doors for a room and see if any of them would be
|
|
3659
|
-
* a valid spot to insert a brand new room on the floor.
|
|
3670
|
+
* a valid spot to insert a brand new room on the floor. (Any potential new rooms cannot be
|
|
3671
|
+
* connected to any other existing rooms on the floor.)
|
|
3660
3672
|
*
|
|
3661
3673
|
* @param roomGridIndex Optional. Default is the current room index.
|
|
3662
3674
|
* @returns A array of tuples of `DoorSlot` and room grid index.
|
|
@@ -3667,7 +3679,8 @@ export declare function getNewRoomCandidatesBesideRoom(roomGridIndex?: int): Arr
|
|
|
3667
3679
|
* Helper function to search through all of the rooms on the floor for a spot to insert a brand new
|
|
3668
3680
|
* room.
|
|
3669
3681
|
*
|
|
3670
|
-
* @returns A array of tuples
|
|
3682
|
+
* @returns A array of tuples containing the adjacent room grid index, the `DoorSlot`, and the new
|
|
3683
|
+
* room grid index.
|
|
3671
3684
|
*/
|
|
3672
3685
|
export declare function getNewRoomCandidatesForLevel(): Array<[
|
|
3673
3686
|
adjacentRoomGridIndex: int,
|
|
@@ -8520,7 +8533,7 @@ export declare type PickupIndex = int & {
|
|
|
8520
8533
|
};
|
|
8521
8534
|
|
|
8522
8535
|
/** Maps pill effect names to the values of the `PillEffect` enum. */
|
|
8523
|
-
export declare const
|
|
8536
|
+
export declare const PILL_NAME_TO_EFFECT_MAP: ReadonlyMap<string, PillEffect>;
|
|
8524
8537
|
|
|
8525
8538
|
export declare function playChargeSoundEffect(player: EntityPlayer, activeSlot: ActiveSlot): void;
|
|
8526
8539
|
|
|
@@ -9778,6 +9791,9 @@ export declare function removeGridEntities<T extends AnyGridEntity>(gridEntities
|
|
|
9778
9791
|
*/
|
|
9779
9792
|
export declare function removeGridEntity(gridEntityOrGridIndex: GridEntity | int, updateRoom: boolean): void;
|
|
9780
9793
|
|
|
9794
|
+
/** Helper function to remove all characters from a string that are not letters or numbers. */
|
|
9795
|
+
export declare function removeNonAlphanumericCharacters(str: string): string;
|
|
9796
|
+
|
|
9781
9797
|
/**
|
|
9782
9798
|
* Helper function to stop an entity spawned with the `spawnPersistentEntity` helper function from
|
|
9783
9799
|
* respawning.
|
|
@@ -9901,8 +9917,8 @@ export declare enum RockAltType {
|
|
|
9901
9917
|
BUCKET_DROSS = 5
|
|
9902
9918
|
}
|
|
9903
9919
|
|
|
9904
|
-
/** Maps room
|
|
9905
|
-
export declare const
|
|
9920
|
+
/** Maps room names to the values of the `RoomType` enum. */
|
|
9921
|
+
export declare const ROOM_NAME_TO_TYPE_MAP: ReadonlyMap<string, RoomType>;
|
|
9906
9922
|
|
|
9907
9923
|
/** This is used by the room history feature of the standard library. */
|
|
9908
9924
|
export declare interface RoomDescription {
|
|
@@ -10725,13 +10741,12 @@ export declare function setRoomData(roomGridIndex: int, roomData: Readonly<RoomC
|
|
|
10725
10741
|
* Helper function to set a particular room's minimap display flags (e.g. whether or not it is
|
|
10726
10742
|
* visible and so on).
|
|
10727
10743
|
*
|
|
10728
|
-
* You must call the `Level.UpdateVisibility` method after using this function for the changes to
|
|
10729
|
-
* take effect.
|
|
10730
|
-
*
|
|
10731
10744
|
* @param roomGridIndex Set to undefined to use the current room index.
|
|
10732
10745
|
* @param displayFlags The bit flags value to set. (See the `DisplayFlag` enum.)
|
|
10746
|
+
* @param updateVisibility Optional. Whether to call the `Level.UpdateVisibility` method in order to
|
|
10747
|
+
* make the changes immediately visible. Default is true.
|
|
10733
10748
|
*/
|
|
10734
|
-
export declare function setRoomDisplayFlags(roomGridIndex: int | undefined, displayFlags: BitFlags<DisplayFlag
|
|
10749
|
+
export declare function setRoomDisplayFlags(roomGridIndex: int | undefined, displayFlags: BitFlags<DisplayFlag>, updateVisibility?: boolean): void;
|
|
10735
10750
|
|
|
10736
10751
|
/**
|
|
10737
10752
|
* Helper function to emulate what happens when you bomb an Angel Statue or push a Reward Plate that
|
|
@@ -10739,6 +10754,16 @@ export declare function setRoomDisplayFlags(roomGridIndex: int | undefined, disp
|
|
|
10739
10754
|
*/
|
|
10740
10755
|
export declare function setRoomUncleared(): void;
|
|
10741
10756
|
|
|
10757
|
+
/**
|
|
10758
|
+
* Helper function to make a single room visible in a similar way to how the Compass makes a Boss
|
|
10759
|
+
* Room visible (e.g. by adding `DisplayFlag.SHOW_ICON`).
|
|
10760
|
+
*
|
|
10761
|
+
* @param roomGridIndex Set to undefined to use the current room index.
|
|
10762
|
+
* @param updateVisibility Optional. Whether to call the `Level.UpdateVisibility` method in order to
|
|
10763
|
+
* make the changes immediately visible. Default is true.
|
|
10764
|
+
*/
|
|
10765
|
+
export declare function setRoomVisible(roomGridIndex: int | undefined, updateVisibility?: boolean): void;
|
|
10766
|
+
|
|
10742
10767
|
/** Helper function to set a seed to an RNG object using Blade's recommended shift index. */
|
|
10743
10768
|
export declare function setSeed(rng: RNG, seed: Seed): void;
|
|
10744
10769
|
|
package/dist/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,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,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c,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC"}
|
package/dist/index.lua
CHANGED
|
@@ -1200,7 +1200,7 @@ do
|
|
|
1200
1200
|
end
|
|
1201
1201
|
end
|
|
1202
1202
|
do
|
|
1203
|
-
local ____export = require("maps.
|
|
1203
|
+
local ____export = require("maps.cardNameToTypeMap")
|
|
1204
1204
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1205
1205
|
if ____exportKey ~= "default" then
|
|
1206
1206
|
____exports[____exportKey] = ____exportValue
|
|
@@ -1208,7 +1208,7 @@ do
|
|
|
1208
1208
|
end
|
|
1209
1209
|
end
|
|
1210
1210
|
do
|
|
1211
|
-
local ____export = require("maps.
|
|
1211
|
+
local ____export = require("maps.characterNameToTypeMap")
|
|
1212
1212
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1213
1213
|
if ____exportKey ~= "default" then
|
|
1214
1214
|
____exports[____exportKey] = ____exportValue
|
|
@@ -1216,7 +1216,7 @@ do
|
|
|
1216
1216
|
end
|
|
1217
1217
|
end
|
|
1218
1218
|
do
|
|
1219
|
-
local ____export = require("maps.
|
|
1219
|
+
local ____export = require("maps.pillNameToEffectMap")
|
|
1220
1220
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1221
1221
|
if ____exportKey ~= "default" then
|
|
1222
1222
|
____exports[____exportKey] = ____exportValue
|
|
@@ -1224,7 +1224,7 @@ do
|
|
|
1224
1224
|
end
|
|
1225
1225
|
end
|
|
1226
1226
|
do
|
|
1227
|
-
local ____export = require("maps.
|
|
1227
|
+
local ____export = require("maps.roomNameToTypeMap")
|
|
1228
1228
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
1229
1229
|
if ____exportKey ~= "default" then
|
|
1230
1230
|
____exports[____exportKey] = ____exportValue
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cardNameToTypeMap.d.ts","sourceRoot":"","sources":["../../src/maps/cardNameToTypeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAIxD,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CA2M9D,CAAC"}
|
|
@@ -4,8 +4,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
|
|
7
|
-
--- Maps card names to
|
|
8
|
-
____exports.
|
|
7
|
+
--- Maps card names to the values of the `CardType` enum.
|
|
8
|
+
____exports.CARD_NAME_TO_TYPE_MAP = __TS__New(Map, {
|
|
9
9
|
{"fool", CardType.FOOL},
|
|
10
10
|
{"magician", CardType.MAGICIAN},
|
|
11
11
|
{"mag", CardType.MAGICIAN},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterNameToTypeMap.d.ts","sourceRoot":"","sources":["../../src/maps/characterNameToTypeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,mEAAmE;AACnE,eAAO,MAAM,0BAA0B,yBAoFrC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
7
|
+
--- Maps character names to the values of the `PlayerType` enum.
|
|
8
|
+
____exports.CHARACTER_NAME_TO_TYPE_MAP = __TS__New(Map, {
|
|
9
|
+
{"isaac", PlayerType.ISAAC},
|
|
10
|
+
{"magdalene", PlayerType.MAGDALENE},
|
|
11
|
+
{"maggy", PlayerType.MAGDALENE},
|
|
12
|
+
{"cain", PlayerType.CAIN},
|
|
13
|
+
{"judas", PlayerType.JUDAS},
|
|
14
|
+
{"blueBaby", PlayerType.BLUE_BABY},
|
|
15
|
+
{"bb", PlayerType.BLUE_BABY},
|
|
16
|
+
{"eve", PlayerType.EVE},
|
|
17
|
+
{"samson", PlayerType.SAMSON},
|
|
18
|
+
{"azazel", PlayerType.AZAZEL},
|
|
19
|
+
{"lazarus", PlayerType.LAZARUS},
|
|
20
|
+
{"laz", PlayerType.LAZARUS},
|
|
21
|
+
{"eden", PlayerType.EDEN},
|
|
22
|
+
{"theLost", PlayerType.THE_LOST},
|
|
23
|
+
{"lost", PlayerType.THE_LOST},
|
|
24
|
+
{"lazarus2", PlayerType.LAZARUS_2},
|
|
25
|
+
{"laz2", PlayerType.LAZARUS_2},
|
|
26
|
+
{"darkJudas", PlayerType.DARK_JUDAS},
|
|
27
|
+
{"dJudas", PlayerType.DARK_JUDAS},
|
|
28
|
+
{"blackJudas", PlayerType.DARK_JUDAS},
|
|
29
|
+
{"bJudas", PlayerType.DARK_JUDAS},
|
|
30
|
+
{"lilith", PlayerType.LILITH},
|
|
31
|
+
{"keeper", PlayerType.KEEPER},
|
|
32
|
+
{"apollyon", PlayerType.APOLLYON},
|
|
33
|
+
{"theForgotten", PlayerType.THE_FORGOTTEN},
|
|
34
|
+
{"forgotten", PlayerType.THE_FORGOTTEN},
|
|
35
|
+
{"theSoul", PlayerType.THE_SOUL},
|
|
36
|
+
{"soul", PlayerType.THE_SOUL},
|
|
37
|
+
{"bethany", PlayerType.BETHANY},
|
|
38
|
+
{"jacob", PlayerType.JACOB},
|
|
39
|
+
{"esau", PlayerType.ESAU},
|
|
40
|
+
{"taintedIsaac", PlayerType.ISAAC_B},
|
|
41
|
+
{"tIsaac", PlayerType.ISAAC_B},
|
|
42
|
+
{"taintedMagdalene", PlayerType.MAGDALENE_B},
|
|
43
|
+
{"tMagdalene", PlayerType.MAGDALENE_B},
|
|
44
|
+
{"taintedMaggy", PlayerType.MAGDALENE_B},
|
|
45
|
+
{"tMaggy", PlayerType.MAGDALENE_B},
|
|
46
|
+
{"taintedCain", PlayerType.CAIN_B},
|
|
47
|
+
{"tCain", PlayerType.CAIN_B},
|
|
48
|
+
{"taintedJudas", PlayerType.JUDAS_B},
|
|
49
|
+
{"tJudas", PlayerType.JUDAS_B},
|
|
50
|
+
{"taintedBlueBaby", PlayerType.BLUE_BABY_B},
|
|
51
|
+
{"tBlueBaby", PlayerType.BLUE_BABY_B},
|
|
52
|
+
{"tbb", PlayerType.BLUE_BABY_B},
|
|
53
|
+
{"taintedEve", PlayerType.EVE_B},
|
|
54
|
+
{"tEve", PlayerType.EVE_B},
|
|
55
|
+
{"taintedSamson", PlayerType.SAMSON_B},
|
|
56
|
+
{"tSamson", PlayerType.SAMSON_B},
|
|
57
|
+
{"taintedAzazel", PlayerType.AZAZEL_B},
|
|
58
|
+
{"tAzazel", PlayerType.AZAZEL_B},
|
|
59
|
+
{"taintedLazarus", PlayerType.LAZARUS_B},
|
|
60
|
+
{"tLazarus", PlayerType.LAZARUS_B},
|
|
61
|
+
{"taintedLaz", PlayerType.LAZARUS_B},
|
|
62
|
+
{"tLaz", PlayerType.LAZARUS_B},
|
|
63
|
+
{"taintedEden", PlayerType.EDEN_B},
|
|
64
|
+
{"tEden", PlayerType.EDEN_B},
|
|
65
|
+
{"taintedLost", PlayerType.THE_LOST_B},
|
|
66
|
+
{"tLost", PlayerType.THE_LOST_B},
|
|
67
|
+
{"taintedLilith", PlayerType.LILITH_B},
|
|
68
|
+
{"tLilith", PlayerType.LILITH_B},
|
|
69
|
+
{"taintedKeeper", PlayerType.KEEPER_B},
|
|
70
|
+
{"tKeeper", PlayerType.KEEPER_B},
|
|
71
|
+
{"taintedApollyon", PlayerType.APOLLYON_B},
|
|
72
|
+
{"tApollyon", PlayerType.APOLLYON_B},
|
|
73
|
+
{"taintedForgotten", PlayerType.THE_FORGOTTEN_B},
|
|
74
|
+
{"tForgotten", PlayerType.THE_FORGOTTEN_B},
|
|
75
|
+
{"taintedBethany", PlayerType.BETHANY_B},
|
|
76
|
+
{"tBethany", PlayerType.BETHANY_B},
|
|
77
|
+
{"taintedJacob", PlayerType.JACOB_B},
|
|
78
|
+
{"tJacob", PlayerType.JACOB_B},
|
|
79
|
+
{"taintedLazarusDead", PlayerType.LAZARUS_2_B},
|
|
80
|
+
{"tLazarusDead", PlayerType.LAZARUS_2_B},
|
|
81
|
+
{"taintedLazDead", PlayerType.LAZARUS_2_B},
|
|
82
|
+
{"tLazDead", PlayerType.LAZARUS_2_B},
|
|
83
|
+
{"deadTaintedLazarus", PlayerType.LAZARUS_2_B},
|
|
84
|
+
{"deadTLazarus", PlayerType.LAZARUS_2_B},
|
|
85
|
+
{"deadTaintedLaz", PlayerType.LAZARUS_2_B},
|
|
86
|
+
{"deadTLaz", PlayerType.LAZARUS_2_B},
|
|
87
|
+
{"taintedJacobGhost", PlayerType.JACOB_2_B},
|
|
88
|
+
{"tJacobGhost", PlayerType.JACOB_2_B},
|
|
89
|
+
{"taintedSoul", PlayerType.THE_SOUL_B},
|
|
90
|
+
{"tSoul", PlayerType.THE_SOUL_B}
|
|
91
|
+
})
|
|
92
|
+
return ____exports
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { CollectibleType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const DEFAULT_COLLECTIBLE_DESCRIPTION = "Unknown";
|
|
3
|
+
/**
|
|
4
|
+
* Maps collectible types to the real English descriptions from the "stringtable.sta" file.
|
|
5
|
+
*
|
|
6
|
+
* This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
7
|
+
* converted to a type-safe object.)
|
|
8
|
+
*/
|
|
3
9
|
export declare const COLLECTIBLE_DESCRIPTION_MAP: ReadonlyMap<CollectibleType, string>;
|
|
4
10
|
//# sourceMappingURL=collectibleDescriptionMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectibleDescriptionMap.d.ts","sourceRoot":"","sources":["../../src/maps/collectibleDescriptionMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,eAAO,MAAM,+BAA+B,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"collectibleDescriptionMap.d.ts","sourceRoot":"","sources":["../../src/maps/collectibleDescriptionMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,eAAO,MAAM,+BAA+B,YAAY,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,eAAe,EAAE,MAAM,CAktBzE,CAAC"}
|
|
@@ -3,6 +3,10 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
____exports.DEFAULT_COLLECTIBLE_DESCRIPTION = "Unknown"
|
|
6
|
+
--- Maps collectible types to the real English descriptions from the "stringtable.sta" file.
|
|
7
|
+
--
|
|
8
|
+
-- This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
9
|
+
-- converted to a type-safe object.)
|
|
6
10
|
____exports.COLLECTIBLE_DESCRIPTION_MAP = __TS__New(Map, {
|
|
7
11
|
{1, "Tears up"},
|
|
8
12
|
{2, "Triple shot"},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectibleNameToTypeMap.d.ts","sourceRoot":"","sources":["../../src/maps/collectibleNameToTypeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAe/D,eAAO,MAAM,4BAA4B,EAAE,WAAW,CACpD,MAAM,EACN,eAAe,CACW,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____string = require("functions.string")
|
|
7
|
+
local removeNonAlphanumericCharacters = ____string.removeNonAlphanumericCharacters
|
|
8
|
+
local ____collectibleTypeToNameMap = require("maps.collectibleTypeToNameMap")
|
|
9
|
+
local COLLECTIBLE_TYPE_TO_NAME_MAP = ____collectibleTypeToNameMap.COLLECTIBLE_TYPE_TO_NAME_MAP
|
|
10
|
+
--- Maps collectible names to the values of the `CollectibleType` enum.
|
|
11
|
+
--
|
|
12
|
+
-- For a mapping of `CollectibleType` to name, see `COLLECTIBLE_TYPE_TO_NAME_MAP`.
|
|
13
|
+
local collectibleNameToTypeMap = __TS__New(Map)
|
|
14
|
+
for ____, ____value in __TS__Iterator(COLLECTIBLE_TYPE_TO_NAME_MAP) do
|
|
15
|
+
local collectibleType = ____value[1]
|
|
16
|
+
local name = ____value[2]
|
|
17
|
+
local simpleString = removeNonAlphanumericCharacters(nil, name)
|
|
18
|
+
collectibleNameToTypeMap:set(simpleString, collectibleType)
|
|
19
|
+
end
|
|
20
|
+
____exports.COLLECTIBLE_NAME_TO_TYPE_MAP = collectibleNameToTypeMap
|
|
21
|
+
return ____exports
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CollectibleType } from "isaac-typescript-definitions";
|
|
2
|
+
export declare const DEFAULT_COLLECTIBLE_NAME = "Unknown";
|
|
3
|
+
/**
|
|
4
|
+
* Maps collectible types to the real English names from the "stringtable.sta" file.
|
|
5
|
+
*
|
|
6
|
+
* This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
7
|
+
* converted to a type-safe object.)
|
|
8
|
+
*
|
|
9
|
+
* For a mapping of name to `CollectibleType`, see `COLLECTIBLE_NAME_TO_TYPE_MAP`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const COLLECTIBLE_TYPE_TO_NAME_MAP: ReadonlyMap<CollectibleType, string>;
|
|
12
|
+
//# sourceMappingURL=collectibleTypeToNameMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectibleTypeToNameMap.d.ts","sourceRoot":"","sources":["../../src/maps/collectibleTypeToNameMap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,EAAE,WAAW,CACpD,eAAe,EACf,MAAM,CAktBN,CAAC"}
|
|
@@ -3,7 +3,13 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
____exports.DEFAULT_COLLECTIBLE_NAME = "Unknown"
|
|
6
|
-
|
|
6
|
+
--- Maps collectible types to the real English names from the "stringtable.sta" file.
|
|
7
|
+
--
|
|
8
|
+
-- This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
9
|
+
-- converted to a type-safe object.)
|
|
10
|
+
--
|
|
11
|
+
-- For a mapping of name to `CollectibleType`, see `COLLECTIBLE_NAME_TO_TYPE_MAP`.
|
|
12
|
+
____exports.COLLECTIBLE_TYPE_TO_NAME_MAP = __TS__New(Map, {
|
|
7
13
|
{1, "The Sad Onion"},
|
|
8
14
|
{2, "The Inner Eye"},
|
|
9
15
|
{3, "Spoon Bender"},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PillEffect } from "isaac-typescript-definitions";
|
|
2
2
|
/** Maps pill effect names to the values of the `PillEffect` enum. */
|
|
3
|
-
export declare const
|
|
4
|
-
//# sourceMappingURL=
|
|
3
|
+
export declare const PILL_NAME_TO_EFFECT_MAP: ReadonlyMap<string, PillEffect>;
|
|
4
|
+
//# sourceMappingURL=pillNameToEffectMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pillNameToEffectMap.d.ts","sourceRoot":"","sources":["../../src/maps/pillNameToEffectMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAsFnE,CAAC"}
|
|
@@ -5,7 +5,7 @@ local ____exports = {}
|
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local PillEffect = ____isaac_2Dtypescript_2Ddefinitions.PillEffect
|
|
7
7
|
--- Maps pill effect names to the values of the `PillEffect` enum.
|
|
8
|
-
____exports.
|
|
8
|
+
____exports.PILL_NAME_TO_EFFECT_MAP = __TS__New(Map, {
|
|
9
9
|
{"badGas", PillEffect.BAD_GAS},
|
|
10
10
|
{"gas", PillEffect.BAD_GAS},
|
|
11
11
|
{"badTrip", PillEffect.BAD_TRIP},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roomNameToTypeMap.d.ts","sourceRoot":"","sources":["../../src/maps/roomNameToTypeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAmC9D,CAAC"}
|
|
@@ -4,8 +4,8 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
7
|
-
--- Maps room
|
|
8
|
-
____exports.
|
|
7
|
+
--- Maps room names to the values of the `RoomType` enum.
|
|
8
|
+
____exports.ROOM_NAME_TO_TYPE_MAP = __TS__New(Map, {
|
|
9
9
|
{"default", RoomType.DEFAULT},
|
|
10
10
|
{"shop", RoomType.SHOP},
|
|
11
11
|
{"error", RoomType.ERROR},
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const DEFAULT_TRINKET_DESCRIPTION = "Unknown";
|
|
3
|
+
/**
|
|
4
|
+
* Maps trinket types to the real English descriptions from the "stringtable.sta" file.
|
|
5
|
+
*
|
|
6
|
+
* This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
7
|
+
* converted to a type-safe object.)
|
|
8
|
+
*/
|
|
3
9
|
export declare const TRINKET_DESCRIPTION_MAP: ReadonlyMap<TrinketType, string>;
|
|
4
10
|
//# sourceMappingURL=trinketDescriptionMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinketDescriptionMap.d.ts","sourceRoot":"","sources":["../../src/maps/trinketDescriptionMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,2BAA2B,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"trinketDescriptionMap.d.ts","sourceRoot":"","sources":["../../src/maps/trinketDescriptionMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,2BAA2B,YAAY,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CA8LjE,CAAC"}
|
|
@@ -3,6 +3,10 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
____exports.DEFAULT_TRINKET_DESCRIPTION = "Unknown"
|
|
6
|
+
--- Maps trinket types to the real English descriptions from the "stringtable.sta" file.
|
|
7
|
+
--
|
|
8
|
+
-- This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
9
|
+
-- converted to a type-safe object.)
|
|
6
10
|
____exports.TRINKET_DESCRIPTION_MAP = __TS__New(Map, {
|
|
7
11
|
{1, "Gulp!"},
|
|
8
12
|
{2, "It feels lucky?"},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trinketNameToTypeMap.d.ts","sourceRoot":"","sources":["../../src/maps/trinketNameToTypeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAe3D,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAChD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____string = require("functions.string")
|
|
7
|
+
local removeNonAlphanumericCharacters = ____string.removeNonAlphanumericCharacters
|
|
8
|
+
local ____trinketTypeToNameMap = require("maps.trinketTypeToNameMap")
|
|
9
|
+
local TRINKET_TYPE_TO_NAME_MAP = ____trinketTypeToNameMap.TRINKET_TYPE_TO_NAME_MAP
|
|
10
|
+
--- Maps trinket names to the values of the `TrinketType` enum.
|
|
11
|
+
--
|
|
12
|
+
-- For a mapping of `TrinketType` to name, see `TRINKET_TYPE_TO_NAME_MAP`.
|
|
13
|
+
local trinketNameToTypeMap = __TS__New(Map)
|
|
14
|
+
for ____, ____value in __TS__Iterator(TRINKET_TYPE_TO_NAME_MAP) do
|
|
15
|
+
local trinketType = ____value[1]
|
|
16
|
+
local name = ____value[2]
|
|
17
|
+
local simpleString = removeNonAlphanumericCharacters(nil, name)
|
|
18
|
+
trinketNameToTypeMap:set(simpleString, trinketType)
|
|
19
|
+
end
|
|
20
|
+
____exports.TRINKET_NAME_TO_TYPE_MAP = trinketNameToTypeMap
|
|
21
|
+
return ____exports
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TrinketType } from "isaac-typescript-definitions";
|
|
2
|
+
export declare const DEFAULT_TRINKET_NAME = "Unknown";
|
|
3
|
+
/**
|
|
4
|
+
* Maps trinket types to the real English names from the "stringtable.sta" file.
|
|
5
|
+
*
|
|
6
|
+
* This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
7
|
+
* converted to a type-safe object.)
|
|
8
|
+
*
|
|
9
|
+
* For a mapping of name to `TrinketType`, see `TRINKET_NAME_TO_TYPE_MAP`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TRINKET_TYPE_TO_NAME_MAP: ReadonlyMap<TrinketType, string>;
|
|
12
|
+
//# sourceMappingURL=trinketTypeToNameMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trinketTypeToNameMap.d.ts","sourceRoot":"","sources":["../../src/maps/trinketTypeToNameMap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CA8LlE,CAAC"}
|
|
@@ -3,7 +3,13 @@ local Map = ____lualib.Map
|
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
____exports.DEFAULT_TRINKET_NAME = "Unknown"
|
|
6
|
-
|
|
6
|
+
--- Maps trinket types to the real English names from the "stringtable.sta" file.
|
|
7
|
+
--
|
|
8
|
+
-- This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
|
|
9
|
+
-- converted to a type-safe object.)
|
|
10
|
+
--
|
|
11
|
+
-- For a mapping of name to `TrinketType`, see `TRINKET_NAME_TO_TYPE_MAP`.
|
|
12
|
+
____exports.TRINKET_TYPE_TO_NAME_MAP = __TS__New(Map, {
|
|
7
13
|
{1, "Swallowed Penny"},
|
|
8
14
|
{2, "Petrified Poop"},
|
|
9
15
|
{3, "AAA Battery"},
|
|
@@ -16,7 +16,7 @@ ____exports.CHARACTER_DAMAGE_MULTIPLIERS = {
|
|
|
16
16
|
[PlayerType.EDEN] = 1,
|
|
17
17
|
[PlayerType.THE_LOST] = 1,
|
|
18
18
|
[PlayerType.LAZARUS_2] = 1.4,
|
|
19
|
-
[PlayerType.
|
|
19
|
+
[PlayerType.DARK_JUDAS] = 2,
|
|
20
20
|
[PlayerType.LILITH] = 1,
|
|
21
21
|
[PlayerType.KEEPER] = 1.2,
|
|
22
22
|
[PlayerType.APOLLYON] = 1,
|
|
@@ -15,7 +15,7 @@ ____exports.CHARACTER_NAMES = {
|
|
|
15
15
|
[PlayerType.EDEN] = "Eden",
|
|
16
16
|
[PlayerType.THE_LOST] = "The Lost",
|
|
17
17
|
[PlayerType.LAZARUS_2] = "Lazarus II",
|
|
18
|
-
[PlayerType.
|
|
18
|
+
[PlayerType.DARK_JUDAS] = "Dark Judas",
|
|
19
19
|
[PlayerType.LILITH] = "Lilith",
|
|
20
20
|
[PlayerType.KEEPER] = "Keeper",
|
|
21
21
|
[PlayerType.APOLLYON] = "Apollyon",
|
|
@@ -16,7 +16,7 @@ ____exports.PLAYER_NAME_PNG_FILE_NAMES = {
|
|
|
16
16
|
[PlayerType.EDEN] = "playername_09_eden.png",
|
|
17
17
|
[PlayerType.THE_LOST] = "playername_12_thelost.png",
|
|
18
18
|
[PlayerType.LAZARUS_2] = "playername_10_lazarus.png",
|
|
19
|
-
[PlayerType.
|
|
19
|
+
[PlayerType.DARK_JUDAS] = "playername_04_judas.png",
|
|
20
20
|
[PlayerType.LILITH] = "playername_13_lilith.png",
|
|
21
21
|
[PlayerType.KEEPER] = "playername_14_thekeeper.png",
|
|
22
22
|
[PlayerType.APOLLYON] = "playername_15_apollyon.png",
|
|
@@ -16,7 +16,7 @@ ____exports.PLAYER_PORTRAIT_PNG_FILE_NAMES = {
|
|
|
16
16
|
[PlayerType.EDEN] = "playerportrait_eden.png",
|
|
17
17
|
[PlayerType.THE_LOST] = "playerportrait_thelost.png",
|
|
18
18
|
[PlayerType.LAZARUS_2] = "playerportrait_lazarus2.png",
|
|
19
|
-
[PlayerType.
|
|
19
|
+
[PlayerType.DARK_JUDAS] = "playerportrait_darkjudas.png",
|
|
20
20
|
[PlayerType.LILITH] = "playerportrait_lilith.png",
|
|
21
21
|
[PlayerType.KEEPER] = "playerportrait_keeper.png",
|
|
22
22
|
[PlayerType.APOLLYON] = "playerportrait_apollyon.png",
|
|
@@ -4,5 +4,5 @@ local __TS__New = ____lualib.__TS__New
|
|
|
4
4
|
local ____exports = {}
|
|
5
5
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
6
|
local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
7
|
-
____exports.CHARACTERS_WITH_BLACK_HEART_FROM_ETERNAL_HEART_SET = __TS__New(Set, {PlayerType.
|
|
7
|
+
____exports.CHARACTERS_WITH_BLACK_HEART_FROM_ETERNAL_HEART_SET = __TS__New(Set, {PlayerType.DARK_JUDAS, PlayerType.JUDAS_B})
|
|
8
8
|
return ____exports
|
|
@@ -9,7 +9,7 @@ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
|
|
|
9
9
|
____exports.CHARACTERS_WITH_NO_RED_HEARTS_SET = __TS__New(Set, {
|
|
10
10
|
PlayerType.BLUE_BABY,
|
|
11
11
|
PlayerType.THE_LOST,
|
|
12
|
-
PlayerType.
|
|
12
|
+
PlayerType.DARK_JUDAS,
|
|
13
13
|
PlayerType.JUDAS_B,
|
|
14
14
|
PlayerType.BLUE_BABY_B,
|
|
15
15
|
PlayerType.THE_LOST_B,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.16.1",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/index",
|
|
23
23
|
"types": "dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^4.0.
|
|
25
|
+
"isaac-typescript-definitions": "^4.0.7"
|
|
26
26
|
}
|
|
27
27
|
}
|