isaacscript-common 1.0.604 → 1.0.608-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/getCollectibleItemPoolType.lua +3 -1
- package/dist/features/preventCollectibleRotate.lua +3 -1
- package/dist/features/runInNFrames.lua +3 -1
- package/dist/features/saveDataManager/exports.lua +2 -1
- package/dist/features/saveDataManager/load.lua +2 -1
- package/dist/features/saveDataManager/maps.lua +3 -1
- package/dist/features/saveDataManager/merge.lua +2 -1
- package/dist/features/sirenHelpers.lua +2 -1
- package/dist/functions/array.lua +8 -1
- package/dist/functions/cards.lua +2 -1
- package/dist/functions/collectibleSet.lua +3 -1
- 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/globals.lua +23 -3
- package/dist/functions/gridEntity.lua +5 -1
- package/dist/functions/input.lua +5 -1
- package/dist/functions/jsonRoom.lua +3 -1
- package/dist/functions/log.lua +2 -1
- package/dist/functions/math.lua +2 -1
- package/dist/functions/npc.lua +8 -2
- package/dist/functions/pickups.lua +3 -1
- 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 +7 -1
- package/dist/functions/sprite.lua +2 -1
- package/dist/functions/trinketSet.lua +3 -1
- package/dist/functions/util.d.ts +12 -0
- package/dist/functions/util.lua +17 -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 +1 -1
|
@@ -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,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,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local ____errors = require("errors")
|
|
5
6
|
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,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,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local mergeArray, mergeTSTLObject, mergeTable, mergeVector
|
|
5
6
|
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,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 ____cardDescriptionMap = require("maps.cardDescriptionMap")
|
|
5
6
|
local CARD_DESCRIPTION_MAP = ____cardDescriptionMap.CARD_DESCRIPTION_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,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 __TS__InstanceOf = ____lualib.__TS__InstanceOf
|
|
6
|
+
local Map = ____lualib.Map
|
|
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 __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
4
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
5
|
+
local Set = ____lualib.Set
|
|
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,11 +1,23 @@
|
|
|
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 = {}
|
|
8
|
+
local twoDimensionalSort
|
|
4
9
|
local ____log = require("functions.log")
|
|
5
10
|
local log = ____log.log
|
|
6
11
|
local ____util = require("functions.util")
|
|
7
|
-
local
|
|
12
|
+
local addSetsToSet = ____util.addSetsToSet
|
|
13
|
+
local copySet = ____util.copySet
|
|
8
14
|
local isLuaDebugEnabled = ____util.isLuaDebugEnabled
|
|
15
|
+
function twoDimensionalSort(self, a, b)
|
|
16
|
+
if a[1] == b[1] then
|
|
17
|
+
return 0
|
|
18
|
+
end
|
|
19
|
+
return a[1] < b[1] and -1 or 1
|
|
20
|
+
end
|
|
9
21
|
local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
10
22
|
"ActionTriggers",
|
|
11
23
|
"ActiveSlot",
|
|
@@ -126,6 +138,7 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
126
138
|
"SeedEffect",
|
|
127
139
|
"Seeds",
|
|
128
140
|
"ShockwaveParams",
|
|
141
|
+
"SkinColor",
|
|
129
142
|
"SortingLayer",
|
|
130
143
|
"SoundEffect",
|
|
131
144
|
"Sprite",
|
|
@@ -173,8 +186,14 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
|
|
|
173
186
|
"xpcall"
|
|
174
187
|
})
|
|
175
188
|
local LUA_DEBUG_ADDED_GLOBALS = __TS__New(Set, {"debug", "io", "os", "package"})
|
|
189
|
+
local RACING_PLUS_SANDBOX_ADDED_GLOBALS = __TS__New(Set, {"sandboxTraceback", "sandboxGetTraceback", "getParentFunctionDescription"})
|
|
176
190
|
function ____exports.getDefaultGlobals(self)
|
|
177
|
-
|
|
191
|
+
local defaultGlobals = copySet(nil, DEFAULT_GLOBALS)
|
|
192
|
+
if isLuaDebugEnabled(nil) then
|
|
193
|
+
addSetsToSet(nil, defaultGlobals, LUA_DEBUG_ADDED_GLOBALS)
|
|
194
|
+
end
|
|
195
|
+
addSetsToSet(nil, defaultGlobals, RACING_PLUS_SANDBOX_ADDED_GLOBALS)
|
|
196
|
+
return defaultGlobals
|
|
178
197
|
end
|
|
179
198
|
function ____exports.getNewGlobals(self)
|
|
180
199
|
local defaultGlobals = ____exports.getDefaultGlobals(nil)
|
|
@@ -185,6 +204,7 @@ function ____exports.getNewGlobals(self)
|
|
|
185
204
|
__TS__ArrayPush(newGlobals, keyValueTuple)
|
|
186
205
|
end
|
|
187
206
|
end
|
|
207
|
+
__TS__ArraySort(newGlobals, twoDimensionalSort)
|
|
188
208
|
return newGlobals
|
|
189
209
|
end
|
|
190
210
|
function ____exports.logNewGlobals(self)
|
|
@@ -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__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local ____gridEntityXMLMap = require("maps.gridEntityXMLMap")
|
|
5
9
|
local GRID_ENTITY_XML_MAP = ____gridEntityXMLMap.GRID_ENTITY_XML_MAP
|
package/dist/functions/input.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 __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
4
|
+
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
5
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
6
|
+
local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local ____constants = require("constants")
|
|
5
9
|
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,6 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
4
|
local ____exports = {}
|
|
4
5
|
local ____array = require("functions.array")
|
|
5
6
|
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")
|
|
@@ -70,7 +74,9 @@ NON_ALIVE_NPCS_TYPE_VARIANT = __TS__New(
|
|
|
70
74
|
(tostring(EntityType.ENTITY_MAMA_GURDY) .. ".") .. 1,
|
|
71
75
|
(tostring(EntityType.ENTITY_MAMA_GURDY) .. ".") .. 2,
|
|
72
76
|
(tostring(EntityType.ENTITY_BIG_HORN) .. ".") .. 1,
|
|
73
|
-
(tostring(EntityType.ENTITY_BIG_HORN) .. ".") .. 2
|
|
77
|
+
(tostring(EntityType.ENTITY_BIG_HORN) .. ".") .. 2,
|
|
78
|
+
(tostring(EntityType.ENTITY_DARK_ESAU) .. ".") .. 0,
|
|
79
|
+
(tostring(EntityType.ENTITY_DARK_ESAU) .. ".") .. 1
|
|
74
80
|
}
|
|
75
81
|
)
|
|
76
82
|
NON_ALIVE_NPCS_TYPE_VARIANT_SUBTYPE = __TS__New(
|
|
@@ -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
|
|
@@ -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,11 @@
|
|
|
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
|
|
3
9
|
local ____exports = {}
|
|
4
10
|
local ____constants = require("constants")
|
|
5
11
|
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,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
|
package/dist/functions/util.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
3
|
+
/**
|
|
4
|
+
* Helper function to add all of the contents of one set to another set. The first set passed will
|
|
5
|
+
* be modified in place.
|
|
6
|
+
*
|
|
7
|
+
* This function is variadic, meaning that you can specify N sets to add to the first set.
|
|
8
|
+
*/
|
|
9
|
+
export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: Array<Set<T>>): void;
|
|
3
10
|
/**
|
|
4
11
|
* Using a Map constructor to copy a Map does not seem to work properly, so use this helper function
|
|
5
12
|
* instead.
|
|
@@ -10,6 +17,11 @@ export declare function copyMap<K, V>(oldMap: Map<K, V>): Map<K, V>;
|
|
|
10
17
|
* instead.
|
|
11
18
|
*/
|
|
12
19
|
export declare function copySet<T>(oldSet: Set<T>): Set<T>;
|
|
20
|
+
/**
|
|
21
|
+
* Helper function to create a new set that is the composition of two or more sets.
|
|
22
|
+
*
|
|
23
|
+
* This function is variadic, meaning that you can specify N sets.
|
|
24
|
+
*/
|
|
13
25
|
export declare function combineSets<T>(...sets: Array<Set<T>>): Set<T>;
|
|
14
26
|
/**
|
|
15
27
|
* Helper function to get type safety on a switch statement.
|
package/dist/functions/util.lua
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
require("lualib_bundle")
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
4
|
+
local Map = ____lualib.Map
|
|
5
|
+
local __TS__New = ____lualib.__TS__New
|
|
6
|
+
local Set = ____lualib.Set
|
|
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
|
|
13
|
+
function ____exports.addSetsToSet(self, mainSet, ...)
|
|
14
|
+
local setsToAdd = {...}
|
|
15
|
+
for ____, set in ipairs(setsToAdd) do
|
|
16
|
+
for ____, value in __TS__Iterator(set:values()) do
|
|
17
|
+
mainSet:add(value)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
5
21
|
function ____exports.copyMap(self, oldMap)
|
|
6
22
|
local newMap = __TS__New(Map)
|
|
7
23
|
for ____, ____value in __TS__Iterator(oldMap:entries()) do
|