isaacscript-common 1.2.98 → 1.2.101
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 +2 -1
- package/dist/callbacks/postBombInitLate.lua +3 -1
- package/dist/callbacks/postBoneSwing.lua +4 -1
- package/dist/callbacks/postCursedTeleport.lua +3 -1
- package/dist/callbacks/postEffectInitLate.lua +3 -1
- package/dist/callbacks/postEsauJr.lua +2 -1
- package/dist/callbacks/postFamiliarInitLate.lua +3 -1
- package/dist/callbacks/postFlip.lua +2 -1
- package/dist/callbacks/postGridEntity.lua +4 -1
- package/dist/callbacks/postGridEntityCollision.lua +6 -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 +9 -15
- package/dist/callbacks/postPlayerChangeType.lua +3 -1
- package/dist/callbacks/postPlayerFatalDamage.lua +2 -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 +8 -3
- 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 +4 -1
- package/dist/callbacks/postTrinketBreak.lua +2 -1
- package/dist/callbacks/preNewLevel.lua +3 -1
- package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -1
- package/dist/callbacks/subscriptions/postBoneSwing.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/postGridEntityBroken.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityCollision.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -1
- package/dist/callbacks/subscriptions/postGridEntityStateChange.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 +8 -2
- package/dist/features/disableInputs.lua +5 -1
- package/dist/features/getCollectibleItemPoolType.lua +3 -1
- package/dist/features/isPonyActive.lua +3 -1
- package/dist/features/preventCollectibleRotate.lua +3 -1
- package/dist/features/runInNFrames.lua +4 -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 +3 -1
- package/dist/features/sirenHelpers.lua +3 -1
- package/dist/functions/array.lua +8 -1
- package/dist/functions/cards.lua +2 -1
- package/dist/functions/collectibleCacheFlag.lua +6 -1
- package/dist/functions/collectibleSet.lua +3 -1
- package/dist/functions/collectibles.lua +3 -3
- package/dist/functions/deepCopy.lua +6 -1
- package/dist/functions/deepCopyTests.lua +5 -1
- package/dist/functions/doors.lua +6 -1
- package/dist/functions/entity.d.ts +0 -21
- package/dist/functions/entity.lua +6 -22
- package/dist/functions/entitySpecific.lua +2 -1
- package/dist/functions/familiars.lua +3 -1
- package/dist/functions/flying.lua +4 -1
- package/dist/functions/globals.lua +6 -1
- package/dist/functions/gridEntity.lua +7 -1
- package/dist/functions/input.lua +7 -1
- package/dist/functions/jsonRoom.lua +3 -1
- package/dist/functions/log.d.ts +1 -0
- package/dist/functions/log.lua +23 -1
- package/dist/functions/map.lua +4 -1
- package/dist/functions/math.lua +2 -1
- package/dist/functions/npc.lua +5 -1
- package/dist/functions/pickups.d.ts +21 -0
- package/dist/functions/pickups.lua +26 -0
- package/dist/functions/player.lua +10 -1
- package/dist/functions/playerHealth.lua +3 -1
- package/dist/functions/pocketItems.lua +4 -1
- package/dist/functions/positionVelocity.lua +3 -1
- package/dist/functions/rooms.lua +9 -1
- package/dist/functions/set.lua +4 -1
- package/dist/functions/string.lua +4 -1
- package/dist/functions/transformations.lua +5 -1
- package/dist/functions/trinketCacheFlag.lua +5 -1
- package/dist/functions/trinketSet.lua +3 -1
- package/dist/functions/trinkets.lua +2 -2
- package/dist/functions/utils.lua +5 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.lua +8 -0
- 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/gridEntityTypeToBrokenStateMap.lua +3 -1
- package/dist/maps/gridEntityXMLMap.lua +3 -1
- package/dist/maps/pillEffectClassMap.lua +3 -1
- package/dist/maps/pillEffectNameMap.lua +3 -1
- package/dist/maps/pillEffectTypeMap.lua +3 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -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/DefaultMap.lua +5 -1
- package/dist/types/ModUpgraded.lua +4 -1
- package/dist/types/SerializationBrand.lua +3 -1
- package/dist/upgradeMod.lua +5 -1
- package/package.json +5 -5
package/dist/functions/log.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 Map = ____lualib.Map
|
|
4
|
+
local __TS__Spread = ____lualib.__TS__Spread
|
|
5
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
6
|
+
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
7
|
+
local Set = ____lualib.Set
|
|
3
8
|
local ____exports = {}
|
|
4
9
|
local ____array = require("functions.array")
|
|
5
10
|
local arrayToString = ____array.arrayToString
|
|
@@ -9,6 +14,11 @@ local ____flag = require("functions.flag")
|
|
|
9
14
|
local hasFlag = ____flag.hasFlag
|
|
10
15
|
local ____player = require("functions.player")
|
|
11
16
|
local getEffectsList = ____player.getEffectsList
|
|
17
|
+
local ____rooms = require("functions.rooms")
|
|
18
|
+
local getRoomListIndex = ____rooms.getRoomListIndex
|
|
19
|
+
local getRoomSafeGridIndex = ____rooms.getRoomSafeGridIndex
|
|
20
|
+
local getRoomSubType = ____rooms.getRoomSubType
|
|
21
|
+
local getRoomVariant = ____rooms.getRoomVariant
|
|
12
22
|
local ____trinkets = require("functions.trinkets")
|
|
13
23
|
local getTrinketName = ____trinkets.getTrinketName
|
|
14
24
|
function ____exports.getDebugPrependString(self, msg, numParentFunctions)
|
|
@@ -119,6 +129,18 @@ function ____exports.logMap(map)
|
|
|
119
129
|
end
|
|
120
130
|
____exports.log("The size of the map was: " .. tostring(map.size))
|
|
121
131
|
end
|
|
132
|
+
function ____exports.logRoom()
|
|
133
|
+
local game = Game()
|
|
134
|
+
local room = game:GetRoom()
|
|
135
|
+
local roomType = room:GetType()
|
|
136
|
+
local roomVariant = getRoomVariant(nil)
|
|
137
|
+
local roomSubType = getRoomSubType(nil)
|
|
138
|
+
local roomSafeGridIndex = getRoomSafeGridIndex(nil)
|
|
139
|
+
local roomListIndex = getRoomListIndex(nil)
|
|
140
|
+
____exports.log((((("Current room type/variant/sub-type: " .. tostring(roomType)) .. ".") .. tostring(roomVariant)) .. ".") .. tostring(roomSubType))
|
|
141
|
+
____exports.log("Current room safe grid index: " .. tostring(roomSafeGridIndex))
|
|
142
|
+
____exports.log("Current room list index: " .. tostring(roomListIndex))
|
|
143
|
+
end
|
|
122
144
|
function ____exports.logTable(____table, parentTables)
|
|
123
145
|
if parentTables == nil then
|
|
124
146
|
parentTables = 0
|
package/dist/functions/map.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__New = ____lualib.__TS__New
|
|
5
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
function ____exports.copyMap(self, oldMap)
|
|
5
8
|
local newMap = __TS__New(Map)
|
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 ____utils = require("functions.utils")
|
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,4 +1,16 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to get all of the pickups in the room.
|
|
4
|
+
*
|
|
5
|
+
* Example:
|
|
6
|
+
* ```
|
|
7
|
+
* // Make all of the pickups in the room invisible
|
|
8
|
+
* for (const pickup of getPickups()) {
|
|
9
|
+
* pickup.Visible = false;
|
|
10
|
+
* }
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function getPickups(matchingVariant?: PickupVariant | int, matchingSubType?: number): EntityPickup[];
|
|
2
14
|
/**
|
|
3
15
|
* Has as an equal chance of returning any value in the `HeartSubType` enum. Useful for spawning a random type of heart.
|
|
4
16
|
*
|
|
@@ -7,3 +19,12 @@
|
|
|
7
19
|
*/
|
|
8
20
|
export declare function getRandomHeartSubType(seed?: number, exceptions?: HeartSubType[]): HeartSubType;
|
|
9
21
|
export declare function isChest(pickup: EntityPickup): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Helper function to remove all of the pickups in the room.
|
|
24
|
+
*
|
|
25
|
+
* @param variant Optional. If specified, will only remove pickups that match this variant.
|
|
26
|
+
* @param subType Optional. If specified, will only remove pickups that match this sub-type.
|
|
27
|
+
* @param cap Optional. If specified, will only remove the given amount of pickups.
|
|
28
|
+
* @returns True if one or more pickups was removed, false otherwise.
|
|
29
|
+
*/
|
|
30
|
+
export declare function removeAllPickups(variant?: PickupVariant | int, subType?: int, cap?: int): boolean;
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____lualib = require("lualib_bundle")
|
|
3
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
2
4
|
local ____exports = {}
|
|
3
5
|
local ____constants = require("constants")
|
|
4
6
|
local CHEST_PICKUP_VARIANTS = ____constants.CHEST_PICKUP_VARIANTS
|
|
5
7
|
local ____array = require("functions.array")
|
|
6
8
|
local getRandomArrayElement = ____array.getRandomArrayElement
|
|
9
|
+
local ____entity = require("functions.entity")
|
|
10
|
+
local getEntities = ____entity.getEntities
|
|
11
|
+
local removeEntities = ____entity.removeEntities
|
|
7
12
|
local ____utils = require("functions.utils")
|
|
8
13
|
local getEnumValues = ____utils.getEnumValues
|
|
14
|
+
function ____exports.getPickups(self, matchingVariant, matchingSubType)
|
|
15
|
+
if matchingVariant == nil then
|
|
16
|
+
matchingVariant = -1
|
|
17
|
+
end
|
|
18
|
+
if matchingSubType == nil then
|
|
19
|
+
matchingSubType = -1
|
|
20
|
+
end
|
|
21
|
+
local entities = getEntities(nil, EntityType.ENTITY_PICKUP, matchingVariant, matchingSubType)
|
|
22
|
+
local pickups = {}
|
|
23
|
+
for ____, entity in ipairs(entities) do
|
|
24
|
+
local pickup = entity:ToPickup()
|
|
25
|
+
if pickup ~= nil then
|
|
26
|
+
__TS__ArrayPush(pickups, pickup)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
return pickups
|
|
30
|
+
end
|
|
9
31
|
function ____exports.getRandomHeartSubType(self, seed, exceptions)
|
|
10
32
|
if seed == nil then
|
|
11
33
|
seed = Random()
|
|
@@ -19,4 +41,8 @@ end
|
|
|
19
41
|
function ____exports.isChest(self, pickup)
|
|
20
42
|
return CHEST_PICKUP_VARIANTS:has(pickup.Variant)
|
|
21
43
|
end
|
|
44
|
+
function ____exports.removeAllPickups(self, variant, subType, cap)
|
|
45
|
+
local pickups = ____exports.getPickups(nil, variant, subType)
|
|
46
|
+
return removeEntities(nil, pickups, cap)
|
|
47
|
+
end
|
|
22
48
|
return ____exports
|
|
@@ -1,5 +1,14 @@
|
|
|
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__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
+
local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
8
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
9
|
+
local Map = ____lualib.Map
|
|
10
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
11
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
3
12
|
local ____exports = {}
|
|
4
13
|
local getPlayerIndexCollectibleType, getAdjustedPlayerName, isTaintedModded, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
|
|
5
14
|
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 __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
3
5
|
local ____exports = {}
|
|
4
6
|
local ____constants = require("constants")
|
|
5
7
|
local MAX_PLAYER_HEART_CONTAINERS = ____constants.MAX_PLAYER_HEART_CONTAINERS
|
|
@@ -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 __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
4
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
5
|
+
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
local ____constants = require("constants")
|
|
5
8
|
local MAX_PLAYER_POCKET_ITEM_SLOTS = ____constants.MAX_PLAYER_POCKET_ITEM_SLOTS
|
|
@@ -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 ____constants = require("constants")
|
|
5
7
|
local DISTANCE_OF_GRID_TILE = ____constants.DISTANCE_OF_GRID_TILE
|
package/dist/functions/rooms.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 __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
4
|
+
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
5
|
+
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
|
+
local __TS__ArrayPush = ____lualib.__TS__ArrayPush
|
|
7
|
+
local Set = ____lualib.Set
|
|
8
|
+
local __TS__New = ____lualib.__TS__New
|
|
9
|
+
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
10
|
+
local Map = ____lualib.Map
|
|
3
11
|
local ____exports = {}
|
|
4
12
|
local ____constants = require("constants")
|
|
5
13
|
local GENESIS_ROOM_SUBTYPE = ____constants.GENESIS_ROOM_SUBTYPE
|
package/dist/functions/set.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__Iterator = ____lualib.__TS__Iterator
|
|
5
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
function ____exports.addSetsToSet(self, mainSet, ...)
|
|
5
8
|
local setsToAdd = {...}
|
|
@@ -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 __TS__StringStartsWith = ____lualib.__TS__StringStartsWith
|
|
4
|
+
local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
5
|
+
local __TS__StringEndsWith = ____lualib.__TS__StringEndsWith
|
|
3
6
|
local ____exports = {}
|
|
4
7
|
function ____exports.stringContains(self, ____string, searchString)
|
|
5
8
|
return (string.find(____string, searchString, nil, true) or 0) - 1 ~= -1
|
|
@@ -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 Set = ____lualib.Set
|
|
6
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local ____transformationNameMap = require("maps.transformationNameMap")
|
|
5
9
|
local TRANSFORMATION_NAME_MAP = ____transformationNameMap.TRANSFORMATION_NAME_MAP
|
|
@@ -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 Set = ____lualib.Set
|
|
6
|
+
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local ____math = require("functions.math")
|
|
5
9
|
local range = ____math.range
|
|
@@ -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 ____math = require("functions.math")
|
|
5
7
|
local range = ____math.range
|
|
@@ -6,10 +6,10 @@ local ____trinketDescriptionMap = require("maps.trinketDescriptionMap")
|
|
|
6
6
|
local TRINKET_DESCRIPTION_MAP = ____trinketDescriptionMap.TRINKET_DESCRIPTION_MAP
|
|
7
7
|
local ____trinketNameMap = require("maps.trinketNameMap")
|
|
8
8
|
local TRINKET_NAME_MAP = ____trinketNameMap.TRINKET_NAME_MAP
|
|
9
|
-
local ____entity = require("functions.entity")
|
|
10
|
-
local getPickups = ____entity.getPickups
|
|
11
9
|
local ____flag = require("functions.flag")
|
|
12
10
|
local hasFlag = ____flag.hasFlag
|
|
11
|
+
local ____pickups = require("functions.pickups")
|
|
12
|
+
local getPickups = ____pickups.getPickups
|
|
13
13
|
local ____player = require("functions.player")
|
|
14
14
|
local useActiveItemTemp = ____player.useActiveItemTemp
|
|
15
15
|
local ____trinketGive = require("functions.trinketGive")
|
package/dist/functions/utils.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__ArrayPush = ____lualib.__TS__ArrayPush
|
|
4
|
+
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
5
|
+
local __TS__StringReplace = ____lualib.__TS__StringReplace
|
|
6
|
+
local __TS__StringSubstr = ____lualib.__TS__StringSubstr
|
|
3
7
|
local ____exports = {}
|
|
4
8
|
local HEX_STRING_LENGTH = 6
|
|
5
9
|
____exports.ensureAllCases = function(____, obj) return obj end
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { deployJSONRoom, deployRandomJSONRoom, emptyRoom, } from "./features/dep
|
|
|
4
4
|
export { disableAllInputs, disableAllInputsExceptFor, disableMovementInputs, disableShootingInputs, enableAllInputs, enableAllInputsExceptFor, } from "./features/disableInputs";
|
|
5
5
|
export { forgottenSwitch } from "./features/forgottenSwitch";
|
|
6
6
|
export { getCollectibleItemPoolType } from "./features/getCollectibleItemPoolType";
|
|
7
|
+
export * from "./features/isPonyActive";
|
|
7
8
|
export { preventCollectibleRotate } from "./features/preventCollectibleRotate";
|
|
8
9
|
export { runInNGameFrames, runInNRenderFrames, runNextGameFrame, runNextRenderFrame, } from "./features/runInNFrames";
|
|
9
10
|
export * from "./features/saveDataManager/exports";
|
package/dist/index.lua
CHANGED
|
@@ -49,6 +49,14 @@ do
|
|
|
49
49
|
local getCollectibleItemPoolType = ____getCollectibleItemPoolType.getCollectibleItemPoolType
|
|
50
50
|
____exports.getCollectibleItemPoolType = getCollectibleItemPoolType
|
|
51
51
|
end
|
|
52
|
+
do
|
|
53
|
+
local ____export = require("features.isPonyActive")
|
|
54
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
55
|
+
if ____exportKey ~= "default" then
|
|
56
|
+
____exports[____exportKey] = ____exportValue
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
52
60
|
do
|
|
53
61
|
local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
|
|
54
62
|
local preventCollectibleRotate = ____preventCollectibleRotate.preventCollectibleRotate
|