isaacscript-common 1.0.608 → 1.2.3
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 +3 -1
- 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/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 +5 -0
- package/dist/functions/player.lua +19 -1
- 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/trinketGive.lua +3 -1
- package/dist/functions/trinketSet.lua +3 -1
- package/dist/functions/trinkets.lua +5 -7
- 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 -1
- package/package.json +4 -4
|
@@ -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
|
|
@@ -244,3 +244,8 @@ export declare function setActiveItem(player: EntityPlayer, collectibleType: Col
|
|
|
244
244
|
* @param modifyCostume Optional. Whether to add or remove the blindfold costume. True by default.
|
|
245
245
|
*/
|
|
246
246
|
export declare function setBlindfold(player: EntityPlayer, enabled: boolean, modifyCostume?: boolean): void;
|
|
247
|
+
/**
|
|
248
|
+
* Helper function to use an active item without showing an animation, keeping the item, or adding
|
|
249
|
+
* any costumes.
|
|
250
|
+
*/
|
|
251
|
+
export declare function useActiveItemTemp(player: EntityPlayer, collectibleType: CollectibleType | int): void;
|
|
@@ -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")
|
|
@@ -527,4 +535,14 @@ function ____exports.setBlindfold(self, player, enabled, modifyCostume)
|
|
|
527
535
|
end
|
|
528
536
|
end
|
|
529
537
|
end
|
|
538
|
+
function ____exports.useActiveItemTemp(self, player, collectibleType)
|
|
539
|
+
player:UseActiveItem(
|
|
540
|
+
collectibleType,
|
|
541
|
+
false,
|
|
542
|
+
false,
|
|
543
|
+
true,
|
|
544
|
+
false,
|
|
545
|
+
-1
|
|
546
|
+
)
|
|
547
|
+
end
|
|
530
548
|
return ____exports
|
|
@@ -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
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
local ____exports = {}
|
|
3
3
|
local ____constants = require("constants")
|
|
4
4
|
local GOLDEN_TRINKET_SHIFT = ____constants.GOLDEN_TRINKET_SHIFT
|
|
5
|
+
local ____player = require("functions.player")
|
|
6
|
+
local useActiveItemTemp = ____player.useActiveItemTemp
|
|
5
7
|
function ____exports.temporarilyRemoveTrinket(self, player, trinketType)
|
|
6
8
|
if not player:HasTrinket(trinketType) then
|
|
7
9
|
return nil
|
|
@@ -54,7 +56,7 @@ function ____exports.giveTrinketsBack(self, player, trinketSituation)
|
|
|
54
56
|
local i = 0
|
|
55
57
|
while i < trinketSituation.numSmeltedTrinkets do
|
|
56
58
|
player:AddTrinket(trinketSituation.trinketTypeRemoved, false)
|
|
57
|
-
player
|
|
59
|
+
useActiveItemTemp(nil, player, CollectibleType.COLLECTIBLE_SMELTER)
|
|
58
60
|
i = i + 1
|
|
59
61
|
end
|
|
60
62
|
end
|
|
@@ -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
|
|
@@ -8,6 +10,8 @@ local ____trinketNameMap = require("maps.trinketNameMap")
|
|
|
8
10
|
local TRINKET_NAME_MAP = ____trinketNameMap.TRINKET_NAME_MAP
|
|
9
11
|
local ____entity = require("functions.entity")
|
|
10
12
|
local getPickups = ____entity.getPickups
|
|
13
|
+
local ____player = require("functions.player")
|
|
14
|
+
local useActiveItemTemp = ____player.useActiveItemTemp
|
|
11
15
|
local ____trinketGive = require("functions.trinketGive")
|
|
12
16
|
local giveTrinketsBack = ____trinketGive.giveTrinketsBack
|
|
13
17
|
local temporarilyRemoveTrinkets = ____trinketGive.temporarilyRemoveTrinkets
|
|
@@ -88,13 +92,7 @@ function ____exports.smeltTrinket(self, player, trinketType, numTrinkets)
|
|
|
88
92
|
local i = 0
|
|
89
93
|
while i < numTrinkets do
|
|
90
94
|
player:AddTrinket(trinketType)
|
|
91
|
-
player
|
|
92
|
-
CollectibleType.COLLECTIBLE_SMELTER,
|
|
93
|
-
false,
|
|
94
|
-
false,
|
|
95
|
-
true,
|
|
96
|
-
false
|
|
97
|
-
)
|
|
95
|
+
useActiveItemTemp(nil, player, CollectibleType.COLLECTIBLE_SMELTER)
|
|
98
96
|
i = i + 1
|
|
99
97
|
end
|
|
100
98
|
end
|
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, ...)
|