isaacscript-common 1.0.490 → 1.0.491
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/constants.d.ts +1 -0
- package/dist/constants.lua +1 -0
- package/dist/functions/deepCopy.lua +3 -3
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125;
|
|
|
8
8
|
export declare const BOMB_EXPLODE_FRAME = 45;
|
|
9
9
|
export declare const CHARACTERS_WITH_AN_ACTIVE_ITEM: Set<PlayerType>;
|
|
10
10
|
export declare const CHARACTERS_WITH_NO_RED_HEARTS: Set<PlayerType>;
|
|
11
|
+
export declare const CHARACTERS_WITH_NO_SOUL_HEARTS: Set<PlayerType>;
|
|
11
12
|
export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.POOL_TREASURE;
|
|
12
13
|
/** This is also the distance that a player spawns from the door that they enter a room from. */
|
|
13
14
|
export declare const DISTANCE_OF_GRID_TILE = 40;
|
package/dist/constants.lua
CHANGED
|
@@ -24,6 +24,7 @@ ____exports.CHARACTERS_WITH_NO_RED_HEARTS = __TS__New(Set, {
|
|
|
24
24
|
PlayerType.PLAYER_THEFORGOTTEN_B,
|
|
25
25
|
PlayerType.PLAYER_BETHANY_B
|
|
26
26
|
})
|
|
27
|
+
____exports.CHARACTERS_WITH_NO_SOUL_HEARTS = __TS__New(Set, {PlayerType.PLAYER_BETHANY})
|
|
27
28
|
____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.POOL_TREASURE
|
|
28
29
|
____exports.DISTANCE_OF_GRID_TILE = 40
|
|
29
30
|
____exports.DOOR_HITBOX_DISTANCE = 11
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local isTSTLClass,
|
|
4
|
+
local isTSTLClass, copyClass, getNewClassFromMetatable, deepCopyValue, copyVector, checkMetatable, validateValue, TSTL_CLASS_KEYS
|
|
5
5
|
local ____constantsInternal = require("constantsInternal")
|
|
6
6
|
local TSTL_CLASS_BRAND = ____constantsInternal.TSTL_CLASS_BRAND
|
|
7
7
|
local TSTL_MAP_BRAND = ____constantsInternal.TSTL_MAP_BRAND
|
|
@@ -51,7 +51,7 @@ function ____exports.deepCopy(self, oldObject, serializationType, traversalDescr
|
|
|
51
51
|
elseif serializationType == ____exports.SerializationType.NONE and __TS__InstanceOf(oldObject, Set) or serializationType == ____exports.SerializationType.DESERIALIZE and hasTSTLSetBrand then
|
|
52
52
|
newObject = __TS__New(Set)
|
|
53
53
|
elseif serializationType == ____exports.SerializationType.NONE and isClass or serializationType == ____exports.SerializationType.DESERIALIZE and hasTSTLClassBrand then
|
|
54
|
-
newObject =
|
|
54
|
+
newObject = copyClass(nil, oldObject)
|
|
55
55
|
else
|
|
56
56
|
newObject = {}
|
|
57
57
|
end
|
|
@@ -144,7 +144,7 @@ function isTSTLClass(self, object)
|
|
|
144
144
|
end
|
|
145
145
|
return numKeys == TSTL_CLASS_KEYS.size
|
|
146
146
|
end
|
|
147
|
-
function
|
|
147
|
+
function copyClass(self, oldClass)
|
|
148
148
|
local metatable = getmetatable(oldClass)
|
|
149
149
|
local newClass = getNewClassFromMetatable(nil, metatable)
|
|
150
150
|
for key, value in pairs(oldClass) do
|