isaacscript-common 1.0.573 → 1.0.577
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 -6
- package/dist/callbacks/postBombInitLate.lua +1 -5
- package/dist/callbacks/postCursedTeleport.lua +8 -10
- package/dist/callbacks/postEffectInitLate.lua +1 -5
- package/dist/callbacks/postEsauJr.lua +2 -4
- package/dist/callbacks/postFamiliarInitLate.lua +1 -5
- package/dist/callbacks/postFlip.lua +2 -4
- package/dist/callbacks/postGridEntity.lua +8 -20
- package/dist/callbacks/postKnifeInitLate.lua +1 -5
- package/dist/callbacks/postLaserInitLate.lua +1 -5
- package/dist/callbacks/postNPCInitLate.lua +1 -5
- package/dist/callbacks/postPickupCollect.lua +1 -5
- package/dist/callbacks/postPickupInitLate.lua +1 -5
- package/dist/callbacks/postPlayerChangeHealth.lua +19 -23
- package/dist/callbacks/postPlayerChangeType.lua +1 -5
- package/dist/callbacks/postPlayerFatalDamage.lua +5 -9
- package/dist/callbacks/postPlayerInitLate.lua +1 -5
- package/dist/callbacks/postPlayerReordered.lua +8 -2
- package/dist/callbacks/postProjectileInitLate.lua +1 -5
- package/dist/callbacks/postPurchase.lua +19 -19
- package/dist/callbacks/postSacrifice.lua +3 -3
- package/dist/callbacks/postSlotInitUpdate.lua +3 -11
- package/dist/callbacks/postSlotRenderBroken.lua +2 -8
- package/dist/callbacks/postTearInitLate.lua +1 -5
- package/dist/callbacks/postTearInitVeryLate.lua +1 -5
- package/dist/callbacks/postTransformation.lua +1 -5
- package/dist/callbacks/postTrinketBreak.lua +5 -9
- package/dist/callbacks/preNewLevel.lua +1 -1
- package/dist/callbacks/reorderedCallbacks.lua +4 -4
- package/dist/callbacks/subscriptions/PreNewLevel.lua +1 -2
- package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +1 -2
- package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -5
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postEsauJr.lua +1 -2
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +1 -2
- package/dist/callbacks/subscriptions/postFirstFlip.lua +1 -2
- package/dist/callbacks/subscriptions/postFlip.lua +1 -2
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -5
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -5
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -5
- package/dist/callbacks/subscriptions/postItemPickup.lua +5 -8
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +1 -2
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +1 -2
- package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +3 -5
- package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -5
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +1 -2
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -5
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -5
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postPurchase.lua +8 -3
- package/dist/callbacks/subscriptions/postSacrifice.lua +1 -2
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -5
- package/dist/callbacks/subscriptions/postSlotInit.lua +3 -5
- package/dist/callbacks/subscriptions/postSlotRender.lua +3 -5
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -5
- package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -5
- package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +3 -5
- package/dist/callbacks/subscriptions/postTransformation.lua +3 -5
- package/dist/callbacks/subscriptions/postTrinketBreak.lua +3 -5
- package/dist/callbacks/subscriptions/preCustomRevive.lua +1 -2
- package/dist/callbacks/subscriptions/preItemPickup.lua +5 -8
- package/dist/constants.lua +57 -6
- package/dist/features/deployJSONRoom.lua +95 -68
- package/dist/features/disableInputs.lua +9 -3
- package/dist/features/forgottenSwitch.lua +1 -1
- package/dist/features/getCollectibleItemPoolType.lua +4 -10
- package/dist/features/preventCollectibleRotate.lua +3 -9
- package/dist/features/saveDataManager/load.lua +2 -6
- package/dist/features/saveDataManager/main.lua +1 -1
- package/dist/features/saveDataManager/merge.lua +2 -4
- package/dist/features/sirenHelpers.lua +5 -7
- package/dist/functions/array.lua +6 -10
- package/dist/functions/bitwise.lua +1 -1
- package/dist/functions/challenges.lua +1 -1
- package/dist/functions/charge.lua +10 -12
- package/dist/functions/collectibles.lua +18 -23
- package/dist/functions/color.lua +9 -1
- package/dist/functions/deepCopy.lua +46 -28
- package/dist/functions/deepCopyTests.lua +12 -20
- package/dist/functions/doors.d.ts +10 -0
- package/dist/functions/doors.lua +19 -21
- package/dist/functions/entity.lua +8 -2
- package/dist/functions/flag.lua +1 -1
- package/dist/functions/gridEntity.lua +14 -9
- package/dist/functions/input.lua +17 -27
- package/dist/functions/jsonRoom.lua +3 -9
- package/dist/functions/language.lua +9 -1
- package/dist/functions/log.lua +33 -85
- package/dist/functions/math.lua +15 -17
- package/dist/functions/npc.lua +15 -17
- package/dist/functions/pickups.lua +14 -1
- package/dist/functions/player.lua +38 -60
- package/dist/functions/playerHealth.lua +19 -9
- package/dist/functions/pocketItems.lua +4 -4
- package/dist/functions/random.lua +2 -2
- package/dist/functions/revive.lua +4 -4
- package/dist/functions/rooms.d.ts +1 -1
- package/dist/functions/rooms.lua +42 -41
- package/dist/functions/spawnCollectible.lua +10 -2
- package/dist/functions/sprite.lua +2 -2
- package/dist/functions/stage.lua +11 -11
- package/dist/functions/tears.lua +1 -1
- package/dist/functions/transformations.lua +4 -10
- package/dist/functions/trinketGive.lua +3 -3
- package/dist/functions/trinkets.lua +10 -6
- package/dist/functions/ui.lua +3 -3
- package/dist/functions/util.lua +6 -14
- package/dist/functions/vector.lua +8 -8
- package/dist/lualib_bundle.lua +795 -735
- package/dist/maps/cardDescriptionMap.lua +99 -1
- package/dist/maps/cardNameMap.lua +99 -1
- package/dist/maps/challengeNameMap.lua +47 -1
- package/dist/maps/collectibleDescriptionMap.lua +722 -1
- package/dist/maps/collectibleNameMap.lua +722 -1
- package/dist/maps/gridEntityXMLMap.lua +36 -1
- package/dist/maps/pillEffectNameMap.lua +52 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +7 -1
- package/dist/maps/transformationMaps.lua +21 -16
- package/dist/maps/transformationNameMap.lua +17 -1
- package/dist/maps/trinketDescriptionMap.lua +190 -1
- package/dist/maps/trinketNameMap.lua +190 -1
- package/dist/sets/cards.lua +98 -2
- package/dist/types/ModUpgraded.lua +95 -105
- package/package.json +5 -5
|
@@ -39,11 +39,7 @@ function postPEffectUpdateReordered(self, player)
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
|
-
v = {
|
|
43
|
-
run = {
|
|
44
|
-
transformations = __TS__New(Map)
|
|
45
|
-
}
|
|
46
|
-
}
|
|
42
|
+
v = {run = {transformations = __TS__New(Map)}}
|
|
47
43
|
function ____exports.postTransformationCallbackInit(self, mod)
|
|
48
44
|
saveDataManager(nil, "postTransformation", v, hasSubscriptions)
|
|
49
45
|
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
|
|
@@ -35,17 +35,17 @@ function entityTakeDmgPlayer(self, tookDamage, _damageAmount, _damageFlags, _dam
|
|
|
35
35
|
do
|
|
36
36
|
local numTrinketsHeld = player:GetTrinketMultiplier(trinketType)
|
|
37
37
|
local oldNumTrinketsHeld = trinketMap:get(trinketType)
|
|
38
|
-
if
|
|
39
|
-
goto
|
|
38
|
+
if oldNumTrinketsHeld == nil or numTrinketsHeld >= oldNumTrinketsHeld then
|
|
39
|
+
goto __continue11
|
|
40
40
|
end
|
|
41
41
|
trinketMap:set(trinketType, numTrinketsHeld)
|
|
42
42
|
local numTrinketsOnGround = Isaac.CountEntities(nil, EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, trinketType)
|
|
43
43
|
if numTrinketsOnGround > 0 then
|
|
44
|
-
goto
|
|
44
|
+
goto __continue11
|
|
45
45
|
end
|
|
46
46
|
postTrinketBreakFire(nil, player, trinketType)
|
|
47
47
|
end
|
|
48
|
-
::
|
|
48
|
+
::__continue11::
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
function getTrinketMap(self, player)
|
|
@@ -58,11 +58,7 @@ function getTrinketMap(self, player)
|
|
|
58
58
|
return playerTrinketMap
|
|
59
59
|
end
|
|
60
60
|
TRINKETS_THAT_CAN_BREAK = {TrinketType.TRINKET_WISH_BONE, TrinketType.TRINKET_WALNUT}
|
|
61
|
-
v = {
|
|
62
|
-
run = {
|
|
63
|
-
playerTrinketMap = __TS__New(Map)
|
|
64
|
-
}
|
|
65
|
-
}
|
|
61
|
+
v = {run = {playerTrinketMap = __TS__New(Map)}}
|
|
66
62
|
function ____exports.postTrinketBreakCallbackInit(self, mod)
|
|
67
63
|
saveDataManager(nil, "postTrinketBreak", v, hasSubscriptions)
|
|
68
64
|
mod:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, postPEffectUpdate)
|
|
@@ -21,7 +21,7 @@ function postPlayerRender(self, player)
|
|
|
21
21
|
end
|
|
22
22
|
local sprite = player:GetSprite()
|
|
23
23
|
local animation = sprite:GetAnimation()
|
|
24
|
-
if
|
|
24
|
+
if animation ~= "Trapdoor" and animation ~= "LightTravel" then
|
|
25
25
|
return
|
|
26
26
|
end
|
|
27
27
|
local frame = sprite:GetFrame()
|
|
@@ -11,7 +11,7 @@ local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReo
|
|
|
11
11
|
local postNewRoomReorderedFire = ____postNewRoomReordered.postNewRoomReorderedFire
|
|
12
12
|
local postNewRoomReorderedHasSubscriptions = ____postNewRoomReordered.postNewRoomReorderedHasSubscriptions
|
|
13
13
|
function hasSubscriptions(self)
|
|
14
|
-
return
|
|
14
|
+
return postGameStartedReorderedHasSubscriptions(nil) or postNewLevelReorderedHasSubscriptions(nil) or postNewRoomReorderedHasSubscriptions(nil)
|
|
15
15
|
end
|
|
16
16
|
function useItemGlowingHourGlass(self)
|
|
17
17
|
usedGlowingHourGlass = true
|
|
@@ -31,7 +31,7 @@ function postNewLevelVanilla(self)
|
|
|
31
31
|
end
|
|
32
32
|
local game = Game()
|
|
33
33
|
local gameFrameCount = game:GetFrameCount()
|
|
34
|
-
if
|
|
34
|
+
if gameFrameCount == 0 and not forceNewLevel then
|
|
35
35
|
return
|
|
36
36
|
end
|
|
37
37
|
forceNewLevel = false
|
|
@@ -50,14 +50,14 @@ function postNewRoomVanilla(self)
|
|
|
50
50
|
local stageType = level:GetStageType()
|
|
51
51
|
if usedGlowingHourGlass then
|
|
52
52
|
usedGlowingHourGlass = false
|
|
53
|
-
if
|
|
53
|
+
if currentStage ~= stage or currentStageType ~= stageType then
|
|
54
54
|
recordCurrentStage(nil)
|
|
55
55
|
postNewLevelReorderedFire(nil)
|
|
56
56
|
postNewRoomReorderedFire(nil)
|
|
57
57
|
return
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
|
-
if (
|
|
60
|
+
if (gameFrameCount == 0 or currentStage ~= stage or currentStageType ~= stageType) and not forceNewRoom then
|
|
61
61
|
return
|
|
62
62
|
end
|
|
63
63
|
forceNewRoom = false
|
|
@@ -10,8 +10,7 @@ function ____exports.preNewLevelRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.preNewLevelFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postBombInitLateRegister(self, callback, bombVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postBombInitLateFire(self, bomb)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local bombVariant
|
|
16
|
-
bombVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local bombVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if bombVariant ~= nil and bombVariant ~= bomb.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, bomb)
|
|
@@ -10,8 +10,7 @@ function ____exports.postCursedTeleportRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postCursedTeleportFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postCustomReviveRegister(self, callback, revivalType)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postCustomReviveFire(self, player, revivalType)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local callbackRevivalType
|
|
16
|
-
callbackRevivalType = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local callbackRevivalType = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if callbackRevivalType ~= nil and callbackRevivalType ~= revivalType then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player, revivalType)
|
|
@@ -10,12 +10,10 @@ function ____exports.postEffectInitLateRegister(self, callback, effectVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postEffectInitLateFire(self, effect)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local effectVariant
|
|
16
|
-
effectVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local effectVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if effectVariant ~= nil and effectVariant ~= effect.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, effect)
|
|
@@ -10,8 +10,7 @@ function ____exports.postEsauJrRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postEsauJrFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postFamiliarInitLateRegister(self, callback, familiarVarian
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postFamiliarInitLateFire(self, familiar)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local familiarVariant
|
|
16
|
-
familiarVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local familiarVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if familiarVariant ~= nil and familiarVariant ~= familiar.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, familiar)
|
|
@@ -10,8 +10,7 @@ function ____exports.postFirstEsauJrRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postFirstEsauJrFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,8 +10,7 @@ function ____exports.postFirstFlipRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postFirstFlipFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,8 +10,7 @@ function ____exports.postFlipRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postFlipFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,8 +10,7 @@ function ____exports.postGameStartedReorderedRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postGameStartedReorderedFire(self, isContinued)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, isContinued)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postGridEntityInitRegister(self, callback, gridEntityType)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postGridEntityInitFire(self, gridEntity)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local gridEntityType
|
|
16
|
-
gridEntityType = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local gridEntityType = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if gridEntityType ~= nil and gridEntityType ~= gridEntity:GetType() then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, gridEntity)
|
|
@@ -10,12 +10,10 @@ function ____exports.postGridEntityRemoveRegister(self, callback, gridEntityType
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postGridEntityRemoveFire(self, gridIndex, gridEntityType)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local callbackGridEntityType
|
|
16
|
-
callbackGridEntityType = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local callbackGridEntityType = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if callbackGridEntityType ~= nil and callbackGridEntityType ~= gridEntityType then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, gridIndex, gridEntityType)
|
|
@@ -10,12 +10,10 @@ function ____exports.postGridEntityUpdateRegister(self, callback, gridEntityType
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postGridEntityUpdateFire(self, gridEntity)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local gridEntityType
|
|
16
|
-
gridEntityType = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local gridEntityType = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if gridEntityType ~= nil and gridEntityType ~= gridEntity:GetType() then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, gridEntity)
|
|
@@ -10,17 +10,14 @@ function ____exports.postItemPickupRegister(self, callback, itemType, itemID)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postItemPickupFire(self, player, pickingUpItem)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local
|
|
16
|
-
itemType = ____value[2]
|
|
17
|
-
local itemID
|
|
18
|
-
itemID = ____value[3]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local itemType = ____value[2]
|
|
15
|
+
local itemID = ____value[3]
|
|
19
16
|
do
|
|
20
|
-
if
|
|
17
|
+
if itemType ~= nil and itemType ~= pickingUpItem.type then
|
|
21
18
|
goto __continue5
|
|
22
19
|
end
|
|
23
|
-
if
|
|
20
|
+
if itemID ~= nil and itemID ~= pickingUpItem.id then
|
|
24
21
|
goto __continue5
|
|
25
22
|
end
|
|
26
23
|
callback(nil, player, pickingUpItem)
|
|
@@ -10,12 +10,10 @@ function ____exports.postKnifeInitLateRegister(self, callback, knifeVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postKnifeInitLateFire(self, knife)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local knifeVariant
|
|
16
|
-
knifeVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local knifeVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if knifeVariant ~= nil and knifeVariant ~= knife.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, knife)
|
|
@@ -10,12 +10,10 @@ function ____exports.postLaserInitLateRegister(self, callback, laserVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postLaserInitLateFire(self, laser)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local laserVariant
|
|
16
|
-
laserVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local laserVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if laserVariant ~= nil and laserVariant ~= laser.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, laser)
|
|
@@ -10,12 +10,10 @@ function ____exports.postNPCInitLateRegister(self, callback, entityType)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postNPCInitLateFire(self, npc)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local entityType
|
|
16
|
-
entityType = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local entityType = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if entityType ~= nil and entityType ~= npc.Type then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, npc)
|
|
@@ -10,8 +10,7 @@ function ____exports.postNewLevelReorderedRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postNewLevelReorderedFire(self)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,8 +10,7 @@ function ____exports.postNewRoomEarlyRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postNewRoomEarlyFire(self)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,8 +10,7 @@ function ____exports.postNewRoomReorderedRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postNewRoomReorderedFire(self)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -11,12 +11,10 @@ end
|
|
|
11
11
|
function ____exports.postPEffectUpdateReorderedFire(self, player)
|
|
12
12
|
local character = player:GetPlayerType()
|
|
13
13
|
for ____, ____value in ipairs(subscriptions) do
|
|
14
|
-
local callback
|
|
15
|
-
|
|
16
|
-
local callbackCharacter
|
|
17
|
-
callbackCharacter = ____value[2]
|
|
14
|
+
local callback = ____value[1]
|
|
15
|
+
local callbackCharacter = ____value[2]
|
|
18
16
|
do
|
|
19
|
-
if
|
|
17
|
+
if callbackCharacter ~= nil and callbackCharacter ~= character then
|
|
20
18
|
goto __continue5
|
|
21
19
|
end
|
|
22
20
|
callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPickupCollectRegister(self, callback, pickupVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPickupCollectFire(self, pickup, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local pickupVariant
|
|
16
|
-
pickupVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local pickupVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, pickup, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPickupInitLateRegister(self, callback, pickupVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPickupInitLateFire(self, pickup)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local pickupVariant
|
|
16
|
-
pickupVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local pickupVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, pickup)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerChangeHealthRegister(self, callback, playerVarian
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player, healthType, amount)
|
|
@@ -10,8 +10,7 @@ function ____exports.postPlayerChangeTypeRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerChangeTypeFire(self, player, character)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player, character)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerFatalDamageRegister(self, callback, playerVariant
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerFatalDamageFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
local shouldSustainDeath = callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerInitLateRegister(self, callback, playerVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerInitLateFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerInitReorderedRegister(self, callback, playerVaria
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerInitReorderedFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerRenderReorderedRegister(self, callback, playerVar
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerRenderReorderedFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postPlayerUpdateReorderedRegister(self, callback, playerVar
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPlayerUpdateReorderedFire(self, player)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local playerVariant
|
|
16
|
-
playerVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local playerVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if playerVariant ~= nil and playerVariant ~= player.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, player)
|
|
@@ -10,12 +10,10 @@ function ____exports.postProjectileInitLateRegister(self, callback, projectileVa
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postProjectileInitLateFire(self, projectile)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local projectileVariant
|
|
16
|
-
projectileVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local projectileVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if projectileVariant ~= nil and projectileVariant ~= projectile.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, projectile)
|
|
@@ -10,9 +10,14 @@ function ____exports.postPurchaseRegister(self, callback, pickupVariant, pickupS
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postPurchaseFire(self, player, pickupVariant, pickupSubType, pickupPrice)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback
|
|
15
|
-
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
callback(
|
|
15
|
+
nil,
|
|
16
|
+
player,
|
|
17
|
+
pickupVariant,
|
|
18
|
+
pickupSubType,
|
|
19
|
+
pickupPrice
|
|
20
|
+
)
|
|
16
21
|
end
|
|
17
22
|
end
|
|
18
23
|
return ____exports
|
|
@@ -10,8 +10,7 @@ function ____exports.postSacrificeRegister(self, callback)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postSacrificeFire(self, player, numSacrifices)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
callback = ____value[1]
|
|
13
|
+
local callback = ____value[1]
|
|
15
14
|
callback(nil, player, numSacrifices)
|
|
16
15
|
end
|
|
17
16
|
end
|
|
@@ -10,12 +10,10 @@ function ____exports.postSlotDestroyedRegister(self, callback, slotVariant)
|
|
|
10
10
|
end
|
|
11
11
|
function ____exports.postSlotDestroyedFire(self, slot)
|
|
12
12
|
for ____, ____value in ipairs(subscriptions) do
|
|
13
|
-
local callback
|
|
14
|
-
|
|
15
|
-
local slotVariant
|
|
16
|
-
slotVariant = ____value[2]
|
|
13
|
+
local callback = ____value[1]
|
|
14
|
+
local slotVariant = ____value[2]
|
|
17
15
|
do
|
|
18
|
-
if
|
|
16
|
+
if slotVariant ~= nil and slotVariant ~= slot.Variant then
|
|
19
17
|
goto __continue5
|
|
20
18
|
end
|
|
21
19
|
callback(nil, slot)
|