isaacscript-common 1.0.597 → 1.0.601
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/postFlip.lua +1 -2
- package/dist/callbacks/postPurchase.lua +7 -6
- package/dist/callbacks/preBerserkDeath.lua +3 -1
- package/dist/callbacks/preNewLevel.lua +7 -5
- package/dist/callbacks/subscriptions/{PreNewLevel.d.ts → preNewLevel.d.ts} +0 -0
- package/dist/callbacks/subscriptions/{PreNewLevel.lua → preNewLevel.lua} +0 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.lua +16 -0
- package/dist/features/getCollectibleItemPoolType.d.ts +2 -2
- package/dist/features/saveDataManager/exports.lua +5 -0
- package/dist/features/sirenHelpers.lua +3 -1
- package/dist/functions/array.d.ts +5 -2
- package/dist/functions/array.lua +26 -31
- package/dist/functions/collectibles.d.ts +5 -0
- package/dist/functions/collectibles.lua +11 -11
- package/dist/functions/entity.d.ts +16 -10
- package/dist/functions/entity.lua +34 -31
- package/dist/functions/gridEntity.lua +7 -6
- package/dist/functions/input.d.ts +2 -2
- package/dist/functions/jsonRoom.lua +1 -2
- package/dist/functions/log.d.ts +4 -4
- package/dist/functions/log.lua +15 -18
- package/dist/functions/player.d.ts +5 -0
- package/dist/functions/player.lua +14 -9
- package/dist/functions/pocketItems.lua +4 -6
- package/dist/functions/rooms.lua +26 -33
- package/dist/functions/transformations.lua +3 -1
- package/dist/functions/trinkets.lua +4 -12
- package/dist/types/CallbackParametersCustom.d.ts +1 -1
- package/dist/types/ModUpgraded.lua +3 -5
- package/package.json +2 -2
- package/dist/callbacks/postSlot.d.ts +0 -2
- package/dist/callbacks/postSlot.lua +0 -48
- package/dist/callbacks/postSlotRender.d.ts +0 -2
- package/dist/callbacks/postSlotRender.lua +0 -20
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered - Copy.d.ts +0 -5
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered - Copy.lua +0 -26
- package/dist/cardNameMap.d.ts +0 -2
- package/dist/cardNameMap.lua +0 -5
- package/dist/collectibleNameMap.d.ts +0 -2
- package/dist/collectibleNameMap.lua +0 -5
- package/dist/collectibleSet.d.ts +0 -1
- package/dist/collectibleSet.lua +0 -22
- package/dist/functions/card.d.ts +0 -25
- package/dist/functions/card.lua +0 -41
- package/dist/functions/items.d.ts +0 -9
- package/dist/functions/items.lua +0 -9
- package/dist/functions/localization.d.ts +0 -2
- package/dist/functions/localization.lua +0 -8
- package/dist/functions/sound.d.ts +0 -7
- package/dist/functions/sound.lua +0 -7
- package/dist/gridEntityMap.d.ts +0 -2
- package/dist/gridEntityMap.lua +0 -5
- package/dist/maps/roomTypeToItemPoolMap.d.ts +0 -2
- package/dist/maps/roomTypeToItemPoolMap.lua +0 -19
- package/dist/maps/transformationMap.d.ts +0 -5
- package/dist/maps/transformationMap.lua +0 -56
- package/dist/patchPrintFunction.d.ts +0 -1
- package/dist/patchPrintFunction.lua +0 -45
- package/dist/pillEffectNameMap.d.ts +0 -2
- package/dist/pillEffectNameMap.lua +0 -5
- package/dist/transformationMap.d.ts +0 -5
- package/dist/transformationMap.lua +0 -56
- package/dist/trinketNameMap.d.ts +0 -2
- package/dist/trinketNameMap.lua +0 -5
package/dist/collectibleSet.lua
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
local ____collectibles = require("functions.collectibles")
|
|
5
|
-
local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
|
|
6
|
-
local initSet
|
|
7
|
-
function initSet(self)
|
|
8
|
-
local itemConfig = Isaac.GetItemConfig()
|
|
9
|
-
do
|
|
10
|
-
local collectibleType = 1
|
|
11
|
-
while collectibleType <= getMaxCollectibleID(nil) do
|
|
12
|
-
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|
|
13
|
-
if itemConfigItem ~= nil then
|
|
14
|
-
____exports.COLLECTIBLE_SET:add(collectibleType)
|
|
15
|
-
end
|
|
16
|
-
collectibleType = collectibleType + 1
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
____exports.COLLECTIBLE_SET = __TS__New(Set)
|
|
21
|
-
initSet(nil)
|
|
22
|
-
return ____exports
|
package/dist/functions/card.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/**
|
|
3
|
-
* Has an equal chance of returning any card (e.g. Fool, Reverse Fool, Wild Card, etc.). This will
|
|
4
|
-
* not return any runes or objects.
|
|
5
|
-
*/
|
|
6
|
-
export declare function getRandomCard(seed?: number): Card;
|
|
7
|
-
/**
|
|
8
|
-
* Has an equal chance of returning any rune (e.g. Rune of Hagalaz, Blank Rune, Black Rune, Soul of
|
|
9
|
-
* Isaac, etc.). This will never return a Rune Shard.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getRandomRune(seed?: number): Card;
|
|
12
|
-
/**
|
|
13
|
-
* Returns true for entries in the Card enum that are not a rune or an object (e.g. Fool, Reverse
|
|
14
|
-
* Fool, Wild Card, etc.).
|
|
15
|
-
*/
|
|
16
|
-
export declare function isCard(card: Card): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Returns true for entries in the Card enum that are not a card and not a rune (like Dice Shard).
|
|
19
|
-
*/
|
|
20
|
-
export declare function isNotCardOrRune(card: Card): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Returns true for entries in the Card enum that are a rune. (e.g. Rune of Hagalaz, Blank Rune,
|
|
23
|
-
* Black Rune, Rune Shard, Soul of Isaac, etc.)
|
|
24
|
-
*/
|
|
25
|
-
export declare function isRune(card: Card): boolean;
|
package/dist/functions/card.lua
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____exports = {}
|
|
3
|
-
local ____random = require("functions.random")
|
|
4
|
-
local getRandomInt = ____random.getRandomInt
|
|
5
|
-
local nextSeed = ____random.nextSeed
|
|
6
|
-
function ____exports.isCard(self, card)
|
|
7
|
-
return ____exports.isNotCardOrRune(nil, card) and (not ____exports.isRune(nil, card))
|
|
8
|
-
end
|
|
9
|
-
function ____exports.isNotCardOrRune(self, card)
|
|
10
|
-
return ((card == Card.CARD_DICE_SHARD) or (card == Card.CARD_EMERGENCY_CONTACT)) or (card == Card.CARD_CRACKED_KEY)
|
|
11
|
-
end
|
|
12
|
-
function ____exports.isRune(self, card)
|
|
13
|
-
return (((card >= Card.RUNE_HAGALAZ) and (card <= Card.RUNE_BLACK)) or (card == Card.RUNE_SHARD)) or ((card >= Card.CARD_SOUL_ISAAC) and (card <= Card.CARD_SOUL_JACOB))
|
|
14
|
-
end
|
|
15
|
-
function ____exports.getRandomCard(self, seed)
|
|
16
|
-
if seed == nil then
|
|
17
|
-
seed = Random()
|
|
18
|
-
end
|
|
19
|
-
local card
|
|
20
|
-
repeat
|
|
21
|
-
do
|
|
22
|
-
seed = nextSeed(nil, seed)
|
|
23
|
-
card = getRandomInt(nil, 1, Card.NUM_CARDS - 1)
|
|
24
|
-
end
|
|
25
|
-
until ____exports.isCard(nil, card)
|
|
26
|
-
return card
|
|
27
|
-
end
|
|
28
|
-
function ____exports.getRandomRune(self, seed)
|
|
29
|
-
if seed == nil then
|
|
30
|
-
seed = Random()
|
|
31
|
-
end
|
|
32
|
-
local card
|
|
33
|
-
repeat
|
|
34
|
-
do
|
|
35
|
-
seed = nextSeed(nil, seed)
|
|
36
|
-
card = getRandomInt(nil, 1, Card.NUM_CARDS - 1)
|
|
37
|
-
end
|
|
38
|
-
until not ((not ____exports.isRune(nil, card)) or (card == Card.RUNE_SHARD))
|
|
39
|
-
return card
|
|
40
|
-
end
|
|
41
|
-
return ____exports
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/**
|
|
3
|
-
* Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
|
|
4
|
-
* should remove an item.
|
|
5
|
-
*
|
|
6
|
-
* The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
|
|
7
|
-
* Python program located at: https://github.com/Rchardon/RebirthItemTracker
|
|
8
|
-
*/
|
|
9
|
-
export declare function removeItemFromItemTracker(collectibleType: CollectibleType | int): void;
|
package/dist/functions/items.lua
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____exports = {}
|
|
3
|
-
function ____exports.removeItemFromItemTracker(self, collectibleType)
|
|
4
|
-
local itemName = getItemName(nil, collectibleType)
|
|
5
|
-
Isaac.DebugString(
|
|
6
|
-
((("Removing voided collectible " .. tostring(collectibleType)) .. " (") .. tostring(itemName)) .. ") from player 0 (Player)"
|
|
7
|
-
)
|
|
8
|
-
end
|
|
9
|
-
return ____exports
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____exports = {}
|
|
3
|
-
local LANGUAGE_NAMES = {en = "English", jp = "Japanese", kr = "Korean", zh = "Chinese (Simple)", ru = "Russian", de = "German", es = "Spanish"}
|
|
4
|
-
function ____exports.getLanguageName(self)
|
|
5
|
-
local languageAbbreviation = Options.Language
|
|
6
|
-
return LANGUAGE_NAMES[languageAbbreviation]
|
|
7
|
-
end
|
|
8
|
-
return ____exports
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/**
|
|
3
|
-
* Helper function to play a sound using the correct volume (with respect to the user's volume
|
|
4
|
-
* setting). Use this function over calling `SFXManager().Play()` directly because calling it
|
|
5
|
-
* directly will not respect the current volume setting.
|
|
6
|
-
*/
|
|
7
|
-
export declare function playSound(soundEffect: SoundEffect | int): void;
|
package/dist/functions/sound.lua
DELETED
package/dist/gridEntityMap.d.ts
DELETED
package/dist/gridEntityMap.lua
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
____exports.GRID_ENTITY_MAP = __TS__New(Map, {{1000, {GridEntityType.GRID_ROCK, 0}}, {1001, {GridEntityType.GRID_ROCK_BOMB, 0}}, {1002, {GridEntityType.GRID_ROCK_ALT, 0}}, {1008, {GridEntityType.GRID_ROCK_ALT2, 0}}, {1010, {GridEntityType.GRID_ROCK_SPIKED, 0}}, {1011, {GridEntityType.GRID_ROCK_GOLD, 0}}, {1300, {GridEntityType.GRID_TNT, 0}}, {1490, {GridEntityType.GRID_POOP, 1}}, {1494, {GridEntityType.GRID_POOP, 4}}, {1495, {GridEntityType.GRID_POOP, 2}}, {1496, {GridEntityType.GRID_POOP, 3}}, {1497, {GridEntityType.GRID_POOP, 5}}, {1498, {GridEntityType.GRID_POOP, 6}}, {1499, {GridEntityType.GRID_POOP, 7}}, {1500, {GridEntityType.GRID_POOP, 0}}, {1501, {GridEntityType.GRID_POOP, 11}}, {1900, {GridEntityType.GRID_ROCKB, 0}}, {1901, {GridEntityType.GRID_PILLAR, 0}}, {1930, {GridEntityType.GRID_SPIKES, 0}}, {1931, {GridEntityType.GRID_SPIKES_ONOFF, 0}}, {1940, {GridEntityType.GRID_SPIDERWEB, 0}}, {1999, {GridEntityType.GRID_WALL, 0}}, {3000, {GridEntityType.GRID_PIT, 0}}, {3009, {GridEntityType.GRID_PIT, 0}}, {4000, {GridEntityType.GRID_LOCK, 0}}, {4500, {GridEntityType.GRID_PRESSURE_PLATE, 0}}, {5000, {GridEntityType.GRID_STATUE, 0}}, {5001, {GridEntityType.GRID_STATUE, 1}}, {6100, {GridEntityType.GRID_TELEPORTER, 0}}, {9000, {GridEntityType.GRID_TRAPDOOR, 0}}, {9100, {GridEntityType.GRID_STAIRS, 0}}, {10000, {GridEntityType.GRID_GRAVITY, 0}}})
|
|
5
|
-
return ____exports
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
____exports.ROOM_TYPE_TO_ITEM_POOL_TYPE_MAP = __TS__New(Map, {
|
|
5
|
-
{RoomType.ROOM_SHOP, ItemPoolType.POOL_SHOP},
|
|
6
|
-
{RoomType.ROOM_TREASURE, ItemPoolType.POOL_TREASURE},
|
|
7
|
-
{RoomType.ROOM_BOSS, ItemPoolType.POOL_BOSS},
|
|
8
|
-
{RoomType.ROOM_SECRET, ItemPoolType.POOL_SECRET},
|
|
9
|
-
{RoomType.ROOM_CURSE, ItemPoolType.POOL_CURSE},
|
|
10
|
-
{RoomType.ROOM_CHALLENGE, ItemPoolType.POOL_BOSS},
|
|
11
|
-
{RoomType.ROOM_LIBRARY, ItemPoolType.POOL_LIBRARY},
|
|
12
|
-
{RoomType.ROOM_DEVIL, ItemPoolType.POOL_DEVIL},
|
|
13
|
-
{RoomType.ROOM_ANGEL, ItemPoolType.POOL_ANGEL},
|
|
14
|
-
{RoomType.ROOM_CHEST, ItemPoolType.POOL_GOLDEN_CHEST},
|
|
15
|
-
{RoomType.ROOM_BLACK_MARKET, ItemPoolType.POOL_SHOP},
|
|
16
|
-
{RoomType.ROOM_PLANETARIUM, ItemPoolType.POOL_PLANETARIUM},
|
|
17
|
-
{RoomType.ROOM_ULTRASECRET, ItemPoolType.POOL_ULTRA_SECRET}
|
|
18
|
-
})
|
|
19
|
-
return ____exports
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
export declare const TRANSFORMATION_TO_TAG_MAP: Map<PlayerForm, ItemConfigTag>;
|
|
3
|
-
export declare const TRANSFORMATIONS_NOT_BASED_ON_ITEMS: Set<PlayerForm>;
|
|
4
|
-
export declare const TRANSFORMATION_TO_ITEMS_MAP: Map<PlayerForm, Set<number>>;
|
|
5
|
-
export declare const ITEM_TO_TRANSFORMATION_MAP: Map<number, Set<PlayerForm>>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
local initMaps
|
|
5
|
-
local ____collectibles = require("functions.collectibles")
|
|
6
|
-
local collectibleHasTag = ____collectibles.collectibleHasTag
|
|
7
|
-
local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
|
|
8
|
-
function initMaps(self)
|
|
9
|
-
for ____, playerForm in __TS__Iterator(
|
|
10
|
-
____exports.TRANSFORMATION_TO_TAG_MAP:keys()
|
|
11
|
-
) do
|
|
12
|
-
____exports.TRANSFORMATION_TO_ITEMS_MAP:set(
|
|
13
|
-
playerForm,
|
|
14
|
-
__TS__New(Set)
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
do
|
|
18
|
-
local collectibleType = 1
|
|
19
|
-
while collectibleType <= getMaxCollectibleID(nil) do
|
|
20
|
-
for ____, ____value in __TS__Iterator(
|
|
21
|
-
____exports.TRANSFORMATION_TO_TAG_MAP:entries()
|
|
22
|
-
) do
|
|
23
|
-
local playerForm
|
|
24
|
-
playerForm = ____value[1]
|
|
25
|
-
local tag
|
|
26
|
-
tag = ____value[2]
|
|
27
|
-
do
|
|
28
|
-
if not collectibleHasTag(nil, collectibleType, tag) then
|
|
29
|
-
goto __continue5
|
|
30
|
-
end
|
|
31
|
-
local items = ____exports.TRANSFORMATION_TO_ITEMS_MAP:get(playerForm)
|
|
32
|
-
if items == nil then
|
|
33
|
-
error(
|
|
34
|
-
"Failed to get the items for transformation: " .. tostring(playerForm)
|
|
35
|
-
)
|
|
36
|
-
end
|
|
37
|
-
items:add(collectibleType)
|
|
38
|
-
local transformations = ____exports.ITEM_TO_TRANSFORMATION_MAP:get(collectibleType)
|
|
39
|
-
if transformations == nil then
|
|
40
|
-
transformations = __TS__New(Set)
|
|
41
|
-
____exports.ITEM_TO_TRANSFORMATION_MAP:set(collectibleType, transformations)
|
|
42
|
-
end
|
|
43
|
-
transformations:add(playerForm)
|
|
44
|
-
end
|
|
45
|
-
::__continue5::
|
|
46
|
-
end
|
|
47
|
-
collectibleType = collectibleType + 1
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
____exports.TRANSFORMATION_TO_TAG_MAP = __TS__New(Map, {{PlayerForm.PLAYERFORM_GUPPY, 32}, {PlayerForm.PLAYERFORM_LORD_OF_THE_FLIES, 64}, {PlayerForm.PLAYERFORM_MUSHROOM, 256}, {PlayerForm.PLAYERFORM_ANGEL, 1024}, {PlayerForm.PLAYERFORM_BOB, 128}, {PlayerForm.PLAYERFORM_DRUGS, 2}, {PlayerForm.PLAYERFORM_MOM, 4}, {PlayerForm.PLAYERFORM_BABY, 512}, {PlayerForm.PLAYERFORM_EVIL_ANGEL, 2048}, {PlayerForm.PLAYERFORM_POOP, 4096}, {PlayerForm.PLAYERFORM_BOOK_WORM, 8192}, {PlayerForm.PLAYERFORM_SPIDERBABY, 16384}})
|
|
52
|
-
____exports.TRANSFORMATIONS_NOT_BASED_ON_ITEMS = __TS__New(Set, {PlayerForm.PLAYERFORM_ADULTHOOD, PlayerForm.PLAYERFORM_STOMPY, PlayerForm.PLAYERFORM_FLIGHT})
|
|
53
|
-
____exports.TRANSFORMATION_TO_ITEMS_MAP = __TS__New(Map)
|
|
54
|
-
____exports.ITEM_TO_TRANSFORMATION_MAP = __TS__New(Map)
|
|
55
|
-
initMaps(nil)
|
|
56
|
-
return ____exports
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____exports = {}
|
|
3
|
-
local printForLuaDebug, getPrintMsg, getValueToPrint
|
|
4
|
-
local ____util = require("functions.util")
|
|
5
|
-
local isLuaDebugEnabled = ____util.isLuaDebugEnabled
|
|
6
|
-
local ____vector = require("functions.vector")
|
|
7
|
-
local isVector = ____vector.isVector
|
|
8
|
-
function printForLuaDebug(...)
|
|
9
|
-
local args = {...}
|
|
10
|
-
local msg = getPrintMsg(nil, args)
|
|
11
|
-
Isaac.DebugString(msg)
|
|
12
|
-
local msgWithNewline = msg .. "\n"
|
|
13
|
-
Isaac.ConsoleOutput(msgWithNewline)
|
|
14
|
-
end
|
|
15
|
-
function getPrintMsg(self, args)
|
|
16
|
-
if #args == 0 then
|
|
17
|
-
return tostring(nil)
|
|
18
|
-
end
|
|
19
|
-
local msg = ""
|
|
20
|
-
for ____, arg in ipairs(args) do
|
|
21
|
-
if msg ~= "" then
|
|
22
|
-
msg = msg .. " "
|
|
23
|
-
end
|
|
24
|
-
msg = msg .. getValueToPrint(nil, arg)
|
|
25
|
-
end
|
|
26
|
-
return msg
|
|
27
|
-
end
|
|
28
|
-
function getValueToPrint(self, arg)
|
|
29
|
-
if isVector(nil, arg) then
|
|
30
|
-
local vector = arg
|
|
31
|
-
return ((("Vector(" .. tostring(vector.X)) .. ", ") .. tostring(vector.Y)) .. ")"
|
|
32
|
-
end
|
|
33
|
-
return tostring(arg)
|
|
34
|
-
end
|
|
35
|
-
function ____exports.patchPrintFunction(self)
|
|
36
|
-
if not isLuaDebugEnabled(nil) then
|
|
37
|
-
return
|
|
38
|
-
end
|
|
39
|
-
if __PATCHED_PRINT ~= nil then
|
|
40
|
-
return
|
|
41
|
-
end
|
|
42
|
-
__PATCHED_PRINT = true
|
|
43
|
-
print = printForLuaDebug
|
|
44
|
-
end
|
|
45
|
-
return ____exports
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
____exports.PILL_EFFECT_NAME_MAP = __TS__New(Map, {{PillEffect.PILLEFFECT_BAD_GAS, "Bad Gas"}, {PillEffect.PILLEFFECT_BAD_TRIP, "Bad Trip"}, {PillEffect.PILLEFFECT_BALLS_OF_STEEL, "Balls of Steel"}, {PillEffect.PILLEFFECT_BOMBS_ARE_KEYS, "Bombs Are Key"}, {PillEffect.PILLEFFECT_EXPLOSIVE_DIARRHEA, "Explosive Diarrhea"}, {PillEffect.PILLEFFECT_FULL_HEALTH, "Full Health"}, {PillEffect.PILLEFFECT_HEALTH_DOWN, "Health Down"}, {PillEffect.PILLEFFECT_HEALTH_UP, "Health Up"}, {PillEffect.PILLEFFECT_I_FOUND_PILLS, "I Found Pills"}, {PillEffect.PILLEFFECT_PUBERTY, "Puberty"}, {PillEffect.PILLEFFECT_PRETTY_FLY, "Pretty Fly"}, {PillEffect.PILLEFFECT_RANGE_DOWN, "Range Down"}, {PillEffect.PILLEFFECT_RANGE_UP, "Range Up"}, {PillEffect.PILLEFFECT_SPEED_DOWN, "Speed Down"}, {PillEffect.PILLEFFECT_SPEED_UP, "Speed Up"}, {PillEffect.PILLEFFECT_TEARS_DOWN, "Tears Down"}, {PillEffect.PILLEFFECT_TEARS_UP, "Tears Up"}, {PillEffect.PILLEFFECT_LUCK_DOWN, "Luck Down"}, {PillEffect.PILLEFFECT_LUCK_UP, "Luck Up"}, {PillEffect.PILLEFFECT_TELEPILLS, "Telepills"}, {PillEffect.PILLEFFECT_48HOUR_ENERGY, "48 Hour Energy"}, {PillEffect.PILLEFFECT_HEMATEMESIS, "Hematemesis"}, {PillEffect.PILLEFFECT_PARALYSIS, "Paralysis"}, {PillEffect.PILLEFFECT_SEE_FOREVER, "I can see forever!"}, {PillEffect.PILLEFFECT_PHEROMONES, "Pheromones"}, {PillEffect.PILLEFFECT_AMNESIA, "Amnesia"}, {PillEffect.PILLEFFECT_LEMON_PARTY, "Lemon Party"}, {PillEffect.PILLEFFECT_WIZARD, "R U a Wizard?"}, {PillEffect.PILLEFFECT_PERCS, "Percs!"}, {PillEffect.PILLEFFECT_ADDICTED, "Addicted!"}, {PillEffect.PILLEFFECT_RELAX, "Re-Lax"}, {PillEffect.PILLEFFECT_QUESTIONMARK, "???"}, {PillEffect.PILLEFFECT_LARGER, "One makes you larger"}, {PillEffect.PILLEFFECT_SMALLER, "One makes you small"}, {PillEffect.PILLEFFECT_INFESTED_EXCLAMATION, "Infested!"}, {PillEffect.PILLEFFECT_INFESTED_QUESTION, "Infested?"}, {PillEffect.PILLEFFECT_POWER, "Power Pill!"}, {PillEffect.PILLEFFECT_RETRO_VISION, "Retro Vision"}, {PillEffect.PILLEFFECT_FRIENDS_TILL_THE_END, "Friends Till The End!"}, {PillEffect.PILLEFFECT_X_LAX, "X-Lax"}, {PillEffect.PILLEFFECT_SOMETHINGS_WRONG, "Something's wrong..."}, {PillEffect.PILLEFFECT_IM_DROWSY, "I'm Drowsy..."}, {PillEffect.PILLEFFECT_IM_EXCITED, "I'm Excited!!!"}, {PillEffect.PILLEFFECT_GULP, "Gulp!"}, {PillEffect.PILLEFFECT_HORF, "Horf!"}, {PillEffect.PILLEFFECT_SUNSHINE, "Feels like I'm walking on sunshine!"}, {PillEffect.PILLEFFECT_VURP, "Vurp!"}, {PillEffect.PILLEFFECT_SHOT_SPEED_DOWN, "Shot Speed Down"}, {PillEffect.PILLEFFECT_SHOT_SPEED_UP, "Shot Speed Up"}, {PillEffect.PILLEFFECT_EXPERIMENTAL, "Experimental Pill"}})
|
|
5
|
-
return ____exports
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
export declare const TRANSFORMATION_TO_TAG_MAP: Map<PlayerForm, ItemConfigTag>;
|
|
3
|
-
export declare const TRANSFORMATIONS_NOT_BASED_ON_ITEMS: Set<PlayerForm>;
|
|
4
|
-
export declare const TRANSFORMATION_TO_ITEMS_MAP: Map<PlayerForm, Set<number>>;
|
|
5
|
-
export declare const ITEM_TO_TRANSFORMATION_MAP: Map<number, Set<PlayerForm>>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
local initMaps
|
|
5
|
-
local ____collectibles = require("functions.collectibles")
|
|
6
|
-
local collectibleHasTag = ____collectibles.collectibleHasTag
|
|
7
|
-
local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
|
|
8
|
-
function initMaps(self)
|
|
9
|
-
for ____, playerForm in __TS__Iterator(
|
|
10
|
-
____exports.TRANSFORMATION_TO_TAG_MAP:keys()
|
|
11
|
-
) do
|
|
12
|
-
____exports.TRANSFORMATION_TO_ITEMS_MAP:set(
|
|
13
|
-
playerForm,
|
|
14
|
-
__TS__New(Set)
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
do
|
|
18
|
-
local collectibleType = 1
|
|
19
|
-
while collectibleType <= getMaxCollectibleID(nil) do
|
|
20
|
-
for ____, ____value in __TS__Iterator(
|
|
21
|
-
____exports.TRANSFORMATION_TO_TAG_MAP:entries()
|
|
22
|
-
) do
|
|
23
|
-
local playerForm
|
|
24
|
-
playerForm = ____value[1]
|
|
25
|
-
local tag
|
|
26
|
-
tag = ____value[2]
|
|
27
|
-
do
|
|
28
|
-
if not collectibleHasTag(nil, collectibleType, tag) then
|
|
29
|
-
goto __continue5
|
|
30
|
-
end
|
|
31
|
-
local items = ____exports.TRANSFORMATION_TO_ITEMS_MAP:get(playerForm)
|
|
32
|
-
if items == nil then
|
|
33
|
-
error(
|
|
34
|
-
"Failed to get the items for transformation: " .. tostring(playerForm)
|
|
35
|
-
)
|
|
36
|
-
end
|
|
37
|
-
items:add(collectibleType)
|
|
38
|
-
local transformations = ____exports.ITEM_TO_TRANSFORMATION_MAP:get(collectibleType)
|
|
39
|
-
if transformations == nil then
|
|
40
|
-
transformations = __TS__New(Set)
|
|
41
|
-
____exports.ITEM_TO_TRANSFORMATION_MAP:set(collectibleType, transformations)
|
|
42
|
-
end
|
|
43
|
-
transformations:add(playerForm)
|
|
44
|
-
end
|
|
45
|
-
::__continue5::
|
|
46
|
-
end
|
|
47
|
-
collectibleType = collectibleType + 1
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
____exports.TRANSFORMATION_TO_TAG_MAP = __TS__New(Map, {{PlayerForm.PLAYERFORM_GUPPY, 32}, {PlayerForm.PLAYERFORM_LORD_OF_THE_FLIES, 64}, {PlayerForm.PLAYERFORM_MUSHROOM, 256}, {PlayerForm.PLAYERFORM_ANGEL, 1024}, {PlayerForm.PLAYERFORM_BOB, 128}, {PlayerForm.PLAYERFORM_DRUGS, 2}, {PlayerForm.PLAYERFORM_MOM, 4}, {PlayerForm.PLAYERFORM_BABY, 512}, {PlayerForm.PLAYERFORM_EVIL_ANGEL, 2048}, {PlayerForm.PLAYERFORM_POOP, 4096}, {PlayerForm.PLAYERFORM_BOOK_WORM, 8192}, {PlayerForm.PLAYERFORM_SPIDERBABY, 16384}})
|
|
52
|
-
____exports.TRANSFORMATIONS_NOT_BASED_ON_ITEMS = __TS__New(Set, {PlayerForm.PLAYERFORM_ADULTHOOD, PlayerForm.PLAYERFORM_STOMPY, PlayerForm.PLAYERFORM_FLIGHT})
|
|
53
|
-
____exports.TRANSFORMATION_TO_ITEMS_MAP = __TS__New(Map)
|
|
54
|
-
____exports.ITEM_TO_TRANSFORMATION_MAP = __TS__New(Map)
|
|
55
|
-
initMaps(nil)
|
|
56
|
-
return ____exports
|
package/dist/trinketNameMap.d.ts
DELETED
package/dist/trinketNameMap.lua
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle");
|
|
3
|
-
local ____exports = {}
|
|
4
|
-
____exports.TRINKET_NAME_MAP = __TS__New(Map, {{1, "Swallowed Penny"}, {2, "Petrified Poop"}, {3, "AAA Battery"}, {4, "Broken Remote"}, {5, "Purple Heart"}, {6, "Broken Magnet"}, {7, "Rosary Bead"}, {8, "Cartridge"}, {9, "Pulse Worm"}, {10, "Wiggle Worm"}, {11, "Ring Worm"}, {12, "Flat Worm"}, {13, "Store Credit"}, {14, "Callus"}, {15, "Lucky Rock"}, {16, "Mom's Toenail"}, {17, "Black Lipstick"}, {18, "Bible Tract"}, {19, "Paper Clip"}, {20, "Monkey Paw"}, {21, "Mysterious Paper"}, {22, "Daemon's Tail"}, {23, "Missing Poster"}, {24, "Butt Penny"}, {25, "Mysterious Candy"}, {26, "Hook Worm"}, {27, "Whip Worm"}, {28, "Broken Ankh"}, {29, "Fish Head"}, {30, "Pinky Eye"}, {31, "Push Pin"}, {32, "Liberty Cap"}, {33, "Umbilical Cord"}, {34, "Child's Heart"}, {35, "Curved Horn"}, {36, "Rusted Key"}, {37, "Goat Hoof"}, {38, "Mom's Pearl"}, {39, "Cancer"}, {40, "Red Patch"}, {41, "Match Stick"}, {42, "Lucky Toe"}, {43, "Cursed Skull"}, {44, "Safety Cap"}, {45, "Ace of Spades"}, {46, "Isaac's Fork"}, {48, "A Missing Page"}, {49, "Bloody Penny"}, {50, "Burnt Penny"}, {51, "Flat Penny"}, {52, "Counterfeit Penny"}, {53, "Tick"}, {54, "Isaac's Head"}, {55, "Maggy's Faith"}, {56, "Judas' Tongue"}, {57, "???'s Soul"}, {58, "Samson's Lock"}, {59, "Cain's Eye"}, {60, "Eve's Bird Foot"}, {61, "The Left Hand"}, {62, "Shiny Rock"}, {63, "Safety Scissors"}, {64, "Rainbow Worm"}, {65, "Tape Worm"}, {66, "Lazy Worm"}, {67, "Cracked Dice"}, {68, "Super Magnet"}, {69, "Faded Polaroid"}, {70, "Louse"}, {71, "Bob's Bladder"}, {72, "Watch Battery"}, {73, "Blasting Cap"}, {74, "Stud Finder"}, {75, "Error"}, {76, "Poker Chip"}, {77, "Blister"}, {78, "Second Hand"}, {79, "Endless Nameless"}, {80, "Black Feather"}, {81, "Blind Rage"}, {82, "Golden Horse Shoe"}, {83, "Store Key"}, {84, "Rib of Greed"}, {85, "Karma"}, {86, "Lil Larva"}, {87, "Mom's Locket"}, {88, "NO!"}, {89, "Child Leash"}, {90, "Brown Cap"}, {91, "Meconium"}, {92, "Cracked Crown"}, {93, "Used Diaper"}, {94, "Fish Tail"}, {95, "Black Tooth"}, {96, "Ouroboros Worm"}, {97, "Tonsil"}, {98, "Nose Goblin"}, {99, "Super Ball"}, {100, "Vibrant Bulb"}, {101, "Dim Bulb"}, {102, "Fragmented Card"}, {103, "Equality!"}, {104, "Wish Bone"}, {105, "Bag Lunch"}, {106, "Lost Cork"}, {107, "Crow Heart"}, {108, "Walnut"}, {109, "Duct Tape"}, {110, "Silver Dollar"}, {111, "Bloody Crown"}, {112, "Pay To Win"}, {113, "Locust of War"}, {114, "Locust of Pestilence"}, {115, "Locust of Famine"}, {116, "Locust of Death"}, {117, "Locust of Conquest"}, {118, "Bat Wing"}, {119, "Stem Cell"}, {120, "Hairpin"}, {121, "Wooden Cross"}, {122, "Butter!"}, {123, "Filigree Feather"}, {124, "Door Stop"}, {125, "Extension Cord"}, {126, "Rotten Penny"}, {127, "Baby-Bender"}, {128, "Finger Bone"}, {129, "Jawbreaker"}, {130, "Chewed Pen"}, {131, "Blessed Penny"}, {132, "Broken Syringe"}, {133, "Short Fuse"}, {134, "Gigante Bean"}, {135, "A Lighter"}, {136, "Broken Padlock"}, {137, "Myosotis"}, {138, " 'M"}, {139, "Teardrop Charm"}, {140, "Apple of Sodom"}, {141, "Forgotten Lullaby"}, {142, "Beth's Faith"}, {143, "Old Capacitor"}, {144, "Brain Worm"}, {145, "Perfection"}, {146, "Devil's Crown"}, {147, "Charged Penny"}, {148, "Friendship Necklace"}, {149, "Panic Button"}, {150, "Blue Key"}, {151, "Flat File"}, {152, "Telescope Lens"}, {153, "Mom's Lock"}, {154, "Dice Bag"}, {155, "Holy Crown"}, {156, "Mother's Kiss"}, {157, "Torn Card"}, {158, "Torn Pocket"}, {159, "Gilded Key"}, {160, "Lucky Sack"}, {161, "Wicked Crown"}, {162, "Azazel's Stump"}, {163, "Dingle Berry"}, {164, "Ring Cap"}, {165, "Nuh Uh!"}, {166, "Modeling Clay"}, {167, "Polished Bone"}, {168, "Hollow Heart"}, {169, "Kid's Drawing"}, {170, "Crystal Key"}, {171, "Keeper's Bargain"}, {172, "Cursed Penny"}, {173, "Your Soul"}, {174, "Number Magnet"}, {175, "Strange Key"}, {176, "Lil Clot"}, {177, "Temporary Tattoo"}, {178, "Swallowed M80"}, {179, "RC Remote"}, {180, "Found Soul"}, {181, "Expansion Pack"}, {182, "Beth's Essence"}, {183, "The Twins"}, {184, "Adoption Papers"}, {185, "Cricket Leg"}, {186, "Apollyon's Best Friend"}, {187, "Broken Glasses"}, {188, "Ice Cube"}, {189, "Sigil of Baphomet"}})
|
|
5
|
-
return ____exports
|