isaacscript-common 30.11.1 → 30.11.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/index.rollup.d.ts +2 -3
- package/dist/isaacscript-common.lua +26 -219
- package/dist/lualib_bundle.lua +4 -7
- package/dist/src/classes/DefaultMap.d.ts +0 -2
- package/dist/src/classes/DefaultMap.d.ts.map +1 -1
- package/dist/src/classes/DefaultMap.lua +0 -2
- package/dist/src/classes/features/other/DeployJSONRoom.d.ts +2 -1
- package/dist/src/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +0 -9
- package/dist/src/functions/entities.lua +0 -18
- package/dist/src/functions/entitiesSpecific.lua +0 -90
- package/dist/src/functions/pickupsSpecific.lua +0 -81
- package/package.json +2 -2
- package/src/classes/DefaultMap.ts +0 -2
- package/src/classes/features/other/DeployJSONRoom.ts +2 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -3244,8 +3244,6 @@ export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
|
|
|
3244
3244
|
* However, if a factory function was provided during instantiation, and the factory function has
|
|
3245
3245
|
* one or more arguments, then you must call this method instead (and provide the corresponding
|
|
3246
3246
|
* arguments).
|
|
3247
|
-
* - `getWithoutDefault` - Calls the original `Map.get` function (without setting the default
|
|
3248
|
-
* value).
|
|
3249
3247
|
* - `getDefaultValue` - Returns the default value to be used for a new key. (If a factory function
|
|
3250
3248
|
* was provided during instantiation, this will execute the factory function.)
|
|
3251
3249
|
* - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
@@ -3336,7 +3334,8 @@ declare class DeployJSONRoom extends Feature {
|
|
|
3336
3334
|
/**
|
|
3337
3335
|
* Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
3338
3336
|
* Specifically, this will clear the current room of all entities and grid entities, and then
|
|
3339
|
-
* spawn all of the entries and grid entities in the provided JSON room.
|
|
3337
|
+
* spawn all of the entries and grid entities in the provided JSON room. For this reason, you must
|
|
3338
|
+
* be in the actual room in order to use this function.
|
|
3340
3339
|
*
|
|
3341
3340
|
* A JSON room is simply an XML file converted to JSON. You can create JSON rooms by using the
|
|
3342
3341
|
* Basement Renovator room editor to create an XML file, and then convert it to JSON using the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 30.11.
|
|
3
|
+
isaacscript-common 30.11.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -1625,7 +1625,7 @@ local function __TS__ParseFloat(numberString)
|
|
|
1625
1625
|
if infinityMatch ~= nil then
|
|
1626
1626
|
return __TS__StringAccess(infinityMatch, 0) == "-" and -math.huge or math.huge
|
|
1627
1627
|
end
|
|
1628
|
-
local number = tonumber(__TS__Match(numberString, "^%s*(-?%d+%.?%d*)"))
|
|
1628
|
+
local number = tonumber((__TS__Match(numberString, "^%s*(-?%d+%.?%d*)")))
|
|
1629
1629
|
return number or 0 / 0
|
|
1630
1630
|
end
|
|
1631
1631
|
|
|
@@ -1656,7 +1656,7 @@ do
|
|
|
1656
1656
|
local hexMatch = __TS__Match(numberString, "^%s*-?0[xX]")
|
|
1657
1657
|
if hexMatch ~= nil then
|
|
1658
1658
|
base = 16
|
|
1659
|
-
numberString = __TS__Match(hexMatch, "-") and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
|
|
1659
|
+
numberString = (__TS__Match(hexMatch, "-")) and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
|
|
1660
1660
|
end
|
|
1661
1661
|
end
|
|
1662
1662
|
if base < 2 or base > 36 then
|
|
@@ -1664,10 +1664,7 @@ do
|
|
|
1664
1664
|
end
|
|
1665
1665
|
local allowedDigits = base <= 10 and __TS__StringSubstring(parseIntBasePattern, 0, base) or __TS__StringSubstring(parseIntBasePattern, 0, 10 + 2 * (base - 10))
|
|
1666
1666
|
local pattern = ("^%s*(-?[" .. allowedDigits) .. "]*)"
|
|
1667
|
-
local number = tonumber(
|
|
1668
|
-
__TS__Match(numberString, pattern),
|
|
1669
|
-
base
|
|
1670
|
-
)
|
|
1667
|
+
local number = tonumber((__TS__Match(numberString, pattern)), base)
|
|
1671
1668
|
if number == nil then
|
|
1672
1669
|
return 0 / 0
|
|
1673
1670
|
end
|
|
@@ -2121,7 +2118,7 @@ local function __TS__SourceMapTraceBack(fileName, sourceMap)
|
|
|
2121
2118
|
local function stringReplacer(____, file, line)
|
|
2122
2119
|
local fileSourceMap = _G.__TS__sourcemap[file]
|
|
2123
2120
|
if fileSourceMap ~= nil and fileSourceMap[line] ~= nil then
|
|
2124
|
-
local chunkName = __TS__Match(file, "%[string \"([^\"]+)\"%]")
|
|
2121
|
+
local chunkName = (__TS__Match(file, "%[string \"([^\"]+)\"%]"))
|
|
2125
2122
|
local sourceName = string.gsub(chunkName, ".lua$", ".ts")
|
|
2126
2123
|
local data = fileSourceMap[line]
|
|
2127
2124
|
if type(data) == "number" then
|
|
@@ -2958,6 +2955,14 @@ do
|
|
|
2958
2955
|
end
|
|
2959
2956
|
end
|
|
2960
2957
|
end
|
|
2958
|
+
do
|
|
2959
|
+
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority")
|
|
2960
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
2961
|
+
if ____exportKey ~= "default" then
|
|
2962
|
+
____exports[____exportKey] = ____exportValue
|
|
2963
|
+
end
|
|
2964
|
+
end
|
|
2965
|
+
end
|
|
2961
2966
|
do
|
|
2962
2967
|
local ____export = require("lua_modules.isaac-typescript-definitions.dist.src.enums.Challenge")
|
|
2963
2968
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -15150,6 +15155,19 @@ ____exports.Challenge.RED_REDEMPTION = 44
|
|
|
15150
15155
|
____exports.Challenge[____exports.Challenge.RED_REDEMPTION] = "RED_REDEMPTION"
|
|
15151
15156
|
____exports.Challenge.DELETE_THIS = 45
|
|
15152
15157
|
____exports.Challenge[____exports.Challenge.DELETE_THIS] = "DELETE_THIS"
|
|
15158
|
+
return ____exports
|
|
15159
|
+
end,
|
|
15160
|
+
["lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority"] = function(...)
|
|
15161
|
+
local ____exports = {}
|
|
15162
|
+
____exports.CallbackPriority = {}
|
|
15163
|
+
____exports.CallbackPriority.IMPORTANT = -200
|
|
15164
|
+
____exports.CallbackPriority[____exports.CallbackPriority.IMPORTANT] = "IMPORTANT"
|
|
15165
|
+
____exports.CallbackPriority.EARLY = -100
|
|
15166
|
+
____exports.CallbackPriority[____exports.CallbackPriority.EARLY] = "EARLY"
|
|
15167
|
+
____exports.CallbackPriority.DEFAULT = 0
|
|
15168
|
+
____exports.CallbackPriority[____exports.CallbackPriority.DEFAULT] = "DEFAULT"
|
|
15169
|
+
____exports.CallbackPriority.LATE = 100
|
|
15170
|
+
____exports.CallbackPriority[____exports.CallbackPriority.LATE] = "LATE"
|
|
15153
15171
|
return ____exports
|
|
15154
15172
|
end,
|
|
15155
15173
|
["lua_modules.isaac-typescript-definitions.dist.src.enums.ButtonAction"] = function(...)
|
|
@@ -21065,9 +21083,6 @@ function ____exports.removeAllMatchingEntities(self, entityType, entityVariant,
|
|
|
21065
21083
|
if entitySubType == nil then
|
|
21066
21084
|
entitySubType = -1
|
|
21067
21085
|
end
|
|
21068
|
-
if cap == nil then
|
|
21069
|
-
cap = nil
|
|
21070
|
-
end
|
|
21071
21086
|
local entities = ____exports.getEntities(nil, entityType, entityVariant, entitySubType)
|
|
21072
21087
|
return ____exports.removeEntities(nil, entities, cap)
|
|
21073
21088
|
end
|
|
@@ -21109,12 +21124,6 @@ function ____exports.spawn(self, entityType, variant, subType, positionOrGridInd
|
|
|
21109
21124
|
if velocity == nil then
|
|
21110
21125
|
velocity = VectorZero
|
|
21111
21126
|
end
|
|
21112
|
-
if spawner == nil then
|
|
21113
|
-
spawner = nil
|
|
21114
|
-
end
|
|
21115
|
-
if seedOrRNG == nil then
|
|
21116
|
-
seedOrRNG = nil
|
|
21117
|
-
end
|
|
21118
21127
|
local room = game:GetRoom()
|
|
21119
21128
|
if positionOrGridIndex == nil then
|
|
21120
21129
|
local entityID = ____exports.getEntityIDFromConstituents(nil, entityType, variant, subType)
|
|
@@ -21146,12 +21155,6 @@ function ____exports.spawnEntityID(self, entityID, positionOrGridIndex, velocity
|
|
|
21146
21155
|
if velocity == nil then
|
|
21147
21156
|
velocity = VectorZero
|
|
21148
21157
|
end
|
|
21149
|
-
if spawner == nil then
|
|
21150
|
-
spawner = nil
|
|
21151
|
-
end
|
|
21152
|
-
if seedOrRNG == nil then
|
|
21153
|
-
seedOrRNG = nil
|
|
21154
|
-
end
|
|
21155
21158
|
local entityType, variant, subType = table.unpack(____exports.getConstituentsFromEntityID(nil, entityID))
|
|
21156
21159
|
return ____exports.spawn(
|
|
21157
21160
|
nil,
|
|
@@ -21168,9 +21171,6 @@ function ____exports.spawnWithSeed(self, entityType, variant, subType, positionO
|
|
|
21168
21171
|
if velocity == nil then
|
|
21169
21172
|
velocity = VectorZero
|
|
21170
21173
|
end
|
|
21171
|
-
if spawner == nil then
|
|
21172
|
-
spawner = nil
|
|
21173
|
-
end
|
|
21174
21174
|
return ____exports.spawn(
|
|
21175
21175
|
nil,
|
|
21176
21176
|
entityType,
|
|
@@ -23869,12 +23869,6 @@ function ____exports.spawnBomb(self, bombVariant, subType, positionOrGridIndex,
|
|
|
23869
23869
|
if velocity == nil then
|
|
23870
23870
|
velocity = VectorZero
|
|
23871
23871
|
end
|
|
23872
|
-
if spawner == nil then
|
|
23873
|
-
spawner = nil
|
|
23874
|
-
end
|
|
23875
|
-
if seedOrRNG == nil then
|
|
23876
|
-
seedOrRNG = nil
|
|
23877
|
-
end
|
|
23878
23872
|
local entity = spawn(
|
|
23879
23873
|
nil,
|
|
23880
23874
|
EntityType.BOMB,
|
|
@@ -23895,9 +23889,6 @@ function ____exports.spawnBombWithSeed(self, bombVariant, subType, positionOrGri
|
|
|
23895
23889
|
if velocity == nil then
|
|
23896
23890
|
velocity = VectorZero
|
|
23897
23891
|
end
|
|
23898
|
-
if spawner == nil then
|
|
23899
|
-
spawner = nil
|
|
23900
|
-
end
|
|
23901
23892
|
return ____exports.spawnBomb(
|
|
23902
23893
|
nil,
|
|
23903
23894
|
bombVariant,
|
|
@@ -23912,12 +23903,6 @@ function ____exports.spawnEffect(self, effectVariant, subType, positionOrGridInd
|
|
|
23912
23903
|
if velocity == nil then
|
|
23913
23904
|
velocity = VectorZero
|
|
23914
23905
|
end
|
|
23915
|
-
if spawner == nil then
|
|
23916
|
-
spawner = nil
|
|
23917
|
-
end
|
|
23918
|
-
if seedOrRNG == nil then
|
|
23919
|
-
seedOrRNG = nil
|
|
23920
|
-
end
|
|
23921
23906
|
local entity = spawn(
|
|
23922
23907
|
nil,
|
|
23923
23908
|
EntityType.EFFECT,
|
|
@@ -23938,9 +23923,6 @@ function ____exports.spawnEffectWithSeed(self, effectVariant, subType, positionO
|
|
|
23938
23923
|
if velocity == nil then
|
|
23939
23924
|
velocity = VectorZero
|
|
23940
23925
|
end
|
|
23941
|
-
if spawner == nil then
|
|
23942
|
-
spawner = nil
|
|
23943
|
-
end
|
|
23944
23926
|
return ____exports.spawnEffect(
|
|
23945
23927
|
nil,
|
|
23946
23928
|
effectVariant,
|
|
@@ -23955,12 +23937,6 @@ function ____exports.spawnFamiliar(self, familiarVariant, subType, positionOrGri
|
|
|
23955
23937
|
if velocity == nil then
|
|
23956
23938
|
velocity = VectorZero
|
|
23957
23939
|
end
|
|
23958
|
-
if spawner == nil then
|
|
23959
|
-
spawner = nil
|
|
23960
|
-
end
|
|
23961
|
-
if seedOrRNG == nil then
|
|
23962
|
-
seedOrRNG = nil
|
|
23963
|
-
end
|
|
23964
23940
|
local entity = spawn(
|
|
23965
23941
|
nil,
|
|
23966
23942
|
EntityType.FAMILIAR,
|
|
@@ -23981,9 +23957,6 @@ function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType, posit
|
|
|
23981
23957
|
if velocity == nil then
|
|
23982
23958
|
velocity = VectorZero
|
|
23983
23959
|
end
|
|
23984
|
-
if spawner == nil then
|
|
23985
|
-
spawner = nil
|
|
23986
|
-
end
|
|
23987
23960
|
return ____exports.spawnFamiliar(
|
|
23988
23961
|
nil,
|
|
23989
23962
|
familiarVariant,
|
|
@@ -23998,12 +23971,6 @@ function ____exports.spawnKnife(self, knifeVariant, subType, positionOrGridIndex
|
|
|
23998
23971
|
if velocity == nil then
|
|
23999
23972
|
velocity = VectorZero
|
|
24000
23973
|
end
|
|
24001
|
-
if spawner == nil then
|
|
24002
|
-
spawner = nil
|
|
24003
|
-
end
|
|
24004
|
-
if seedOrRNG == nil then
|
|
24005
|
-
seedOrRNG = nil
|
|
24006
|
-
end
|
|
24007
23974
|
local entity = spawn(
|
|
24008
23975
|
nil,
|
|
24009
23976
|
EntityType.KNIFE,
|
|
@@ -24024,9 +23991,6 @@ function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType, positionOrG
|
|
|
24024
23991
|
if velocity == nil then
|
|
24025
23992
|
velocity = VectorZero
|
|
24026
23993
|
end
|
|
24027
|
-
if spawner == nil then
|
|
24028
|
-
spawner = nil
|
|
24029
|
-
end
|
|
24030
23994
|
return ____exports.spawnKnife(
|
|
24031
23995
|
nil,
|
|
24032
23996
|
knifeVariant,
|
|
@@ -24041,12 +24005,6 @@ function ____exports.spawnLaser(self, laserVariant, subType, positionOrGridIndex
|
|
|
24041
24005
|
if velocity == nil then
|
|
24042
24006
|
velocity = VectorZero
|
|
24043
24007
|
end
|
|
24044
|
-
if spawner == nil then
|
|
24045
|
-
spawner = nil
|
|
24046
|
-
end
|
|
24047
|
-
if seedOrRNG == nil then
|
|
24048
|
-
seedOrRNG = nil
|
|
24049
|
-
end
|
|
24050
24008
|
local entity = spawn(
|
|
24051
24009
|
nil,
|
|
24052
24010
|
EntityType.LASER,
|
|
@@ -24067,9 +24025,6 @@ function ____exports.spawnLaserWithSeed(self, laserVariant, subType, positionOrG
|
|
|
24067
24025
|
if velocity == nil then
|
|
24068
24026
|
velocity = VectorZero
|
|
24069
24027
|
end
|
|
24070
|
-
if spawner == nil then
|
|
24071
|
-
spawner = nil
|
|
24072
|
-
end
|
|
24073
24028
|
return ____exports.spawnLaser(
|
|
24074
24029
|
nil,
|
|
24075
24030
|
laserVariant,
|
|
@@ -24084,12 +24039,6 @@ function ____exports.spawnNPC(self, entityType, variant, subType, positionOrGrid
|
|
|
24084
24039
|
if velocity == nil then
|
|
24085
24040
|
velocity = VectorZero
|
|
24086
24041
|
end
|
|
24087
|
-
if spawner == nil then
|
|
24088
|
-
spawner = nil
|
|
24089
|
-
end
|
|
24090
|
-
if seedOrRNG == nil then
|
|
24091
|
-
seedOrRNG = nil
|
|
24092
|
-
end
|
|
24093
24042
|
local entity = spawn(
|
|
24094
24043
|
nil,
|
|
24095
24044
|
entityType,
|
|
@@ -24110,9 +24059,6 @@ function ____exports.spawnNPCWithSeed(self, entityType, variant, subType, positi
|
|
|
24110
24059
|
if velocity == nil then
|
|
24111
24060
|
velocity = VectorZero
|
|
24112
24061
|
end
|
|
24113
|
-
if spawner == nil then
|
|
24114
|
-
spawner = nil
|
|
24115
|
-
end
|
|
24116
24062
|
return ____exports.spawnNPC(
|
|
24117
24063
|
nil,
|
|
24118
24064
|
entityType,
|
|
@@ -24128,12 +24074,6 @@ function ____exports.spawnPickup(self, pickupVariant, subType, positionOrGridInd
|
|
|
24128
24074
|
if velocity == nil then
|
|
24129
24075
|
velocity = VectorZero
|
|
24130
24076
|
end
|
|
24131
|
-
if spawner == nil then
|
|
24132
|
-
spawner = nil
|
|
24133
|
-
end
|
|
24134
|
-
if seedOrRNG == nil then
|
|
24135
|
-
seedOrRNG = nil
|
|
24136
|
-
end
|
|
24137
24077
|
local entity = spawn(
|
|
24138
24078
|
nil,
|
|
24139
24079
|
EntityType.PICKUP,
|
|
@@ -24154,9 +24094,6 @@ function ____exports.spawnPickupWithSeed(self, pickupVariant, subType, positionO
|
|
|
24154
24094
|
if velocity == nil then
|
|
24155
24095
|
velocity = VectorZero
|
|
24156
24096
|
end
|
|
24157
|
-
if spawner == nil then
|
|
24158
|
-
spawner = nil
|
|
24159
|
-
end
|
|
24160
24097
|
return ____exports.spawnPickup(
|
|
24161
24098
|
nil,
|
|
24162
24099
|
pickupVariant,
|
|
@@ -24171,12 +24108,6 @@ function ____exports.spawnProjectile(self, projectileVariant, subType, positionO
|
|
|
24171
24108
|
if velocity == nil then
|
|
24172
24109
|
velocity = VectorZero
|
|
24173
24110
|
end
|
|
24174
|
-
if spawner == nil then
|
|
24175
|
-
spawner = nil
|
|
24176
|
-
end
|
|
24177
|
-
if seedOrRNG == nil then
|
|
24178
|
-
seedOrRNG = nil
|
|
24179
|
-
end
|
|
24180
24111
|
local entity = spawn(
|
|
24181
24112
|
nil,
|
|
24182
24113
|
EntityType.PROJECTILE,
|
|
@@ -24197,9 +24128,6 @@ function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType, p
|
|
|
24197
24128
|
if velocity == nil then
|
|
24198
24129
|
velocity = VectorZero
|
|
24199
24130
|
end
|
|
24200
|
-
if spawner == nil then
|
|
24201
|
-
spawner = nil
|
|
24202
|
-
end
|
|
24203
24131
|
return ____exports.spawnProjectile(
|
|
24204
24132
|
nil,
|
|
24205
24133
|
projectileVariant,
|
|
@@ -24214,12 +24142,6 @@ function ____exports.spawnSlot(self, slotVariant, subType, positionOrGridIndex,
|
|
|
24214
24142
|
if velocity == nil then
|
|
24215
24143
|
velocity = VectorZero
|
|
24216
24144
|
end
|
|
24217
|
-
if spawner == nil then
|
|
24218
|
-
spawner = nil
|
|
24219
|
-
end
|
|
24220
|
-
if seedOrRNG == nil then
|
|
24221
|
-
seedOrRNG = nil
|
|
24222
|
-
end
|
|
24223
24145
|
return spawn(
|
|
24224
24146
|
nil,
|
|
24225
24147
|
EntityType.SLOT,
|
|
@@ -24235,9 +24157,6 @@ function ____exports.spawnSlotWithSeed(self, slotVariant, subType, positionOrGri
|
|
|
24235
24157
|
if velocity == nil then
|
|
24236
24158
|
velocity = VectorZero
|
|
24237
24159
|
end
|
|
24238
|
-
if spawner == nil then
|
|
24239
|
-
spawner = nil
|
|
24240
|
-
end
|
|
24241
24160
|
return ____exports.spawnSlot(
|
|
24242
24161
|
nil,
|
|
24243
24162
|
slotVariant,
|
|
@@ -24252,12 +24171,6 @@ function ____exports.spawnTear(self, tearVariant, subType, positionOrGridIndex,
|
|
|
24252
24171
|
if velocity == nil then
|
|
24253
24172
|
velocity = VectorZero
|
|
24254
24173
|
end
|
|
24255
|
-
if spawner == nil then
|
|
24256
|
-
spawner = nil
|
|
24257
|
-
end
|
|
24258
|
-
if seedOrRNG == nil then
|
|
24259
|
-
seedOrRNG = nil
|
|
24260
|
-
end
|
|
24261
24174
|
local entity = spawn(
|
|
24262
24175
|
nil,
|
|
24263
24176
|
EntityType.TEAR,
|
|
@@ -24278,9 +24191,6 @@ function ____exports.spawnTearWithSeed(self, tearVariant, subType, positionOrGri
|
|
|
24278
24191
|
if velocity == nil then
|
|
24279
24192
|
velocity = VectorZero
|
|
24280
24193
|
end
|
|
24281
|
-
if spawner == nil then
|
|
24282
|
-
spawner = nil
|
|
24283
|
-
end
|
|
24284
24194
|
return ____exports.spawnTear(
|
|
24285
24195
|
nil,
|
|
24286
24196
|
tearVariant,
|
|
@@ -38953,12 +38863,6 @@ function ____exports.spawnBattery(self, batterySubType, positionOrGridIndex, vel
|
|
|
38953
38863
|
if velocity == nil then
|
|
38954
38864
|
velocity = VectorZero
|
|
38955
38865
|
end
|
|
38956
|
-
if spawner == nil then
|
|
38957
|
-
spawner = nil
|
|
38958
|
-
end
|
|
38959
|
-
if seedOrRNG == nil then
|
|
38960
|
-
seedOrRNG = nil
|
|
38961
|
-
end
|
|
38962
38866
|
return spawnPickup(
|
|
38963
38867
|
nil,
|
|
38964
38868
|
PickupVariant.LIL_BATTERY,
|
|
@@ -38973,9 +38877,6 @@ function ____exports.spawnBatteryWithSeed(self, batterySubType, positionOrGridIn
|
|
|
38973
38877
|
if velocity == nil then
|
|
38974
38878
|
velocity = VectorZero
|
|
38975
38879
|
end
|
|
38976
|
-
if spawner == nil then
|
|
38977
|
-
spawner = nil
|
|
38978
|
-
end
|
|
38979
38880
|
return ____exports.spawnBattery(
|
|
38980
38881
|
nil,
|
|
38981
38882
|
batterySubType,
|
|
@@ -38989,12 +38890,6 @@ function ____exports.spawnBombPickup(self, bombSubType, positionOrGridIndex, vel
|
|
|
38989
38890
|
if velocity == nil then
|
|
38990
38891
|
velocity = VectorZero
|
|
38991
38892
|
end
|
|
38992
|
-
if spawner == nil then
|
|
38993
|
-
spawner = nil
|
|
38994
|
-
end
|
|
38995
|
-
if seedOrRNG == nil then
|
|
38996
|
-
seedOrRNG = nil
|
|
38997
|
-
end
|
|
38998
38893
|
return spawnPickup(
|
|
38999
38894
|
nil,
|
|
39000
38895
|
PickupVariant.BOMB,
|
|
@@ -39009,9 +38904,6 @@ function ____exports.spawnBombPickupWithSeed(self, bombSubType, positionOrGridIn
|
|
|
39009
38904
|
if velocity == nil then
|
|
39010
38905
|
velocity = VectorZero
|
|
39011
38906
|
end
|
|
39012
|
-
if spawner == nil then
|
|
39013
|
-
spawner = nil
|
|
39014
|
-
end
|
|
39015
38907
|
return ____exports.spawnBombPickup(
|
|
39016
38908
|
nil,
|
|
39017
38909
|
bombSubType,
|
|
@@ -39025,12 +38917,6 @@ function ____exports.spawnCard(self, cardType, positionOrGridIndex, velocity, sp
|
|
|
39025
38917
|
if velocity == nil then
|
|
39026
38918
|
velocity = VectorZero
|
|
39027
38919
|
end
|
|
39028
|
-
if spawner == nil then
|
|
39029
|
-
spawner = nil
|
|
39030
|
-
end
|
|
39031
|
-
if seedOrRNG == nil then
|
|
39032
|
-
seedOrRNG = nil
|
|
39033
|
-
end
|
|
39034
38920
|
return spawnPickup(
|
|
39035
38921
|
nil,
|
|
39036
38922
|
PickupVariant.TAROT_CARD,
|
|
@@ -39045,9 +38931,6 @@ function ____exports.spawnCardWithSeed(self, cardType, positionOrGridIndex, seed
|
|
|
39045
38931
|
if velocity == nil then
|
|
39046
38932
|
velocity = VectorZero
|
|
39047
38933
|
end
|
|
39048
|
-
if spawner == nil then
|
|
39049
|
-
spawner = nil
|
|
39050
|
-
end
|
|
39051
38934
|
return ____exports.spawnCard(
|
|
39052
38935
|
nil,
|
|
39053
38936
|
cardType,
|
|
@@ -39061,12 +38944,6 @@ function ____exports.spawnCoin(self, coinSubType, positionOrGridIndex, velocity,
|
|
|
39061
38944
|
if velocity == nil then
|
|
39062
38945
|
velocity = VectorZero
|
|
39063
38946
|
end
|
|
39064
|
-
if spawner == nil then
|
|
39065
|
-
spawner = nil
|
|
39066
|
-
end
|
|
39067
|
-
if seedOrRNG == nil then
|
|
39068
|
-
seedOrRNG = nil
|
|
39069
|
-
end
|
|
39070
38947
|
return spawnPickup(
|
|
39071
38948
|
nil,
|
|
39072
38949
|
PickupVariant.COIN,
|
|
@@ -39081,9 +38958,6 @@ function ____exports.spawnCoinWithSeed(self, coinSubType, positionOrGridIndex, s
|
|
|
39081
38958
|
if velocity == nil then
|
|
39082
38959
|
velocity = VectorZero
|
|
39083
38960
|
end
|
|
39084
|
-
if spawner == nil then
|
|
39085
|
-
spawner = nil
|
|
39086
|
-
end
|
|
39087
38961
|
return ____exports.spawnCoin(
|
|
39088
38962
|
nil,
|
|
39089
38963
|
coinSubType,
|
|
@@ -39097,12 +38971,6 @@ function ____exports.spawnHeart(self, heartSubType, positionOrGridIndex, velocit
|
|
|
39097
38971
|
if velocity == nil then
|
|
39098
38972
|
velocity = VectorZero
|
|
39099
38973
|
end
|
|
39100
|
-
if spawner == nil then
|
|
39101
|
-
spawner = nil
|
|
39102
|
-
end
|
|
39103
|
-
if seedOrRNG == nil then
|
|
39104
|
-
seedOrRNG = nil
|
|
39105
|
-
end
|
|
39106
38974
|
return spawnPickup(
|
|
39107
38975
|
nil,
|
|
39108
38976
|
PickupVariant.HEART,
|
|
@@ -39117,9 +38985,6 @@ function ____exports.spawnHeartWithSeed(self, heartSubType, positionOrGridIndex,
|
|
|
39117
38985
|
if velocity == nil then
|
|
39118
38986
|
velocity = VectorZero
|
|
39119
38987
|
end
|
|
39120
|
-
if spawner == nil then
|
|
39121
|
-
spawner = nil
|
|
39122
|
-
end
|
|
39123
38988
|
return ____exports.spawnHeart(
|
|
39124
38989
|
nil,
|
|
39125
38990
|
heartSubType,
|
|
@@ -39133,12 +38998,6 @@ function ____exports.spawnKey(self, keySubType, positionOrGridIndex, velocity, s
|
|
|
39133
38998
|
if velocity == nil then
|
|
39134
38999
|
velocity = VectorZero
|
|
39135
39000
|
end
|
|
39136
|
-
if spawner == nil then
|
|
39137
|
-
spawner = nil
|
|
39138
|
-
end
|
|
39139
|
-
if seedOrRNG == nil then
|
|
39140
|
-
seedOrRNG = nil
|
|
39141
|
-
end
|
|
39142
39001
|
return spawnPickup(
|
|
39143
39002
|
nil,
|
|
39144
39003
|
PickupVariant.KEY,
|
|
@@ -39153,9 +39012,6 @@ function ____exports.spawnKeyWithSeed(self, keySubType, positionOrGridIndex, see
|
|
|
39153
39012
|
if velocity == nil then
|
|
39154
39013
|
velocity = VectorZero
|
|
39155
39014
|
end
|
|
39156
|
-
if spawner == nil then
|
|
39157
|
-
spawner = nil
|
|
39158
|
-
end
|
|
39159
39015
|
return ____exports.spawnKey(
|
|
39160
39016
|
nil,
|
|
39161
39017
|
keySubType,
|
|
@@ -39169,12 +39025,6 @@ function ____exports.spawnPill(self, pillColor, positionOrGridIndex, velocity, s
|
|
|
39169
39025
|
if velocity == nil then
|
|
39170
39026
|
velocity = VectorZero
|
|
39171
39027
|
end
|
|
39172
|
-
if spawner == nil then
|
|
39173
|
-
spawner = nil
|
|
39174
|
-
end
|
|
39175
|
-
if seedOrRNG == nil then
|
|
39176
|
-
seedOrRNG = nil
|
|
39177
|
-
end
|
|
39178
39028
|
return spawnPickup(
|
|
39179
39029
|
nil,
|
|
39180
39030
|
PickupVariant.PILL,
|
|
@@ -39189,9 +39039,6 @@ function ____exports.spawnPillWithSeed(self, pillColor, positionOrGridIndex, see
|
|
|
39189
39039
|
if velocity == nil then
|
|
39190
39040
|
velocity = VectorZero
|
|
39191
39041
|
end
|
|
39192
|
-
if spawner == nil then
|
|
39193
|
-
spawner = nil
|
|
39194
|
-
end
|
|
39195
39042
|
return ____exports.spawnPill(
|
|
39196
39043
|
nil,
|
|
39197
39044
|
pillColor,
|
|
@@ -39205,12 +39052,6 @@ function ____exports.spawnSack(self, sackSubType, positionOrGridIndex, velocity,
|
|
|
39205
39052
|
if velocity == nil then
|
|
39206
39053
|
velocity = VectorZero
|
|
39207
39054
|
end
|
|
39208
|
-
if spawner == nil then
|
|
39209
|
-
spawner = nil
|
|
39210
|
-
end
|
|
39211
|
-
if seedOrRNG == nil then
|
|
39212
|
-
seedOrRNG = nil
|
|
39213
|
-
end
|
|
39214
39055
|
return spawnPickup(
|
|
39215
39056
|
nil,
|
|
39216
39057
|
PickupVariant.SACK,
|
|
@@ -39225,9 +39066,6 @@ function ____exports.spawnSackWithSeed(self, sackSubType, positionOrGridIndex, s
|
|
|
39225
39066
|
if velocity == nil then
|
|
39226
39067
|
velocity = VectorZero
|
|
39227
39068
|
end
|
|
39228
|
-
if spawner == nil then
|
|
39229
|
-
spawner = nil
|
|
39230
|
-
end
|
|
39231
39069
|
return ____exports.spawnSack(
|
|
39232
39070
|
nil,
|
|
39233
39071
|
sackSubType,
|
|
@@ -39241,12 +39079,6 @@ function ____exports.spawnTrinket(self, trinketType, positionOrGridIndex, veloci
|
|
|
39241
39079
|
if velocity == nil then
|
|
39242
39080
|
velocity = VectorZero
|
|
39243
39081
|
end
|
|
39244
|
-
if spawner == nil then
|
|
39245
|
-
spawner = nil
|
|
39246
|
-
end
|
|
39247
|
-
if seedOrRNG == nil then
|
|
39248
|
-
seedOrRNG = nil
|
|
39249
|
-
end
|
|
39250
39082
|
return spawnPickup(
|
|
39251
39083
|
nil,
|
|
39252
39084
|
PickupVariant.TRINKET,
|
|
@@ -39261,9 +39093,6 @@ function ____exports.spawnTrinketWithSeed(self, trinketType, positionOrGridIndex
|
|
|
39261
39093
|
if velocity == nil then
|
|
39262
39094
|
velocity = VectorZero
|
|
39263
39095
|
end
|
|
39264
|
-
if spawner == nil then
|
|
39265
|
-
spawner = nil
|
|
39266
|
-
end
|
|
39267
39096
|
return ____exports.spawnTrinket(
|
|
39268
39097
|
nil,
|
|
39269
39098
|
trinketType,
|
|
@@ -43650,12 +43479,6 @@ function ____exports.spawnBoss(self, entityType, variant, subType, positionOrGri
|
|
|
43650
43479
|
if velocity == nil then
|
|
43651
43480
|
velocity = VectorZero
|
|
43652
43481
|
end
|
|
43653
|
-
if spawner == nil then
|
|
43654
|
-
spawner = nil
|
|
43655
|
-
end
|
|
43656
|
-
if seedOrRNG == nil then
|
|
43657
|
-
seedOrRNG = nil
|
|
43658
|
-
end
|
|
43659
43482
|
local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
|
|
43660
43483
|
local npc = spawnNPC(
|
|
43661
43484
|
nil,
|
|
@@ -43693,9 +43516,6 @@ function ____exports.spawnBossWithSeed(self, entityType, variant, subType, posit
|
|
|
43693
43516
|
if velocity == nil then
|
|
43694
43517
|
velocity = VectorZero
|
|
43695
43518
|
end
|
|
43696
|
-
if spawner == nil then
|
|
43697
|
-
spawner = nil
|
|
43698
|
-
end
|
|
43699
43519
|
local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
|
|
43700
43520
|
return ____exports.spawnBoss(
|
|
43701
43521
|
nil,
|
|
@@ -52318,19 +52138,6 @@ function ModUpgraded.prototype.initOptionalFeature(self, feature)
|
|
|
52318
52138
|
self:initFeature(featureClass)
|
|
52319
52139
|
return getExportedMethodsFromFeature(nil, featureClass)
|
|
52320
52140
|
end
|
|
52321
|
-
return ____exports
|
|
52322
|
-
end,
|
|
52323
|
-
["lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority"] = function(...)
|
|
52324
|
-
local ____exports = {}
|
|
52325
|
-
____exports.CallbackPriority = {}
|
|
52326
|
-
____exports.CallbackPriority.IMPORTANT = -200
|
|
52327
|
-
____exports.CallbackPriority[____exports.CallbackPriority.IMPORTANT] = "IMPORTANT"
|
|
52328
|
-
____exports.CallbackPriority.EARLY = -100
|
|
52329
|
-
____exports.CallbackPriority[____exports.CallbackPriority.EARLY] = "EARLY"
|
|
52330
|
-
____exports.CallbackPriority.DEFAULT = 0
|
|
52331
|
-
____exports.CallbackPriority[____exports.CallbackPriority.DEFAULT] = "DEFAULT"
|
|
52332
|
-
____exports.CallbackPriority.LATE = 100
|
|
52333
|
-
____exports.CallbackPriority[____exports.CallbackPriority.LATE] = "LATE"
|
|
52334
52141
|
return ____exports
|
|
52335
52142
|
end,
|
|
52336
52143
|
["src.classes.ModFeature"] = function(...)
|
package/dist/lualib_bundle.lua
CHANGED
|
@@ -1574,7 +1574,7 @@ local function __TS__ParseFloat(numberString)
|
|
|
1574
1574
|
if infinityMatch ~= nil then
|
|
1575
1575
|
return __TS__StringAccess(infinityMatch, 0) == "-" and -math.huge or math.huge
|
|
1576
1576
|
end
|
|
1577
|
-
local number = tonumber(__TS__Match(numberString, "^%s*(-?%d+%.?%d*)"))
|
|
1577
|
+
local number = tonumber((__TS__Match(numberString, "^%s*(-?%d+%.?%d*)")))
|
|
1578
1578
|
return number or 0 / 0
|
|
1579
1579
|
end
|
|
1580
1580
|
|
|
@@ -1605,7 +1605,7 @@ do
|
|
|
1605
1605
|
local hexMatch = __TS__Match(numberString, "^%s*-?0[xX]")
|
|
1606
1606
|
if hexMatch ~= nil then
|
|
1607
1607
|
base = 16
|
|
1608
|
-
numberString = __TS__Match(hexMatch, "-") and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
|
|
1608
|
+
numberString = (__TS__Match(hexMatch, "-")) and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
|
|
1609
1609
|
end
|
|
1610
1610
|
end
|
|
1611
1611
|
if base < 2 or base > 36 then
|
|
@@ -1613,10 +1613,7 @@ do
|
|
|
1613
1613
|
end
|
|
1614
1614
|
local allowedDigits = base <= 10 and __TS__StringSubstring(parseIntBasePattern, 0, base) or __TS__StringSubstring(parseIntBasePattern, 0, 10 + 2 * (base - 10))
|
|
1615
1615
|
local pattern = ("^%s*(-?[" .. allowedDigits) .. "]*)"
|
|
1616
|
-
local number = tonumber(
|
|
1617
|
-
__TS__Match(numberString, pattern),
|
|
1618
|
-
base
|
|
1619
|
-
)
|
|
1616
|
+
local number = tonumber((__TS__Match(numberString, pattern)), base)
|
|
1620
1617
|
if number == nil then
|
|
1621
1618
|
return 0 / 0
|
|
1622
1619
|
end
|
|
@@ -2070,7 +2067,7 @@ local function __TS__SourceMapTraceBack(fileName, sourceMap)
|
|
|
2070
2067
|
local function stringReplacer(____, file, line)
|
|
2071
2068
|
local fileSourceMap = _G.__TS__sourcemap[file]
|
|
2072
2069
|
if fileSourceMap ~= nil and fileSourceMap[line] ~= nil then
|
|
2073
|
-
local chunkName = __TS__Match(file, "%[string \"([^\"]+)\"%]")
|
|
2070
|
+
local chunkName = (__TS__Match(file, "%[string \"([^\"]+)\"%]"))
|
|
2074
2071
|
local sourceName = string.gsub(chunkName, ".lua$", ".ts")
|
|
2075
2072
|
local data = fileSourceMap[line]
|
|
2076
2073
|
if type(data) == "number" then
|
|
@@ -72,8 +72,6 @@
|
|
|
72
72
|
* However, if a factory function was provided during instantiation, and the factory function has
|
|
73
73
|
* one or more arguments, then you must call this method instead (and provide the corresponding
|
|
74
74
|
* arguments).
|
|
75
|
-
* - `getWithoutDefault` - Calls the original `Map.get` function (without setting the default
|
|
76
|
-
* value).
|
|
77
75
|
* - `getDefaultValue` - Returns the default value to be used for a new key. (If a factory function
|
|
78
76
|
* was provided during instantiation, this will execute the factory function.)
|
|
79
77
|
* - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultMap.d.ts","sourceRoot":"","sources":["../../../src/classes/DefaultMap.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"DefaultMap.d.ts","sourceRoot":"","sources":["../../../src/classes/DefaultMap.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,qBAAa,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,SAAS,OAAO,EAAE,GAAG,EAAE,CAAE,SAAQ,GAAG,CAC1E,GAAG,EACH,KAAK,CACN;IACC,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,mBAAmB,CAA2C;IAEtE;;;OAGG;gBAED,6BAA6B,EAAE,KAAK,GAAG,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC,EACnE,gBAAgB,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAqB3C;;;OAGG;IACI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK;IAWvD;;;OAGG;IACI,eAAe,CAAC,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK;IAY5C;;;OAGG;IACI,iBAAiB,IAAI,KAAK,GAAG,eAAe,CAAC,KAAK,EAAE,IAAI,CAAC;CAWjE;AAGD;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,CAAC"}
|
|
@@ -81,8 +81,6 @@ local isPrimitive = ____types.isPrimitive
|
|
|
81
81
|
-- However, if a factory function was provided during instantiation, and the factory function has
|
|
82
82
|
-- one or more arguments, then you must call this method instead (and provide the corresponding
|
|
83
83
|
-- arguments).
|
|
84
|
-
-- - `getWithoutDefault` - Calls the original `Map.get` function (without setting the default
|
|
85
|
-
-- value).
|
|
86
84
|
-- - `getDefaultValue` - Returns the default value to be used for a new key. (If a factory function
|
|
87
85
|
-- was provided during instantiation, this will execute the factory function.)
|
|
88
86
|
-- - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
@@ -10,7 +10,8 @@ export declare class DeployJSONRoom extends Feature {
|
|
|
10
10
|
/**
|
|
11
11
|
* Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
12
12
|
* Specifically, this will clear the current room of all entities and grid entities, and then
|
|
13
|
-
* spawn all of the entries and grid entities in the provided JSON room.
|
|
13
|
+
* spawn all of the entries and grid entities in the provided JSON room. For this reason, you must
|
|
14
|
+
* be in the actual room in order to use this function.
|
|
14
15
|
*
|
|
15
16
|
* A JSON room is simply an XML file converted to JSON. You can create JSON rooms by using the
|
|
16
17
|
* Basement Renovator room editor to create an XML file, and then convert it to JSON using the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AA8BA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,gBAAgB,CAAmB;IAkB3C,OAAO,CAAC,gBAAgB;IAgGxB,OAAO,CAAC,4BAA4B;IAyCpC
|
|
1
|
+
{"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AA8BA,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,gBAAgB,CAAmB;IAkB3C,OAAO,CAAC,gBAAgB;IAgGxB,OAAO,CAAC,4BAA4B;IAyCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IAEI,cAAc,CACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,EACvC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,OAAO,UAAQ,GACd,IAAI;CAwBR"}
|
|
@@ -193,12 +193,6 @@ function ____exports.spawnBoss(self, entityType, variant, subType, positionOrGri
|
|
|
193
193
|
if velocity == nil then
|
|
194
194
|
velocity = VectorZero
|
|
195
195
|
end
|
|
196
|
-
if spawner == nil then
|
|
197
|
-
spawner = nil
|
|
198
|
-
end
|
|
199
|
-
if seedOrRNG == nil then
|
|
200
|
-
seedOrRNG = nil
|
|
201
|
-
end
|
|
202
196
|
local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
|
|
203
197
|
local npc = spawnNPC(
|
|
204
198
|
nil,
|
|
@@ -239,9 +233,6 @@ function ____exports.spawnBossWithSeed(self, entityType, variant, subType, posit
|
|
|
239
233
|
if velocity == nil then
|
|
240
234
|
velocity = VectorZero
|
|
241
235
|
end
|
|
242
|
-
if spawner == nil then
|
|
243
|
-
spawner = nil
|
|
244
|
-
end
|
|
245
236
|
local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
|
|
246
237
|
return ____exports.spawnBoss(
|
|
247
238
|
nil,
|
|
@@ -417,9 +417,6 @@ function ____exports.removeAllMatchingEntities(self, entityType, entityVariant,
|
|
|
417
417
|
if entitySubType == nil then
|
|
418
418
|
entitySubType = -1
|
|
419
419
|
end
|
|
420
|
-
if cap == nil then
|
|
421
|
-
cap = nil
|
|
422
|
-
end
|
|
423
420
|
local entities = ____exports.getEntities(nil, entityType, entityVariant, entitySubType)
|
|
424
421
|
return ____exports.removeEntities(nil, entities, cap)
|
|
425
422
|
end
|
|
@@ -489,12 +486,6 @@ function ____exports.spawn(self, entityType, variant, subType, positionOrGridInd
|
|
|
489
486
|
if velocity == nil then
|
|
490
487
|
velocity = VectorZero
|
|
491
488
|
end
|
|
492
|
-
if spawner == nil then
|
|
493
|
-
spawner = nil
|
|
494
|
-
end
|
|
495
|
-
if seedOrRNG == nil then
|
|
496
|
-
seedOrRNG = nil
|
|
497
|
-
end
|
|
498
489
|
local room = game:GetRoom()
|
|
499
490
|
if positionOrGridIndex == nil then
|
|
500
491
|
local entityID = ____exports.getEntityIDFromConstituents(nil, entityType, variant, subType)
|
|
@@ -535,12 +526,6 @@ function ____exports.spawnEntityID(self, entityID, positionOrGridIndex, velocity
|
|
|
535
526
|
if velocity == nil then
|
|
536
527
|
velocity = VectorZero
|
|
537
528
|
end
|
|
538
|
-
if spawner == nil then
|
|
539
|
-
spawner = nil
|
|
540
|
-
end
|
|
541
|
-
if seedOrRNG == nil then
|
|
542
|
-
seedOrRNG = nil
|
|
543
|
-
end
|
|
544
529
|
local entityType, variant, subType = table.unpack(____exports.getConstituentsFromEntityID(nil, entityID))
|
|
545
530
|
return ____exports.spawn(
|
|
546
531
|
nil,
|
|
@@ -559,9 +544,6 @@ function ____exports.spawnWithSeed(self, entityType, variant, subType, positionO
|
|
|
559
544
|
if velocity == nil then
|
|
560
545
|
velocity = VectorZero
|
|
561
546
|
end
|
|
562
|
-
if spawner == nil then
|
|
563
|
-
spawner = nil
|
|
564
|
-
end
|
|
565
547
|
return ____exports.spawn(
|
|
566
548
|
nil,
|
|
567
549
|
entityType,
|
|
@@ -520,12 +520,6 @@ function ____exports.spawnBomb(self, bombVariant, subType, positionOrGridIndex,
|
|
|
520
520
|
if velocity == nil then
|
|
521
521
|
velocity = VectorZero
|
|
522
522
|
end
|
|
523
|
-
if spawner == nil then
|
|
524
|
-
spawner = nil
|
|
525
|
-
end
|
|
526
|
-
if seedOrRNG == nil then
|
|
527
|
-
seedOrRNG = nil
|
|
528
|
-
end
|
|
529
523
|
local entity = spawn(
|
|
530
524
|
nil,
|
|
531
525
|
EntityType.BOMB,
|
|
@@ -547,9 +541,6 @@ function ____exports.spawnBombWithSeed(self, bombVariant, subType, positionOrGri
|
|
|
547
541
|
if velocity == nil then
|
|
548
542
|
velocity = VectorZero
|
|
549
543
|
end
|
|
550
|
-
if spawner == nil then
|
|
551
|
-
spawner = nil
|
|
552
|
-
end
|
|
553
544
|
return ____exports.spawnBomb(
|
|
554
545
|
nil,
|
|
555
546
|
bombVariant,
|
|
@@ -565,12 +556,6 @@ function ____exports.spawnEffect(self, effectVariant, subType, positionOrGridInd
|
|
|
565
556
|
if velocity == nil then
|
|
566
557
|
velocity = VectorZero
|
|
567
558
|
end
|
|
568
|
-
if spawner == nil then
|
|
569
|
-
spawner = nil
|
|
570
|
-
end
|
|
571
|
-
if seedOrRNG == nil then
|
|
572
|
-
seedOrRNG = nil
|
|
573
|
-
end
|
|
574
559
|
local entity = spawn(
|
|
575
560
|
nil,
|
|
576
561
|
EntityType.EFFECT,
|
|
@@ -592,9 +577,6 @@ function ____exports.spawnEffectWithSeed(self, effectVariant, subType, positionO
|
|
|
592
577
|
if velocity == nil then
|
|
593
578
|
velocity = VectorZero
|
|
594
579
|
end
|
|
595
|
-
if spawner == nil then
|
|
596
|
-
spawner = nil
|
|
597
|
-
end
|
|
598
580
|
return ____exports.spawnEffect(
|
|
599
581
|
nil,
|
|
600
582
|
effectVariant,
|
|
@@ -613,12 +595,6 @@ function ____exports.spawnFamiliar(self, familiarVariant, subType, positionOrGri
|
|
|
613
595
|
if velocity == nil then
|
|
614
596
|
velocity = VectorZero
|
|
615
597
|
end
|
|
616
|
-
if spawner == nil then
|
|
617
|
-
spawner = nil
|
|
618
|
-
end
|
|
619
|
-
if seedOrRNG == nil then
|
|
620
|
-
seedOrRNG = nil
|
|
621
|
-
end
|
|
622
598
|
local entity = spawn(
|
|
623
599
|
nil,
|
|
624
600
|
EntityType.FAMILIAR,
|
|
@@ -640,9 +616,6 @@ function ____exports.spawnFamiliarWithSeed(self, familiarVariant, subType, posit
|
|
|
640
616
|
if velocity == nil then
|
|
641
617
|
velocity = VectorZero
|
|
642
618
|
end
|
|
643
|
-
if spawner == nil then
|
|
644
|
-
spawner = nil
|
|
645
|
-
end
|
|
646
619
|
return ____exports.spawnFamiliar(
|
|
647
620
|
nil,
|
|
648
621
|
familiarVariant,
|
|
@@ -658,12 +631,6 @@ function ____exports.spawnKnife(self, knifeVariant, subType, positionOrGridIndex
|
|
|
658
631
|
if velocity == nil then
|
|
659
632
|
velocity = VectorZero
|
|
660
633
|
end
|
|
661
|
-
if spawner == nil then
|
|
662
|
-
spawner = nil
|
|
663
|
-
end
|
|
664
|
-
if seedOrRNG == nil then
|
|
665
|
-
seedOrRNG = nil
|
|
666
|
-
end
|
|
667
634
|
local entity = spawn(
|
|
668
635
|
nil,
|
|
669
636
|
EntityType.KNIFE,
|
|
@@ -685,9 +652,6 @@ function ____exports.spawnKnifeWithSeed(self, knifeVariant, subType, positionOrG
|
|
|
685
652
|
if velocity == nil then
|
|
686
653
|
velocity = VectorZero
|
|
687
654
|
end
|
|
688
|
-
if spawner == nil then
|
|
689
|
-
spawner = nil
|
|
690
|
-
end
|
|
691
655
|
return ____exports.spawnKnife(
|
|
692
656
|
nil,
|
|
693
657
|
knifeVariant,
|
|
@@ -703,12 +667,6 @@ function ____exports.spawnLaser(self, laserVariant, subType, positionOrGridIndex
|
|
|
703
667
|
if velocity == nil then
|
|
704
668
|
velocity = VectorZero
|
|
705
669
|
end
|
|
706
|
-
if spawner == nil then
|
|
707
|
-
spawner = nil
|
|
708
|
-
end
|
|
709
|
-
if seedOrRNG == nil then
|
|
710
|
-
seedOrRNG = nil
|
|
711
|
-
end
|
|
712
670
|
local entity = spawn(
|
|
713
671
|
nil,
|
|
714
672
|
EntityType.LASER,
|
|
@@ -730,9 +688,6 @@ function ____exports.spawnLaserWithSeed(self, laserVariant, subType, positionOrG
|
|
|
730
688
|
if velocity == nil then
|
|
731
689
|
velocity = VectorZero
|
|
732
690
|
end
|
|
733
|
-
if spawner == nil then
|
|
734
|
-
spawner = nil
|
|
735
|
-
end
|
|
736
691
|
return ____exports.spawnLaser(
|
|
737
692
|
nil,
|
|
738
693
|
laserVariant,
|
|
@@ -751,12 +706,6 @@ function ____exports.spawnNPC(self, entityType, variant, subType, positionOrGrid
|
|
|
751
706
|
if velocity == nil then
|
|
752
707
|
velocity = VectorZero
|
|
753
708
|
end
|
|
754
|
-
if spawner == nil then
|
|
755
|
-
spawner = nil
|
|
756
|
-
end
|
|
757
|
-
if seedOrRNG == nil then
|
|
758
|
-
seedOrRNG = nil
|
|
759
|
-
end
|
|
760
709
|
local entity = spawn(
|
|
761
710
|
nil,
|
|
762
711
|
entityType,
|
|
@@ -781,9 +730,6 @@ function ____exports.spawnNPCWithSeed(self, entityType, variant, subType, positi
|
|
|
781
730
|
if velocity == nil then
|
|
782
731
|
velocity = VectorZero
|
|
783
732
|
end
|
|
784
|
-
if spawner == nil then
|
|
785
|
-
spawner = nil
|
|
786
|
-
end
|
|
787
733
|
return ____exports.spawnNPC(
|
|
788
734
|
nil,
|
|
789
735
|
entityType,
|
|
@@ -800,12 +746,6 @@ function ____exports.spawnPickup(self, pickupVariant, subType, positionOrGridInd
|
|
|
800
746
|
if velocity == nil then
|
|
801
747
|
velocity = VectorZero
|
|
802
748
|
end
|
|
803
|
-
if spawner == nil then
|
|
804
|
-
spawner = nil
|
|
805
|
-
end
|
|
806
|
-
if seedOrRNG == nil then
|
|
807
|
-
seedOrRNG = nil
|
|
808
|
-
end
|
|
809
749
|
local entity = spawn(
|
|
810
750
|
nil,
|
|
811
751
|
EntityType.PICKUP,
|
|
@@ -827,9 +767,6 @@ function ____exports.spawnPickupWithSeed(self, pickupVariant, subType, positionO
|
|
|
827
767
|
if velocity == nil then
|
|
828
768
|
velocity = VectorZero
|
|
829
769
|
end
|
|
830
|
-
if spawner == nil then
|
|
831
|
-
spawner = nil
|
|
832
|
-
end
|
|
833
770
|
return ____exports.spawnPickup(
|
|
834
771
|
nil,
|
|
835
772
|
pickupVariant,
|
|
@@ -845,12 +782,6 @@ function ____exports.spawnProjectile(self, projectileVariant, subType, positionO
|
|
|
845
782
|
if velocity == nil then
|
|
846
783
|
velocity = VectorZero
|
|
847
784
|
end
|
|
848
|
-
if spawner == nil then
|
|
849
|
-
spawner = nil
|
|
850
|
-
end
|
|
851
|
-
if seedOrRNG == nil then
|
|
852
|
-
seedOrRNG = nil
|
|
853
|
-
end
|
|
854
785
|
local entity = spawn(
|
|
855
786
|
nil,
|
|
856
787
|
EntityType.PROJECTILE,
|
|
@@ -872,9 +803,6 @@ function ____exports.spawnProjectileWithSeed(self, projectileVariant, subType, p
|
|
|
872
803
|
if velocity == nil then
|
|
873
804
|
velocity = VectorZero
|
|
874
805
|
end
|
|
875
|
-
if spawner == nil then
|
|
876
|
-
spawner = nil
|
|
877
|
-
end
|
|
878
806
|
return ____exports.spawnProjectile(
|
|
879
807
|
nil,
|
|
880
808
|
projectileVariant,
|
|
@@ -890,12 +818,6 @@ function ____exports.spawnSlot(self, slotVariant, subType, positionOrGridIndex,
|
|
|
890
818
|
if velocity == nil then
|
|
891
819
|
velocity = VectorZero
|
|
892
820
|
end
|
|
893
|
-
if spawner == nil then
|
|
894
|
-
spawner = nil
|
|
895
|
-
end
|
|
896
|
-
if seedOrRNG == nil then
|
|
897
|
-
seedOrRNG = nil
|
|
898
|
-
end
|
|
899
821
|
return spawn(
|
|
900
822
|
nil,
|
|
901
823
|
EntityType.SLOT,
|
|
@@ -912,9 +834,6 @@ function ____exports.spawnSlotWithSeed(self, slotVariant, subType, positionOrGri
|
|
|
912
834
|
if velocity == nil then
|
|
913
835
|
velocity = VectorZero
|
|
914
836
|
end
|
|
915
|
-
if spawner == nil then
|
|
916
|
-
spawner = nil
|
|
917
|
-
end
|
|
918
837
|
return ____exports.spawnSlot(
|
|
919
838
|
nil,
|
|
920
839
|
slotVariant,
|
|
@@ -930,12 +849,6 @@ function ____exports.spawnTear(self, tearVariant, subType, positionOrGridIndex,
|
|
|
930
849
|
if velocity == nil then
|
|
931
850
|
velocity = VectorZero
|
|
932
851
|
end
|
|
933
|
-
if spawner == nil then
|
|
934
|
-
spawner = nil
|
|
935
|
-
end
|
|
936
|
-
if seedOrRNG == nil then
|
|
937
|
-
seedOrRNG = nil
|
|
938
|
-
end
|
|
939
852
|
local entity = spawn(
|
|
940
853
|
nil,
|
|
941
854
|
EntityType.TEAR,
|
|
@@ -957,9 +870,6 @@ function ____exports.spawnTearWithSeed(self, tearVariant, subType, positionOrGri
|
|
|
957
870
|
if velocity == nil then
|
|
958
871
|
velocity = VectorZero
|
|
959
872
|
end
|
|
960
|
-
if spawner == nil then
|
|
961
|
-
spawner = nil
|
|
962
|
-
end
|
|
963
873
|
return ____exports.spawnTear(
|
|
964
874
|
nil,
|
|
965
875
|
tearVariant,
|
|
@@ -213,12 +213,6 @@ function ____exports.spawnBattery(self, batterySubType, positionOrGridIndex, vel
|
|
|
213
213
|
if velocity == nil then
|
|
214
214
|
velocity = VectorZero
|
|
215
215
|
end
|
|
216
|
-
if spawner == nil then
|
|
217
|
-
spawner = nil
|
|
218
|
-
end
|
|
219
|
-
if seedOrRNG == nil then
|
|
220
|
-
seedOrRNG = nil
|
|
221
|
-
end
|
|
222
216
|
return spawnPickup(
|
|
223
217
|
nil,
|
|
224
218
|
PickupVariant.LIL_BATTERY,
|
|
@@ -235,9 +229,6 @@ function ____exports.spawnBatteryWithSeed(self, batterySubType, positionOrGridIn
|
|
|
235
229
|
if velocity == nil then
|
|
236
230
|
velocity = VectorZero
|
|
237
231
|
end
|
|
238
|
-
if spawner == nil then
|
|
239
|
-
spawner = nil
|
|
240
|
-
end
|
|
241
232
|
return ____exports.spawnBattery(
|
|
242
233
|
nil,
|
|
243
234
|
batterySubType,
|
|
@@ -252,12 +243,6 @@ function ____exports.spawnBombPickup(self, bombSubType, positionOrGridIndex, vel
|
|
|
252
243
|
if velocity == nil then
|
|
253
244
|
velocity = VectorZero
|
|
254
245
|
end
|
|
255
|
-
if spawner == nil then
|
|
256
|
-
spawner = nil
|
|
257
|
-
end
|
|
258
|
-
if seedOrRNG == nil then
|
|
259
|
-
seedOrRNG = nil
|
|
260
|
-
end
|
|
261
246
|
return spawnPickup(
|
|
262
247
|
nil,
|
|
263
248
|
PickupVariant.BOMB,
|
|
@@ -274,9 +259,6 @@ function ____exports.spawnBombPickupWithSeed(self, bombSubType, positionOrGridIn
|
|
|
274
259
|
if velocity == nil then
|
|
275
260
|
velocity = VectorZero
|
|
276
261
|
end
|
|
277
|
-
if spawner == nil then
|
|
278
|
-
spawner = nil
|
|
279
|
-
end
|
|
280
262
|
return ____exports.spawnBombPickup(
|
|
281
263
|
nil,
|
|
282
264
|
bombSubType,
|
|
@@ -291,12 +273,6 @@ function ____exports.spawnCard(self, cardType, positionOrGridIndex, velocity, sp
|
|
|
291
273
|
if velocity == nil then
|
|
292
274
|
velocity = VectorZero
|
|
293
275
|
end
|
|
294
|
-
if spawner == nil then
|
|
295
|
-
spawner = nil
|
|
296
|
-
end
|
|
297
|
-
if seedOrRNG == nil then
|
|
298
|
-
seedOrRNG = nil
|
|
299
|
-
end
|
|
300
276
|
return spawnPickup(
|
|
301
277
|
nil,
|
|
302
278
|
PickupVariant.TAROT_CARD,
|
|
@@ -313,9 +289,6 @@ function ____exports.spawnCardWithSeed(self, cardType, positionOrGridIndex, seed
|
|
|
313
289
|
if velocity == nil then
|
|
314
290
|
velocity = VectorZero
|
|
315
291
|
end
|
|
316
|
-
if spawner == nil then
|
|
317
|
-
spawner = nil
|
|
318
|
-
end
|
|
319
292
|
return ____exports.spawnCard(
|
|
320
293
|
nil,
|
|
321
294
|
cardType,
|
|
@@ -330,12 +303,6 @@ function ____exports.spawnCoin(self, coinSubType, positionOrGridIndex, velocity,
|
|
|
330
303
|
if velocity == nil then
|
|
331
304
|
velocity = VectorZero
|
|
332
305
|
end
|
|
333
|
-
if spawner == nil then
|
|
334
|
-
spawner = nil
|
|
335
|
-
end
|
|
336
|
-
if seedOrRNG == nil then
|
|
337
|
-
seedOrRNG = nil
|
|
338
|
-
end
|
|
339
306
|
return spawnPickup(
|
|
340
307
|
nil,
|
|
341
308
|
PickupVariant.COIN,
|
|
@@ -352,9 +319,6 @@ function ____exports.spawnCoinWithSeed(self, coinSubType, positionOrGridIndex, s
|
|
|
352
319
|
if velocity == nil then
|
|
353
320
|
velocity = VectorZero
|
|
354
321
|
end
|
|
355
|
-
if spawner == nil then
|
|
356
|
-
spawner = nil
|
|
357
|
-
end
|
|
358
322
|
return ____exports.spawnCoin(
|
|
359
323
|
nil,
|
|
360
324
|
coinSubType,
|
|
@@ -369,12 +333,6 @@ function ____exports.spawnHeart(self, heartSubType, positionOrGridIndex, velocit
|
|
|
369
333
|
if velocity == nil then
|
|
370
334
|
velocity = VectorZero
|
|
371
335
|
end
|
|
372
|
-
if spawner == nil then
|
|
373
|
-
spawner = nil
|
|
374
|
-
end
|
|
375
|
-
if seedOrRNG == nil then
|
|
376
|
-
seedOrRNG = nil
|
|
377
|
-
end
|
|
378
336
|
return spawnPickup(
|
|
379
337
|
nil,
|
|
380
338
|
PickupVariant.HEART,
|
|
@@ -389,9 +347,6 @@ function ____exports.spawnHeartWithSeed(self, heartSubType, positionOrGridIndex,
|
|
|
389
347
|
if velocity == nil then
|
|
390
348
|
velocity = VectorZero
|
|
391
349
|
end
|
|
392
|
-
if spawner == nil then
|
|
393
|
-
spawner = nil
|
|
394
|
-
end
|
|
395
350
|
return ____exports.spawnHeart(
|
|
396
351
|
nil,
|
|
397
352
|
heartSubType,
|
|
@@ -406,12 +361,6 @@ function ____exports.spawnKey(self, keySubType, positionOrGridIndex, velocity, s
|
|
|
406
361
|
if velocity == nil then
|
|
407
362
|
velocity = VectorZero
|
|
408
363
|
end
|
|
409
|
-
if spawner == nil then
|
|
410
|
-
spawner = nil
|
|
411
|
-
end
|
|
412
|
-
if seedOrRNG == nil then
|
|
413
|
-
seedOrRNG = nil
|
|
414
|
-
end
|
|
415
364
|
return spawnPickup(
|
|
416
365
|
nil,
|
|
417
366
|
PickupVariant.KEY,
|
|
@@ -428,9 +377,6 @@ function ____exports.spawnKeyWithSeed(self, keySubType, positionOrGridIndex, see
|
|
|
428
377
|
if velocity == nil then
|
|
429
378
|
velocity = VectorZero
|
|
430
379
|
end
|
|
431
|
-
if spawner == nil then
|
|
432
|
-
spawner = nil
|
|
433
|
-
end
|
|
434
380
|
return ____exports.spawnKey(
|
|
435
381
|
nil,
|
|
436
382
|
keySubType,
|
|
@@ -445,12 +391,6 @@ function ____exports.spawnPill(self, pillColor, positionOrGridIndex, velocity, s
|
|
|
445
391
|
if velocity == nil then
|
|
446
392
|
velocity = VectorZero
|
|
447
393
|
end
|
|
448
|
-
if spawner == nil then
|
|
449
|
-
spawner = nil
|
|
450
|
-
end
|
|
451
|
-
if seedOrRNG == nil then
|
|
452
|
-
seedOrRNG = nil
|
|
453
|
-
end
|
|
454
394
|
return spawnPickup(
|
|
455
395
|
nil,
|
|
456
396
|
PickupVariant.PILL,
|
|
@@ -467,9 +407,6 @@ function ____exports.spawnPillWithSeed(self, pillColor, positionOrGridIndex, see
|
|
|
467
407
|
if velocity == nil then
|
|
468
408
|
velocity = VectorZero
|
|
469
409
|
end
|
|
470
|
-
if spawner == nil then
|
|
471
|
-
spawner = nil
|
|
472
|
-
end
|
|
473
410
|
return ____exports.spawnPill(
|
|
474
411
|
nil,
|
|
475
412
|
pillColor,
|
|
@@ -484,12 +421,6 @@ function ____exports.spawnSack(self, sackSubType, positionOrGridIndex, velocity,
|
|
|
484
421
|
if velocity == nil then
|
|
485
422
|
velocity = VectorZero
|
|
486
423
|
end
|
|
487
|
-
if spawner == nil then
|
|
488
|
-
spawner = nil
|
|
489
|
-
end
|
|
490
|
-
if seedOrRNG == nil then
|
|
491
|
-
seedOrRNG = nil
|
|
492
|
-
end
|
|
493
424
|
return spawnPickup(
|
|
494
425
|
nil,
|
|
495
426
|
PickupVariant.SACK,
|
|
@@ -506,9 +437,6 @@ function ____exports.spawnSackWithSeed(self, sackSubType, positionOrGridIndex, s
|
|
|
506
437
|
if velocity == nil then
|
|
507
438
|
velocity = VectorZero
|
|
508
439
|
end
|
|
509
|
-
if spawner == nil then
|
|
510
|
-
spawner = nil
|
|
511
|
-
end
|
|
512
440
|
return ____exports.spawnSack(
|
|
513
441
|
nil,
|
|
514
442
|
sackSubType,
|
|
@@ -523,12 +451,6 @@ function ____exports.spawnTrinket(self, trinketType, positionOrGridIndex, veloci
|
|
|
523
451
|
if velocity == nil then
|
|
524
452
|
velocity = VectorZero
|
|
525
453
|
end
|
|
526
|
-
if spawner == nil then
|
|
527
|
-
spawner = nil
|
|
528
|
-
end
|
|
529
|
-
if seedOrRNG == nil then
|
|
530
|
-
seedOrRNG = nil
|
|
531
|
-
end
|
|
532
454
|
return spawnPickup(
|
|
533
455
|
nil,
|
|
534
456
|
PickupVariant.TRINKET,
|
|
@@ -545,9 +467,6 @@ function ____exports.spawnTrinketWithSeed(self, trinketType, positionOrGridIndex
|
|
|
545
467
|
if velocity == nil then
|
|
546
468
|
velocity = VectorZero
|
|
547
469
|
end
|
|
548
|
-
if spawner == nil then
|
|
549
|
-
spawner = nil
|
|
550
|
-
end
|
|
551
470
|
return ____exports.spawnTrinket(
|
|
552
471
|
nil,
|
|
553
472
|
trinketType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "30.11.
|
|
3
|
+
"version": "30.11.3",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "dist/src/index",
|
|
26
26
|
"types": "dist/index.rollup.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^13.0.
|
|
28
|
+
"isaac-typescript-definitions": "^13.0.13"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -74,8 +74,6 @@ import { isFunction, isPrimitive } from "../functions/types";
|
|
|
74
74
|
* However, if a factory function was provided during instantiation, and the factory function has
|
|
75
75
|
* one or more arguments, then you must call this method instead (and provide the corresponding
|
|
76
76
|
* arguments).
|
|
77
|
-
* - `getWithoutDefault` - Calls the original `Map.get` function (without setting the default
|
|
78
|
-
* value).
|
|
79
77
|
* - `getDefaultValue` - Returns the default value to be used for a new key. (If a factory function
|
|
80
78
|
* was provided during instantiation, this will execute the factory function.)
|
|
81
79
|
* - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
@@ -198,7 +198,8 @@ export class DeployJSONRoom extends Feature {
|
|
|
198
198
|
/**
|
|
199
199
|
* Helper function to deconstruct a vanilla room and set up a custom room in its place.
|
|
200
200
|
* Specifically, this will clear the current room of all entities and grid entities, and then
|
|
201
|
-
* spawn all of the entries and grid entities in the provided JSON room.
|
|
201
|
+
* spawn all of the entries and grid entities in the provided JSON room. For this reason, you must
|
|
202
|
+
* be in the actual room in order to use this function.
|
|
202
203
|
*
|
|
203
204
|
* A JSON room is simply an XML file converted to JSON. You can create JSON rooms by using the
|
|
204
205
|
* Basement Renovator room editor to create an XML file, and then convert it to JSON using the
|