isaacscript-common 1.0.607 → 1.0.608-dev.4
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/itemPickup.lua +3 -1
- package/dist/callbacks/postBombInitLate.lua +3 -1
- package/dist/callbacks/postCursedTeleport.lua +6 -4
- package/dist/callbacks/postEffectInitLate.lua +3 -1
- package/dist/callbacks/postFamiliarInitLate.lua +3 -1
- package/dist/callbacks/postGridEntity.lua +4 -1
- package/dist/callbacks/postKnifeInitLate.lua +3 -1
- package/dist/callbacks/postLaserInitLate.lua +3 -1
- package/dist/callbacks/postNPCInitLate.lua +3 -1
- package/dist/callbacks/postPickupCollect.lua +3 -1
- package/dist/callbacks/postPickupInitLate.lua +3 -1
- package/dist/callbacks/postPlayerChangeHealth.lua +3 -1
- package/dist/callbacks/postPlayerChangeType.lua +3 -1
- package/dist/callbacks/postPlayerFatalDamage.lua +3 -1
- package/dist/callbacks/postPlayerInitLate.lua +3 -1
- package/dist/callbacks/postPlayerReordered.lua +2 -1
- package/dist/callbacks/postProjectileInitLate.lua +3 -1
- package/dist/callbacks/postPurchase.lua +4 -1
- package/dist/callbacks/postSlotInitUpdate.lua +3 -1
- package/dist/callbacks/postSlotRenderBroken.lua +3 -1
- package/dist/callbacks/postTearInitLate.lua +3 -1
- package/dist/callbacks/postTearInitVeryLate.lua +3 -1
- package/dist/callbacks/postTransformation.lua +3 -1
- package/dist/callbacks/postTrinketBreak.lua +3 -1
- package/dist/callbacks/preBerserkDeath.lua +3 -3
- package/dist/callbacks/preNewLevel.lua +3 -1
- package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +2 -1
- package/dist/callbacks/subscriptions/postCustomRevive.lua +2 -1
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postEsauJr.lua +2 -1
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +2 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -1
- package/dist/callbacks/subscriptions/postFlip.lua +2 -1
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +2 -1
- package/dist/callbacks/subscriptions/postItemPickup.lua +2 -1
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +2 -1
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postPickupCollect.lua +2 -1
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +2 -1
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postPurchase.lua +2 -1
- package/dist/callbacks/subscriptions/postSacrifice.lua +2 -1
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +2 -1
- package/dist/callbacks/subscriptions/postSlotInit.lua +2 -1
- package/dist/callbacks/subscriptions/postSlotRender.lua +2 -1
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +2 -1
- package/dist/callbacks/subscriptions/postTearInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +2 -1
- package/dist/callbacks/subscriptions/postTransformation.lua +2 -1
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +2 -1
- package/dist/callbacks/subscriptions/preBerserkDeath.lua +2 -1
- package/dist/callbacks/subscriptions/preCustomRevive.lua +2 -1
- package/dist/callbacks/subscriptions/preItemPickup.lua +2 -1
- package/dist/callbacks/subscriptions/preNewLevel.lua +2 -1
- package/dist/constants.lua +3 -1
- package/dist/features/deployJSONRoom.lua +6 -1
- package/dist/features/disableInputs.lua +2 -0
- package/dist/features/getCollectibleItemPoolType.lua +3 -1
- package/dist/features/preventCollectibleRotate.lua +3 -1
- package/dist/features/runInNFrames.lua +3 -1
- package/dist/features/saveDataManager/exports.lua +3 -1
- package/dist/features/saveDataManager/load.lua +2 -1
- package/dist/features/saveDataManager/main.lua +2 -0
- package/dist/features/saveDataManager/maps.lua +3 -1
- package/dist/features/saveDataManager/merge.lua +4 -1
- package/dist/features/saveDataManager/save.lua +2 -0
- package/dist/features/sirenHelpers.lua +2 -1
- package/dist/functions/array.lua +8 -1
- package/dist/functions/cards.lua +4 -1
- package/dist/functions/challenges.lua +2 -0
- package/dist/functions/collectibleSet.lua +3 -1
- package/dist/functions/collectibles.lua +3 -0
- package/dist/functions/deepCopy.lua +6 -1
- package/dist/functions/deepCopyTests.lua +5 -1
- package/dist/functions/doors.lua +4 -1
- package/dist/functions/entity.lua +7 -1
- package/dist/functions/familiars.lua +2 -0
- package/dist/functions/globals.lua +5 -1
- package/dist/functions/gridEntity.lua +6 -1
- package/dist/functions/input.lua +6 -1
- package/dist/functions/jsonRoom.lua +3 -1
- package/dist/functions/log.lua +4 -1
- package/dist/functions/math.lua +2 -1
- package/dist/functions/npc.lua +5 -1
- package/dist/functions/pickups.lua +3 -1
- package/dist/functions/pills.lua +2 -0
- package/dist/functions/player.d.ts +8 -3
- package/dist/functions/player.lua +11 -3
- package/dist/functions/playerHealth.lua +2 -1
- package/dist/functions/pocketItems.lua +3 -1
- package/dist/functions/rooms.lua +8 -1
- package/dist/functions/sprite.lua +2 -1
- package/dist/functions/transformations.lua +3 -0
- package/dist/functions/trinketSet.lua +3 -1
- package/dist/functions/trinkets.lua +2 -0
- package/dist/functions/util.lua +9 -1
- package/dist/lualib_bundle.lua +1158 -1027
- package/dist/maps/cardDescriptionMap.lua +3 -1
- package/dist/maps/cardNameMap.lua +3 -1
- package/dist/maps/challengeNameMap.lua +3 -1
- package/dist/maps/collectibleDescriptionMap.lua +3 -1
- package/dist/maps/collectibleNameMap.lua +3 -1
- package/dist/maps/gridEntityXMLMap.lua +3 -1
- package/dist/maps/pillEffectNameMap.lua +3 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -1
- package/dist/maps/transformationMaps.lua +6 -1
- package/dist/maps/transformationNameMap.lua +3 -1
- package/dist/maps/trinketDescriptionMap.lua +3 -1
- package/dist/maps/trinketNameMap.lua +3 -1
- package/dist/patchErrorFunctions.lua +4 -1
- package/dist/sets/cards.lua +3 -1
- package/dist/types/ModUpgraded.lua +4 -1
- package/dist/upgradeMod.lua +2 -4
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postSlotRenderHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postSlotUpdateHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postTearInitLateHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postTearInitVeryLateHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postTransformationHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.postTrinketBreakHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.preBerserkDeathHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.preCustomReviveHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.preItemPickupHasSubscriptions(self)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local subscriptions = {}
|
|
5
6
|
function ____exports.preNewLevelHasSubscriptions(self)
|
package/dist/constants.lua
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
|
|
5
7
|
____exports.BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png"
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local Map = ____lualib.Map
|
|
6
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
8
|
local ____exports = {}
|
|
4
9
|
local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntity, spawnNormalEntity, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, initialized, v
|
|
5
10
|
local ____errors = require("errors")
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local isActionPressed, isActionTriggered, getActionValue, getReturnValue, v
|
|
4
6
|
local ____constants = require("constants")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local postPickupInitCollectible, v
|
|
5
7
|
local ____errors = require("errors")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local useCardSoulOfIsaac, postPickupUpdateCollectible, v
|
|
5
7
|
local ____errors = require("errors")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local postUpdate, FEATURE_NAME, initialized, v
|
|
5
7
|
local ____errors = require("errors")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____errors = require("errors")
|
|
5
7
|
local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__StringTrim = ____lualib.__TS__StringTrim
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local readSaveDatFile, tryLoadModData, DEFAULT_MOD_DATA
|
|
5
6
|
local ____debug = require("debug")
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local postPlayerInit, preGameExit, postNewLevel, postNewRoomEarly, restoreDefaultsAll, restoreDefaults, clearAndCopyAllElements, mod, loadedDataOnThisRun
|
|
4
6
|
local ____errors = require("errors")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
____exports.saveDataMap = {}
|
|
5
7
|
____exports.saveDataDefaultsMap = {}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
5
|
+
local Set = ____lualib.Set
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
local mergeArray, mergeTSTLObject, mergeTable, mergeVector
|
|
5
8
|
local ____constantsInternal = require("constantsInternal")
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local postNPCInitSirenHelper, checkReturnFamiliarToPlayer, blacklistEntryExists, v
|
|
5
6
|
local ____errors = require("errors")
|
package/dist/functions/array.lua
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
5
|
+
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
6
|
+
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
7
|
+
local __TS__ArrayReduce = ____lualib.__TS__ArrayReduce
|
|
8
|
+
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
9
|
+
local __TS__ArrayIndexOf = ____lualib.__TS__ArrayIndexOf
|
|
3
10
|
local ____exports = {}
|
|
4
11
|
local ____random = require("functions.random")
|
|
5
12
|
local getRandomInt = ____random.getRandomInt
|
package/dist/functions/cards.lua
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local Set = ____lualib.Set
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
local ____cardDescriptionMap = require("maps.cardDescriptionMap")
|
|
5
8
|
local CARD_DESCRIPTION_MAP = ____cardDescriptionMap.CARD_DESCRIPTION_MAP
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local ____challengeNameMap = require("maps.challengeNameMap")
|
|
4
6
|
local CHALLENGE_NAME_MAP = ____challengeNameMap.CHALLENGE_NAME_MAP
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____collectibles = require("functions.collectibles")
|
|
5
7
|
local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local Map = ____lualib.Map
|
|
2
5
|
local ____exports = {}
|
|
3
6
|
local COLLECTIBLE_SPRITE_LAYER, COLLECTIBLE_SHADOW_LAYER
|
|
4
7
|
local ____constants = require("constants")
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local Map = ____lualib.Map
|
|
6
|
+
local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
7
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
8
|
local ____exports = {}
|
|
4
9
|
local isTSTLClass, copyClass, getNewClassFromMetatable, deepCopyValue, copyVector, checkMetatable, validateValue, TSTL_CLASS_KEYS
|
|
5
10
|
local ____constantsInternal = require("constantsInternal")
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
6
|
+
local Set = ____lualib.Set
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local copiedObjectIsTable, copiedObjectHasKeyAndValueString, copiedTableHasKeyAndValueNumber, copiedTableDoesNotCoerceTypes, copiedObjectHasNoReferencesForPrimitivesForward, copiedObjectHasNoReferencesForPrimitivesBackward, copiedObjectHasNoReferencesForArray, copiedObjectHasChildObject, copiedMapIsMap, copiedMapHasValue, copiedSetIsSet, copiedSetHasValue, copiedMapHasChildMap
|
|
5
9
|
local ____array = require("functions.array")
|
package/dist/functions/doors.lua
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
local ____constants = require("constants")
|
|
5
8
|
local MAX_NUM_DOORS = ____constants.MAX_NUM_DOORS
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
6
|
+
local __TS__New = ____lualib.__TS__New
|
|
7
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
8
|
+
local Map = ____lualib.Map
|
|
3
9
|
local ____exports = {}
|
|
4
10
|
local ____constants = require("constants")
|
|
5
11
|
local STORY_BOSSES = ____constants.STORY_BOSSES
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local ____constants = require("constants")
|
|
4
6
|
local FAMILIARS_THAT_SHOOT_PLAYER_TEARS = ____constants.FAMILIARS_THAT_SHOOT_PLAYER_TEARS
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
6
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local twoDimensionalSort
|
|
5
9
|
local ____log = require("functions.log")
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local Set = ____lualib.Set
|
|
5
|
+
local __TS__New = ____lualib.__TS__New
|
|
6
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
+
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
3
8
|
local ____exports = {}
|
|
4
9
|
local ____gridEntityXMLMap = require("maps.gridEntityXMLMap")
|
|
5
10
|
local GRID_ENTITY_XML_MAP = ____gridEntityXMLMap.GRID_ENTITY_XML_MAP
|
package/dist/functions/input.lua
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
5
|
+
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
6
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
|
+
local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
3
8
|
local ____exports = {}
|
|
4
9
|
local ____constants = require("constants")
|
|
5
10
|
local MAX_NUM_INPUTS = ____constants.MAX_NUM_INPUTS
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
4
|
+
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local getTotalWeightOfJSONRooms, getJSONRoomWithChosenWeight
|
|
5
7
|
local ____array = require("functions.array")
|
package/dist/functions/log.lua
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
5
|
+
local Set = ____lualib.Set
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
local ____array = require("functions.array")
|
|
5
8
|
local arrayToString = ____array.arrayToString
|
package/dist/functions/math.lua
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local getCircleInitialPosition
|
|
5
6
|
local ____util = require("functions.util")
|
package/dist/functions/npc.lua
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local NON_ALIVE_NPCS_TYPE_VARIANT, NON_ALIVE_NPCS_TYPE_VARIANT_SUBTYPE
|
|
5
9
|
local ____constants = require("constants")
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____array = require("functions.array")
|
|
5
7
|
local getRandomArrayElement = ____array.getRandomArrayElement
|
package/dist/functions/pills.lua
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local ____pillEffectNameMap = require("maps.pillEffectNameMap")
|
|
4
6
|
local PILL_EFFECT_NAME_MAP = ____pillEffectNameMap.PILL_EFFECT_NAME_MAP
|
|
@@ -132,10 +132,15 @@ export declare function getPlayerIndexVanilla(playerToFind: EntityPlayer): int |
|
|
|
132
132
|
*/
|
|
133
133
|
export declare function getPlayerMaxHeartContainers(player: EntityPlayer): int;
|
|
134
134
|
/**
|
|
135
|
-
* Returns the combined value of all of the player's red hearts, soul/black hearts, and bone hearts
|
|
136
|
-
*
|
|
135
|
+
* Returns the combined value of all of the player's red hearts, soul/black hearts, and bone hearts,
|
|
136
|
+
* minus the value of the player's rotten hearts.
|
|
137
|
+
*
|
|
138
|
+
* This is equivalent to the number of hits that the player can currently take, but does not take
|
|
139
|
+
* into account double damage from champion enemies and/or being on later floors. (For example, on
|
|
140
|
+
* Womb 1, players who have 1 soul heart remaining would die in 1 hit to anything, even though this
|
|
141
|
+
* function would report that they have 2 hits remaining.)
|
|
137
142
|
*/
|
|
138
|
-
export declare function
|
|
143
|
+
export declare function getPlayerNumHitsRemaining(player: EntityPlayer): int;
|
|
139
144
|
/**
|
|
140
145
|
* This function always excludes players with a non-undefined parent, since they are not real
|
|
141
146
|
* players. (e.g. the Strawman Keeper)
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
6
|
+
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
7
|
+
local Map = ____lualib.Map
|
|
8
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
9
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
10
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
3
11
|
local ____exports = {}
|
|
4
12
|
local EXCLUDED_CHARACTERS
|
|
5
13
|
local ____constants = require("constants")
|
|
@@ -299,7 +307,7 @@ function ____exports.getPlayerIndexVanilla(self, playerToFind)
|
|
|
299
307
|
end
|
|
300
308
|
return nil
|
|
301
309
|
end
|
|
302
|
-
function ____exports.
|
|
310
|
+
function ____exports.getPlayerNumHitsRemaining(self, player)
|
|
303
311
|
local hearts = player:GetHearts()
|
|
304
312
|
local soulHearts = player:GetSoulHearts()
|
|
305
313
|
local boneHearts = player:GetBoneHearts()
|
|
@@ -371,7 +379,7 @@ function ____exports.isDamageToPlayerFatal(self, player, damageAmount, damageSou
|
|
|
371
379
|
if ____exports.hasLostCurse(nil, player) then
|
|
372
380
|
return true
|
|
373
381
|
end
|
|
374
|
-
local playerNumAllHearts = ____exports.
|
|
382
|
+
local playerNumAllHearts = ____exports.getPlayerNumHitsRemaining(nil, player)
|
|
375
383
|
if damageAmount < playerNumAllHearts then
|
|
376
384
|
return false
|
|
377
385
|
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local ____constants = require("constants")
|
|
5
6
|
local MAX_PLAYER_HEART_CONTAINERS = ____constants.MAX_PLAYER_HEART_CONTAINERS
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____constants = require("constants")
|
|
5
7
|
local MAX_PLAYER_POCKET_ITEM_SLOTS = ____constants.MAX_PLAYER_POCKET_ITEM_SLOTS
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
4
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
5
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
6
|
+
local Set = ____lualib.Set
|
|
7
|
+
local __TS__New = ____lualib.__TS__New
|
|
8
|
+
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
9
|
+
local Map = ____lualib.Map
|
|
3
10
|
local ____exports = {}
|
|
4
11
|
local ____constants = require("constants")
|
|
5
12
|
local GENESIS_ROOM_SUBTYPE = ____constants.GENESIS_ROOM_SUBTYPE
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local ____constants = require("constants")
|
|
5
6
|
local EMPTY_PNG_PATH = ____constants.EMPTY_PNG_PATH
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
4
|
+
local Set = ____lualib.Set
|
|
2
5
|
local ____exports = {}
|
|
3
6
|
local ____transformationMaps = require("maps.transformationMaps")
|
|
4
7
|
local ITEM_TO_TRANSFORMATION_MAP = ____transformationMaps.ITEM_TO_TRANSFORMATION_MAP
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____trinkets = require("functions.trinkets")
|
|
5
7
|
local getMaxTrinketID = ____trinkets.getMaxTrinketID
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Map = ____lualib.Map
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local ____constants = require("constants")
|
|
4
6
|
local GOLDEN_TRINKET_SHIFT = ____constants.GOLDEN_TRINKET_SHIFT
|
package/dist/functions/util.lua
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local Set = ____lualib.Set
|
|
4
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
5
|
+
local Map = ____lualib.Map
|
|
6
|
+
local __TS__New = ____lualib.__TS__New
|
|
7
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
8
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
9
|
+
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
10
|
+
local __TS__StringSubstr = ____lualib.__TS__StringSubstr
|
|
3
11
|
local ____exports = {}
|
|
4
12
|
local HEX_STRING_LENGTH = 6
|
|
5
13
|
function ____exports.addSetsToSet(self, mainSet, ...)
|