isaacscript-common 1.0.497 → 1.0.501
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/customRevive.lua +9 -5
- package/dist/callbacks/itemPickup.lua +9 -5
- package/dist/callbacks/postBombInitLate.d.ts +2 -2
- package/dist/callbacks/postBombInitLate.lua +16 -19
- package/dist/callbacks/postCursedTeleport.lua +5 -3
- package/dist/callbacks/postEffectInitLate.d.ts +2 -2
- package/dist/callbacks/postEffectInitLate.lua +16 -19
- package/dist/callbacks/postEsauJr.lua +9 -5
- package/dist/callbacks/postFamiliarInitLate.d.ts +2 -2
- package/dist/callbacks/postFamiliarInitLate.lua +16 -19
- package/dist/callbacks/postFlip.lua +9 -5
- package/dist/callbacks/postGridEntity.lua +13 -7
- package/dist/callbacks/postKnifeInitLate.d.ts +2 -2
- package/dist/callbacks/postKnifeInitLate.lua +16 -19
- package/dist/callbacks/postLaserInitLate.d.ts +2 -2
- package/dist/callbacks/postLaserInitLate.lua +16 -19
- package/dist/callbacks/postNPCInitLate.d.ts +2 -2
- package/dist/callbacks/postNPCInitLate.lua +16 -19
- package/dist/callbacks/postNewRoomEarly.d.ts +2 -0
- package/dist/callbacks/postNewRoomEarly.lua +46 -0
- package/dist/callbacks/postPickupCollect.lua +5 -3
- package/dist/callbacks/postPickupInitLate.d.ts +2 -2
- package/dist/callbacks/postPickupInitLate.lua +16 -19
- package/dist/callbacks/postPlayerChangeHealth.lua +5 -3
- package/dist/callbacks/postPlayerChangeType.lua +5 -3
- package/dist/callbacks/postPlayerFatalDamage.lua +5 -3
- package/dist/callbacks/postPlayerInitLate.lua +5 -3
- package/dist/callbacks/postPlayerReordered.lua +16 -10
- package/dist/callbacks/postProjectileInitLate.d.ts +2 -2
- package/dist/callbacks/postProjectileInitLate.lua +16 -19
- package/dist/callbacks/postPurchase.lua +11 -3
- package/dist/callbacks/postSacrifice.lua +5 -3
- package/dist/callbacks/postSlotInitUpdate.lua +9 -5
- package/dist/callbacks/postSlotRenderBroken.lua +9 -5
- package/dist/callbacks/postTearInitLate.d.ts +2 -2
- package/dist/callbacks/postTearInitLate.lua +16 -19
- package/dist/callbacks/postTransformation.lua +5 -3
- package/dist/callbacks/reorderedCallbacks.lua +18 -12
- package/dist/callbacks/subscriptions/postBombInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -3
- package/dist/callbacks/subscriptions/postCursedTeleport.lua +3 -3
- package/dist/callbacks/subscriptions/postCustomRevive.d.ts +3 -3
- package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -3
- package/dist/callbacks/subscriptions/postEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -3
- package/dist/callbacks/subscriptions/postFirstEsauJr.lua +3 -3
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -3
- package/dist/callbacks/subscriptions/postFirstFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postFlip.d.ts +3 -3
- package/dist/callbacks/subscriptions/postFlip.lua +3 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postGameStartedReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +3 -3
- package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +3 -3
- package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postItemPickup.d.ts +3 -3
- package/dist/callbacks/subscriptions/postItemPickup.lua +3 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postNewLevelReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +4 -0
- package/dist/callbacks/subscriptions/postNewRoomEarly.lua +18 -0
- package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postNewRoomReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupCollect.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerChangeType.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postPurchase.d.ts +3 -3
- package/dist/callbacks/subscriptions/postPurchase.lua +3 -3
- package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -3
- package/dist/callbacks/subscriptions/postSacrifice.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +3 -3
- package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotInit.d.ts +3 -3
- package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotRender.d.ts +3 -3
- package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
- package/dist/callbacks/subscriptions/postTearInitLate.d.ts +3 -3
- package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
- package/dist/callbacks/subscriptions/postTransformation.d.ts +3 -3
- package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
- package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -3
- package/dist/callbacks/subscriptions/preCustomRevive.lua +3 -3
- package/dist/callbacks/subscriptions/preItemPickup.d.ts +3 -3
- package/dist/callbacks/subscriptions/preItemPickup.lua +3 -3
- package/dist/constants.d.ts +18 -8
- package/dist/constants.lua +10 -8
- package/dist/features/deployJSONRoom.lua +16 -16
- package/dist/features/getCollectibleItemPoolType.lua +6 -28
- package/dist/functions/collectibles.d.ts +26 -1
- package/dist/functions/collectibles.lua +27 -4
- package/dist/functions/flag.d.ts +1 -1
- package/dist/functions/gridEntity.d.ts +10 -5
- package/dist/functions/gridEntity.lua +19 -1
- package/dist/functions/input.d.ts +3 -5
- package/dist/functions/player.d.ts +5 -5
- package/dist/functions/revive.d.ts +2 -2
- package/dist/functions/rooms.d.ts +40 -20
- package/dist/functions/rooms.lua +63 -52
- package/dist/functions/sprite.d.ts +11 -0
- package/dist/functions/sprite.lua +9 -0
- package/dist/functions/util.d.ts +2 -2
- package/dist/functions/util.lua +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.lua +1 -1
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +3 -0
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +12 -0
- package/dist/types/CallbackParametersCustom.d.ts +4 -0
- package/dist/types/ModCallbacksCustom.d.ts +34 -33
- package/dist/types/ModCallbacksCustom.lua +35 -33
- package/dist/types/ModUpgraded.lua +256 -243
- package/dist/upgradeMod.lua +3 -0
- package/package.json +2 -2
|
@@ -6,9 +6,11 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____player = require("functions.player")
|
|
8
8
|
local getClosestPlayer = ____player.getClosestPlayer
|
|
9
|
-
local
|
|
9
|
+
local ____postPickupCollect = require("callbacks.subscriptions.postPickupCollect")
|
|
10
|
+
local postPickupCollectFire = ____postPickupCollect.postPickupCollectFire
|
|
11
|
+
local postPickupCollectHasSubscriptions = ____postPickupCollect.postPickupCollectHasSubscriptions
|
|
10
12
|
function hasSubscriptions(self)
|
|
11
|
-
return
|
|
13
|
+
return postPickupCollectHasSubscriptions(nil)
|
|
12
14
|
end
|
|
13
15
|
function postPickupRender(self, pickup)
|
|
14
16
|
if not hasSubscriptions(nil) then
|
|
@@ -23,7 +25,7 @@ function postPickupRender(self, pickup)
|
|
|
23
25
|
if not v.room.firedSet:has(index) then
|
|
24
26
|
v.room.firedSet:add(index)
|
|
25
27
|
local player = getClosestPlayer(nil, pickup.Position)
|
|
26
|
-
|
|
28
|
+
postPickupCollectFire(nil, pickup, player)
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
v = {room = {firedSet = __TS__New(Set)}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postPickupInitLateCallbackInit(mod:
|
|
1
|
+
import { ModUpgraded } from "../types/ModUpgraded";
|
|
2
|
+
export declare function postPickupInitLateCallbackInit(mod: ModUpgraded): void;
|
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions, postPickupUpdate, v
|
|
4
|
+
local hasSubscriptions, postPickupUpdate, postNewRoomEarly, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
7
|
+
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
8
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
9
|
+
local ____postPickupInitLate = require("callbacks.subscriptions.postPickupInitLate")
|
|
10
|
+
local postPickupInitLateFire = ____postPickupInitLate.postPickupInitLateFire
|
|
11
|
+
local postPickupInitLateHasSubscriptions = ____postPickupInitLate.postPickupInitLateHasSubscriptions
|
|
11
12
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
13
|
+
return postPickupInitLateHasSubscriptions(nil)
|
|
13
14
|
end
|
|
14
15
|
function postPickupUpdate(self, pickup)
|
|
15
16
|
if not hasSubscriptions(nil) then
|
|
16
17
|
return
|
|
17
18
|
end
|
|
18
|
-
local roomIndex = getRoomIndex(nil)
|
|
19
|
-
local roomVisitedCount = getRoomVisitedCount(nil)
|
|
20
|
-
if roomIndex ~= v.run.currentRoomIndex or roomVisitedCount ~= v.run.currentRoomVisitedCount then
|
|
21
|
-
v.run.currentRoomIndex = roomIndex
|
|
22
|
-
v.run.currentRoomVisitedCount = roomVisitedCount
|
|
23
|
-
v.run.firedSet:clear()
|
|
24
|
-
end
|
|
25
19
|
local index = GetPtrHash(pickup)
|
|
26
20
|
if not v.run.firedSet:has(index) then
|
|
27
21
|
v.run.firedSet:add(index)
|
|
28
|
-
|
|
22
|
+
postPickupInitLateFire(nil, pickup)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
function postNewRoomEarly(self)
|
|
26
|
+
if not hasSubscriptions(nil) then
|
|
27
|
+
return
|
|
29
28
|
end
|
|
29
|
+
v.run.firedSet:clear()
|
|
30
30
|
end
|
|
31
|
-
v = {run = {
|
|
32
|
-
firedSet = __TS__New(Set),
|
|
33
|
-
currentRoomIndex = nil,
|
|
34
|
-
currentRoomVisitedCount = nil
|
|
35
|
-
}}
|
|
31
|
+
v = {run = {firedSet = __TS__New(Set)}}
|
|
36
32
|
function ____exports.postPickupInitLateCallbackInit(self, mod)
|
|
37
33
|
saveDataManager(nil, "postPickupInitLate", v, hasSubscriptions)
|
|
38
34
|
mod:AddCallback(ModCallbacks.MC_POST_PICKUP_UPDATE, postPickupUpdate)
|
|
35
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY, postNewRoomEarly)
|
|
39
36
|
end
|
|
40
37
|
return ____exports
|
|
@@ -13,9 +13,11 @@ local ____HealthType = require("types.HealthType")
|
|
|
13
13
|
local HealthType = ____HealthType.HealthType
|
|
14
14
|
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
15
15
|
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
16
|
-
local
|
|
16
|
+
local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerChangeHealth")
|
|
17
|
+
local postPlayerChangeHealthFire = ____postPlayerChangeHealth.postPlayerChangeHealthFire
|
|
18
|
+
local postPlayerChangeHealthHasSubscriptions = ____postPlayerChangeHealth.postPlayerChangeHealthHasSubscriptions
|
|
17
19
|
function hasSubscriptions(self)
|
|
18
|
-
return
|
|
20
|
+
return postPlayerChangeHealthHasSubscriptions(nil)
|
|
19
21
|
end
|
|
20
22
|
function postPlayerUpdateReordered(self, player)
|
|
21
23
|
if not hasSubscriptions(nil) then
|
|
@@ -32,7 +34,7 @@ function postPlayerUpdateReordered(self, player)
|
|
|
32
34
|
local currentHealthValue = getCurrentHealthValue(nil, player, healthType)
|
|
33
35
|
if storedHealthValue ~= nil and storedHealthValue ~= currentHealthValue then
|
|
34
36
|
local amount = currentHealthValue - storedHealthValue
|
|
35
|
-
|
|
37
|
+
postPlayerChangeHealthFire(nil, player, healthType, amount)
|
|
36
38
|
end
|
|
37
39
|
end
|
|
38
40
|
end
|
|
@@ -8,9 +8,11 @@ local ____player = require("functions.player")
|
|
|
8
8
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
9
9
|
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
10
10
|
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
11
|
-
local
|
|
11
|
+
local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
|
|
12
|
+
local postPlayerChangeTypeFire = ____postPlayerChangeType.postPlayerChangeTypeFire
|
|
13
|
+
local postPlayerChangeTypeHasSubscriptions = ____postPlayerChangeType.postPlayerChangeTypeHasSubscriptions
|
|
12
14
|
function hasSubscriptions(self)
|
|
13
|
-
return
|
|
15
|
+
return postPlayerChangeTypeHasSubscriptions(nil)
|
|
14
16
|
end
|
|
15
17
|
function postPlayerUpdateReorderedPlayer(self, player)
|
|
16
18
|
if not hasSubscriptions(nil) then
|
|
@@ -25,7 +27,7 @@ function postPlayerUpdateReorderedPlayer(self, player)
|
|
|
25
27
|
end
|
|
26
28
|
if character ~= storedCharacter then
|
|
27
29
|
v.run.characterMap:set(playerIndex, character)
|
|
28
|
-
|
|
30
|
+
postPlayerChangeTypeFire(nil, player)
|
|
29
31
|
end
|
|
30
32
|
end
|
|
31
33
|
v = {run = {characterMap = __TS__New(Map)}}
|
|
@@ -6,9 +6,11 @@ local getPlayerNumAllHearts = ____player.getPlayerNumAllHearts
|
|
|
6
6
|
local hasLostCurse = ____player.hasLostCurse
|
|
7
7
|
local ____revive = require("functions.revive")
|
|
8
8
|
local willPlayerRevive = ____revive.willPlayerRevive
|
|
9
|
-
local
|
|
9
|
+
local ____postPlayerFatalDamage = require("callbacks.subscriptions.postPlayerFatalDamage")
|
|
10
|
+
local postPlayerFatalDamageFire = ____postPlayerFatalDamage.postPlayerFatalDamageFire
|
|
11
|
+
local postPlayerFatalDamageHasSubscriptions = ____postPlayerFatalDamage.postPlayerFatalDamageHasSubscriptions
|
|
10
12
|
function hasSubscriptions(self)
|
|
11
|
-
return
|
|
13
|
+
return postPlayerFatalDamageHasSubscriptions(nil)
|
|
12
14
|
end
|
|
13
15
|
function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
|
|
14
16
|
if not hasSubscriptions(nil) then
|
|
@@ -24,7 +26,7 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _dama
|
|
|
24
26
|
if not damageIsFatal(nil, player, damageAmount) and not hasLostCurse(nil, player) then
|
|
25
27
|
return nil
|
|
26
28
|
end
|
|
27
|
-
local shouldSustainDeath =
|
|
29
|
+
local shouldSustainDeath = postPlayerFatalDamageFire(nil, player)
|
|
28
30
|
if shouldSustainDeath ~= nil then
|
|
29
31
|
return shouldSustainDeath
|
|
30
32
|
end
|
|
@@ -6,9 +6,11 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____player = require("functions.player")
|
|
8
8
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
9
|
-
local
|
|
9
|
+
local ____postPlayerInitLate = require("callbacks.subscriptions.postPlayerInitLate")
|
|
10
|
+
local postPlayerInitLateFire = ____postPlayerInitLate.postPlayerInitLateFire
|
|
11
|
+
local postPlayerInitLateHasSubscriptions = ____postPlayerInitLate.postPlayerInitLateHasSubscriptions
|
|
10
12
|
function hasSubscriptions(self)
|
|
11
|
-
return
|
|
13
|
+
return postPlayerInitLateHasSubscriptions(nil)
|
|
12
14
|
end
|
|
13
15
|
function postPlayerUpdate(self, player)
|
|
14
16
|
if not hasSubscriptions(nil) then
|
|
@@ -17,7 +19,7 @@ function postPlayerUpdate(self, player)
|
|
|
17
19
|
local playerIndex = getPlayerIndex(nil, player)
|
|
18
20
|
if not v.run.firedSet:has(playerIndex) then
|
|
19
21
|
v.run.firedSet:add(playerIndex)
|
|
20
|
-
|
|
22
|
+
postPlayerInitLateFire(nil, player)
|
|
21
23
|
end
|
|
22
24
|
end
|
|
23
25
|
v = {run = {firedSet = __TS__New(Set)}}
|
|
@@ -9,18 +9,24 @@ local arrayEmpty = ____array.arrayEmpty
|
|
|
9
9
|
local ____player = require("functions.player")
|
|
10
10
|
local getPlayerFromIndex = ____player.getPlayerFromIndex
|
|
11
11
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
12
|
-
local
|
|
13
|
-
local
|
|
14
|
-
local
|
|
12
|
+
local ____postPlayerInitReordered = require("callbacks.subscriptions.postPlayerInitReordered")
|
|
13
|
+
local postPlayerInitReorderedFire = ____postPlayerInitReordered.postPlayerInitReorderedFire
|
|
14
|
+
local postPlayerInitReorderedHasSubscriptions = ____postPlayerInitReordered.postPlayerInitReorderedHasSubscriptions
|
|
15
|
+
local ____postPlayerRenderReordered = require("callbacks.subscriptions.postPlayerRenderReordered")
|
|
16
|
+
local postPlayerRenderReorderedFire = ____postPlayerRenderReordered.postPlayerRenderReorderedFire
|
|
17
|
+
local postPlayerRenderReorderedHasSubscriptions = ____postPlayerRenderReordered.postPlayerRenderReorderedHasSubscriptions
|
|
18
|
+
local ____postPlayerUpdateReordered = require("callbacks.subscriptions.postPlayerUpdateReordered")
|
|
19
|
+
local postPlayerUpdateReorderedFire = ____postPlayerUpdateReordered.postPlayerUpdateReorderedFire
|
|
20
|
+
local postPlayerUpdateReorderedHasSubscriptions = ____postPlayerUpdateReordered.postPlayerUpdateReorderedHasSubscriptions
|
|
15
21
|
function hasSubscriptions(self)
|
|
16
|
-
return
|
|
22
|
+
return postPlayerInitReorderedHasSubscriptions(nil) or postPlayerUpdateReorderedHasSubscriptions(nil) or postPlayerRenderReorderedHasSubscriptions(nil)
|
|
17
23
|
end
|
|
18
24
|
function postPlayerInit(self, player)
|
|
19
25
|
if not hasSubscriptions(nil) then
|
|
20
26
|
return
|
|
21
27
|
end
|
|
22
28
|
if v.run.postGameStartedFiredOnThisRun then
|
|
23
|
-
|
|
29
|
+
postPlayerInitReorderedFire(nil, player)
|
|
24
30
|
else
|
|
25
31
|
local playerIndex = getPlayerIndex(nil, player)
|
|
26
32
|
__TS__ArrayPush(v.run.postPlayerInitQueue, playerIndex)
|
|
@@ -31,7 +37,7 @@ function postPlayerUpdate(self, player)
|
|
|
31
37
|
return
|
|
32
38
|
end
|
|
33
39
|
if v.run.postGameStartedFiredOnThisRun then
|
|
34
|
-
|
|
40
|
+
postPlayerUpdateReorderedFire(nil, player)
|
|
35
41
|
else
|
|
36
42
|
local playerIndex = getPlayerIndex(nil, player)
|
|
37
43
|
__TS__ArrayPush(v.run.postPlayerUpdateQueue, playerIndex)
|
|
@@ -42,7 +48,7 @@ function postPlayerRender(self, player)
|
|
|
42
48
|
return
|
|
43
49
|
end
|
|
44
50
|
if v.run.postGameStartedFiredOnThisRun then
|
|
45
|
-
|
|
51
|
+
postPlayerRenderReorderedFire(nil, player)
|
|
46
52
|
else
|
|
47
53
|
local playerIndex = getPlayerIndex(nil, player)
|
|
48
54
|
__TS__ArrayPush(v.run.postPlayerRenderQueue, playerIndex)
|
|
@@ -53,9 +59,9 @@ function postGameStarted(self)
|
|
|
53
59
|
return
|
|
54
60
|
end
|
|
55
61
|
v.run.postGameStartedFiredOnThisRun = true
|
|
56
|
-
dequeue(nil, v.run.postPlayerInitQueue,
|
|
57
|
-
dequeue(nil, v.run.postPlayerUpdateQueue,
|
|
58
|
-
dequeue(nil, v.run.postPlayerRenderQueue,
|
|
62
|
+
dequeue(nil, v.run.postPlayerInitQueue, postPlayerInitReorderedFire)
|
|
63
|
+
dequeue(nil, v.run.postPlayerUpdateQueue, postPlayerUpdateReorderedFire)
|
|
64
|
+
dequeue(nil, v.run.postPlayerRenderQueue, postPlayerRenderReorderedFire)
|
|
59
65
|
end
|
|
60
66
|
function dequeue(self, playerIndexes, fireFunction)
|
|
61
67
|
for ____, playerIndex in ipairs(playerIndexes) do
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postProjectileInitLateCallbackInit(mod:
|
|
1
|
+
import { ModUpgraded } from "../types/ModUpgraded";
|
|
2
|
+
export declare function postProjectileInitLateCallbackInit(mod: ModUpgraded): void;
|
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions, postProjectileUpdate, v
|
|
4
|
+
local hasSubscriptions, postProjectileUpdate, postNewRoomEarly, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
7
|
+
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
8
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
9
|
+
local ____postProjectileInitLate = require("callbacks.subscriptions.postProjectileInitLate")
|
|
10
|
+
local postProjectileInitLateFire = ____postProjectileInitLate.postProjectileInitLateFire
|
|
11
|
+
local postProjectileInitLateHasSubscriptions = ____postProjectileInitLate.postProjectileInitLateHasSubscriptions
|
|
11
12
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
13
|
+
return postProjectileInitLateHasSubscriptions(nil)
|
|
13
14
|
end
|
|
14
15
|
function postProjectileUpdate(self, projectile)
|
|
15
16
|
if not hasSubscriptions(nil) then
|
|
16
17
|
return
|
|
17
18
|
end
|
|
18
|
-
local roomIndex = getRoomIndex(nil)
|
|
19
|
-
local roomVisitedCount = getRoomVisitedCount(nil)
|
|
20
|
-
if roomIndex ~= v.run.currentRoomIndex or roomVisitedCount ~= v.run.currentRoomVisitedCount then
|
|
21
|
-
v.run.currentRoomIndex = roomIndex
|
|
22
|
-
v.run.currentRoomVisitedCount = roomVisitedCount
|
|
23
|
-
v.run.firedSet:clear()
|
|
24
|
-
end
|
|
25
19
|
local index = GetPtrHash(projectile)
|
|
26
20
|
if not v.run.firedSet:has(index) then
|
|
27
21
|
v.run.firedSet:add(index)
|
|
28
|
-
|
|
22
|
+
postProjectileInitLateFire(nil, projectile)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
function postNewRoomEarly(self)
|
|
26
|
+
if not hasSubscriptions(nil) then
|
|
27
|
+
return
|
|
29
28
|
end
|
|
29
|
+
v.run.firedSet:clear()
|
|
30
30
|
end
|
|
31
|
-
v = {run = {
|
|
32
|
-
firedSet = __TS__New(Set),
|
|
33
|
-
currentRoomIndex = nil,
|
|
34
|
-
currentRoomVisitedCount = nil
|
|
35
|
-
}}
|
|
31
|
+
v = {run = {firedSet = __TS__New(Set)}}
|
|
36
32
|
function ____exports.postProjectileInitLateCallbackInit(self, mod)
|
|
37
33
|
saveDataManager(nil, "postProjectileInitLate", v, hasSubscriptions)
|
|
38
34
|
mod:AddCallback(ModCallbacks.MC_POST_PROJECTILE_UPDATE, postProjectileUpdate)
|
|
35
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY, postNewRoomEarly)
|
|
39
36
|
end
|
|
40
37
|
return ____exports
|
|
@@ -7,9 +7,11 @@ local saveDataManager = ____exports.saveDataManager
|
|
|
7
7
|
local ____player = require("functions.player")
|
|
8
8
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
9
9
|
local getPlayers = ____player.getPlayers
|
|
10
|
-
local
|
|
10
|
+
local ____postPurchase = require("callbacks.subscriptions.postPurchase")
|
|
11
|
+
local postPurchaseFire = ____postPurchase.postPurchaseFire
|
|
12
|
+
local postPurchaseHasSubscriptions = ____postPurchase.postPurchaseHasSubscriptions
|
|
11
13
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
14
|
+
return postPurchaseHasSubscriptions(nil)
|
|
13
15
|
end
|
|
14
16
|
function postUpdate(self)
|
|
15
17
|
if not hasSubscriptions(nil) then
|
|
@@ -41,7 +43,13 @@ function checkPickupsPurchased(self, pickups, players)
|
|
|
41
43
|
goto __continue9
|
|
42
44
|
end
|
|
43
45
|
if not playerHoldingItemLastFrame and playerHoldingItem then
|
|
44
|
-
|
|
46
|
+
postPurchaseFire(
|
|
47
|
+
nil,
|
|
48
|
+
player,
|
|
49
|
+
pickupDescription.variant,
|
|
50
|
+
pickupDescription.subtype,
|
|
51
|
+
pickupDescription.price
|
|
52
|
+
)
|
|
45
53
|
break
|
|
46
54
|
end
|
|
47
55
|
end
|
|
@@ -5,9 +5,11 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
5
5
|
local saveDataManager = ____exports.saveDataManager
|
|
6
6
|
local ____flag = require("functions.flag")
|
|
7
7
|
local hasFlag = ____flag.hasFlag
|
|
8
|
-
local
|
|
8
|
+
local ____postSacrifice = require("callbacks.subscriptions.postSacrifice")
|
|
9
|
+
local postSacrificeFire = ____postSacrifice.postSacrificeFire
|
|
10
|
+
local postSacrificeHasSubscriptions = ____postSacrifice.postSacrificeHasSubscriptions
|
|
9
11
|
function hasSubscriptions(self)
|
|
10
|
-
return
|
|
12
|
+
return postSacrificeHasSubscriptions(nil)
|
|
11
13
|
end
|
|
12
14
|
function entityTakeDmgPlayer(self, tookDamage, _damageAmount, damageFlags, _damageSource, _damageCountdownFrames)
|
|
13
15
|
if not hasSubscriptions(nil) then
|
|
@@ -24,7 +26,7 @@ function entityTakeDmgPlayer(self, tookDamage, _damageAmount, damageFlags, _dama
|
|
|
24
26
|
if roomType == RoomType.ROOM_SACRIFICE and isSpikeDamage then
|
|
25
27
|
local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
|
|
26
28
|
____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
|
|
27
|
-
|
|
29
|
+
postSacrificeFire(nil, player, v.level.numSacrifices)
|
|
28
30
|
end
|
|
29
31
|
end
|
|
30
32
|
v = {level = {numSacrifices = 0}}
|
|
@@ -6,10 +6,14 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____entity = require("functions.entity")
|
|
8
8
|
local getSlots = ____entity.getSlots
|
|
9
|
-
local
|
|
10
|
-
local
|
|
9
|
+
local ____postSlotInit = require("callbacks.subscriptions.postSlotInit")
|
|
10
|
+
local postSlotInitFire = ____postSlotInit.postSlotInitFire
|
|
11
|
+
local postSlotInitHasSubscriptions = ____postSlotInit.postSlotInitHasSubscriptions
|
|
12
|
+
local ____postSlotUpdate = require("callbacks.subscriptions.postSlotUpdate")
|
|
13
|
+
local postSlotUpdateFire = ____postSlotUpdate.postSlotUpdateFire
|
|
14
|
+
local postSlotUpdateHasSubscriptions = ____postSlotUpdate.postSlotUpdateHasSubscriptions
|
|
11
15
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
16
|
+
return postSlotInitHasSubscriptions(nil) or postSlotUpdateHasSubscriptions(nil)
|
|
13
17
|
end
|
|
14
18
|
function postUpdate(self)
|
|
15
19
|
if not hasSubscriptions(nil) then
|
|
@@ -17,7 +21,7 @@ function postUpdate(self)
|
|
|
17
21
|
end
|
|
18
22
|
for ____, slot in ipairs(getSlots(nil)) do
|
|
19
23
|
checkNewEntity(nil, slot)
|
|
20
|
-
|
|
24
|
+
postSlotUpdateFire(nil, slot)
|
|
21
25
|
end
|
|
22
26
|
end
|
|
23
27
|
function postNewRoom(self)
|
|
@@ -32,7 +36,7 @@ function checkNewEntity(self, slot)
|
|
|
32
36
|
local ptrHash = GetPtrHash(slot)
|
|
33
37
|
if not v.room.initializedSlots:has(ptrHash) then
|
|
34
38
|
v.room.initializedSlots:add(ptrHash)
|
|
35
|
-
|
|
39
|
+
postSlotInitFire(nil, slot)
|
|
36
40
|
end
|
|
37
41
|
end
|
|
38
42
|
v = {room = {initializedSlots = __TS__New(Set)}}
|
|
@@ -6,17 +6,21 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
7
|
local ____entity = require("functions.entity")
|
|
8
8
|
local getSlots = ____entity.getSlots
|
|
9
|
-
local
|
|
10
|
-
local
|
|
9
|
+
local ____postSlotDestroyed = require("callbacks.subscriptions.postSlotDestroyed")
|
|
10
|
+
local postSlotDestroyedFire = ____postSlotDestroyed.postSlotDestroyedFire
|
|
11
|
+
local postSlotDestroyedHasSubscriptions = ____postSlotDestroyed.postSlotDestroyedHasSubscriptions
|
|
12
|
+
local ____postSlotRender = require("callbacks.subscriptions.postSlotRender")
|
|
13
|
+
local postSlotRenderFire = ____postSlotRender.postSlotRenderFire
|
|
14
|
+
local postSlotRenderHasSubscriptions = ____postSlotRender.postSlotRenderHasSubscriptions
|
|
11
15
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
16
|
+
return postSlotRenderHasSubscriptions(nil) or postSlotDestroyedHasSubscriptions(nil)
|
|
13
17
|
end
|
|
14
18
|
function postRender(self)
|
|
15
19
|
if not hasSubscriptions(nil) then
|
|
16
20
|
return
|
|
17
21
|
end
|
|
18
22
|
for ____, slot in ipairs(getSlots(nil)) do
|
|
19
|
-
|
|
23
|
+
postSlotRenderFire(nil, slot)
|
|
20
24
|
checkSlotBroken(nil, slot)
|
|
21
25
|
end
|
|
22
26
|
end
|
|
@@ -30,7 +34,7 @@ function checkSlotBroken(self, slot)
|
|
|
30
34
|
local animation = sprite:GetAnimation()
|
|
31
35
|
if BROKEN_ANIMATIONS:has(animation) then
|
|
32
36
|
v.room.brokenSlots:add(ptrHash)
|
|
33
|
-
|
|
37
|
+
postSlotDestroyedFire(nil, slot)
|
|
34
38
|
end
|
|
35
39
|
end
|
|
36
40
|
BROKEN_ANIMATIONS = __TS__New(Set, {"Broken", "Death"})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function postTearInitLateCallbackInit(mod:
|
|
1
|
+
import { ModUpgraded } from "../types/ModUpgraded";
|
|
2
|
+
export declare function postTearInitLateCallbackInit(mod: ModUpgraded): void;
|
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
|
-
local hasSubscriptions, postTearUpdate, v
|
|
4
|
+
local hasSubscriptions, postTearUpdate, postNewRoomEarly, v
|
|
5
5
|
local ____exports = require("features.saveDataManager.exports")
|
|
6
6
|
local saveDataManager = ____exports.saveDataManager
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
7
|
+
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
8
|
+
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
9
|
+
local ____postTearInitLate = require("callbacks.subscriptions.postTearInitLate")
|
|
10
|
+
local postTearInitLateFire = ____postTearInitLate.postTearInitLateFire
|
|
11
|
+
local postTearInitLateHasSubscriptions = ____postTearInitLate.postTearInitLateHasSubscriptions
|
|
11
12
|
function hasSubscriptions(self)
|
|
12
|
-
return
|
|
13
|
+
return postTearInitLateHasSubscriptions(nil)
|
|
13
14
|
end
|
|
14
15
|
function postTearUpdate(self, tear)
|
|
15
16
|
if not hasSubscriptions(nil) then
|
|
16
17
|
return
|
|
17
18
|
end
|
|
18
|
-
local roomIndex = getRoomIndex(nil)
|
|
19
|
-
local roomVisitedCount = getRoomVisitedCount(nil)
|
|
20
|
-
if roomIndex ~= v.run.currentRoomIndex or roomVisitedCount ~= v.run.currentRoomVisitedCount then
|
|
21
|
-
v.run.currentRoomIndex = roomIndex
|
|
22
|
-
v.run.currentRoomVisitedCount = roomVisitedCount
|
|
23
|
-
v.run.firedSet:clear()
|
|
24
|
-
end
|
|
25
19
|
local index = GetPtrHash(tear)
|
|
26
20
|
if not v.run.firedSet:has(index) then
|
|
27
21
|
v.run.firedSet:add(index)
|
|
28
|
-
|
|
22
|
+
postTearInitLateFire(nil, tear)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
function postNewRoomEarly(self)
|
|
26
|
+
if not hasSubscriptions(nil) then
|
|
27
|
+
return
|
|
29
28
|
end
|
|
29
|
+
v.run.firedSet:clear()
|
|
30
30
|
end
|
|
31
|
-
v = {run = {
|
|
32
|
-
firedSet = __TS__New(Set),
|
|
33
|
-
currentRoomIndex = nil,
|
|
34
|
-
currentRoomVisitedCount = nil
|
|
35
|
-
}}
|
|
31
|
+
v = {run = {firedSet = __TS__New(Set)}}
|
|
36
32
|
function ____exports.postTearInitLateCallbackInit(self, mod)
|
|
37
33
|
saveDataManager(nil, "postTearInitLate", v, hasSubscriptions)
|
|
38
34
|
mod:AddCallback(ModCallbacks.MC_POST_TEAR_UPDATE, postTearUpdate)
|
|
35
|
+
mod:AddCallbackCustom(ModCallbacksCustom.MC_POST_NEW_ROOM_EARLY, postNewRoomEarly)
|
|
39
36
|
end
|
|
40
37
|
return ____exports
|
|
@@ -10,9 +10,11 @@ local ____player = require("functions.player")
|
|
|
10
10
|
local getPlayerIndex = ____player.getPlayerIndex
|
|
11
11
|
local ____ModCallbacksCustom = require("types.ModCallbacksCustom")
|
|
12
12
|
local ModCallbacksCustom = ____ModCallbacksCustom.ModCallbacksCustom
|
|
13
|
-
local
|
|
13
|
+
local ____postTransformation = require("callbacks.subscriptions.postTransformation")
|
|
14
|
+
local postTransformationFire = ____postTransformation.postTransformationFire
|
|
15
|
+
local postTransformationHasSubscriptions = ____postTransformation.postTransformationHasSubscriptions
|
|
14
16
|
function hasSubscriptions(self)
|
|
15
|
-
return
|
|
17
|
+
return postTransformationHasSubscriptions(nil)
|
|
16
18
|
end
|
|
17
19
|
function postPlayerUpdateReorderedPlayer(self, player)
|
|
18
20
|
if not hasSubscriptions(nil) then
|
|
@@ -31,7 +33,7 @@ function postPlayerUpdateReorderedPlayer(self, player)
|
|
|
31
33
|
local storedForm = transformations[playerForm + 1]
|
|
32
34
|
if hasForm ~= storedForm then
|
|
33
35
|
transformations[playerForm + 1] = hasForm
|
|
34
|
-
|
|
36
|
+
postTransformationFire(nil, player, playerForm, hasForm)
|
|
35
37
|
end
|
|
36
38
|
playerForm = playerForm + 1
|
|
37
39
|
end
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
2
|
local ____exports = {}
|
|
3
3
|
local hasSubscriptions, useItemGlowingHourGlass, postGameStartedVanilla, postNewLevelVanilla, postNewRoomVanilla, recordCurrentStage, currentStage, currentStageType, usedGlowingHourGlass, forceNewLevel, forceNewRoom
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local
|
|
4
|
+
local ____postGameStartedReordered = require("callbacks.subscriptions.postGameStartedReordered")
|
|
5
|
+
local postGameStartedReorderedFire = ____postGameStartedReordered.postGameStartedReorderedFire
|
|
6
|
+
local postGameStartedReorderedHasSubscriptions = ____postGameStartedReordered.postGameStartedReorderedHasSubscriptions
|
|
7
|
+
local ____postNewLevelReordered = require("callbacks.subscriptions.postNewLevelReordered")
|
|
8
|
+
local postNewLevelReorderedFire = ____postNewLevelReordered.postNewLevelReorderedFire
|
|
9
|
+
local postNewLevelReorderedHasSubscriptions = ____postNewLevelReordered.postNewLevelReorderedHasSubscriptions
|
|
10
|
+
local ____postNewRoomReordered = require("callbacks.subscriptions.postNewRoomReordered")
|
|
11
|
+
local postNewRoomReorderedFire = ____postNewRoomReordered.postNewRoomReorderedFire
|
|
12
|
+
local postNewRoomReorderedHasSubscriptions = ____postNewRoomReordered.postNewRoomReorderedHasSubscriptions
|
|
7
13
|
function hasSubscriptions(self)
|
|
8
|
-
return
|
|
14
|
+
return postGameStartedReorderedHasSubscriptions(nil) or postNewLevelReorderedHasSubscriptions(nil) or postNewRoomReorderedHasSubscriptions(nil)
|
|
9
15
|
end
|
|
10
16
|
function useItemGlowingHourGlass(self)
|
|
11
17
|
usedGlowingHourGlass = true
|
|
@@ -14,10 +20,10 @@ function postGameStartedVanilla(self, isContinued)
|
|
|
14
20
|
if not hasSubscriptions(nil) then
|
|
15
21
|
return
|
|
16
22
|
end
|
|
17
|
-
|
|
23
|
+
postGameStartedReorderedFire(nil, isContinued)
|
|
18
24
|
recordCurrentStage(nil)
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
postNewLevelReorderedFire(nil)
|
|
26
|
+
postNewRoomReorderedFire(nil)
|
|
21
27
|
end
|
|
22
28
|
function postNewLevelVanilla(self)
|
|
23
29
|
if not hasSubscriptions(nil) then
|
|
@@ -30,8 +36,8 @@ function postNewLevelVanilla(self)
|
|
|
30
36
|
end
|
|
31
37
|
forceNewLevel = false
|
|
32
38
|
recordCurrentStage(nil)
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
postNewLevelReorderedFire(nil)
|
|
40
|
+
postNewRoomReorderedFire(nil)
|
|
35
41
|
end
|
|
36
42
|
function postNewRoomVanilla(self)
|
|
37
43
|
if not hasSubscriptions(nil) then
|
|
@@ -46,8 +52,8 @@ function postNewRoomVanilla(self)
|
|
|
46
52
|
usedGlowingHourGlass = false
|
|
47
53
|
if currentStage ~= stage or currentStageType ~= stageType then
|
|
48
54
|
recordCurrentStage(nil)
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
postNewLevelReorderedFire(nil)
|
|
56
|
+
postNewRoomReorderedFire(nil)
|
|
51
57
|
return
|
|
52
58
|
end
|
|
53
59
|
end
|
|
@@ -55,7 +61,7 @@ function postNewRoomVanilla(self)
|
|
|
55
61
|
return
|
|
56
62
|
end
|
|
57
63
|
forceNewRoom = false
|
|
58
|
-
|
|
64
|
+
postNewRoomReorderedFire(nil)
|
|
59
65
|
end
|
|
60
66
|
function recordCurrentStage(self)
|
|
61
67
|
local game = Game()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostBombInitLateCallbackType = (bomb: EntityBomb) => void;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
3
|
+
export declare function postBombInitLateHasSubscriptions(): boolean;
|
|
4
|
+
export declare function postBombInitLateRegister(callback: PostBombInitLateCallbackType, bombVariant?: BombVariant | int): void;
|
|
5
|
+
export declare function postBombInitLateFire(bomb: EntityBomb): void;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local subscriptions = {}
|
|
5
|
-
function ____exports.
|
|
5
|
+
function ____exports.postBombInitLateHasSubscriptions(self)
|
|
6
6
|
return #subscriptions > 0
|
|
7
7
|
end
|
|
8
|
-
function ____exports.
|
|
8
|
+
function ____exports.postBombInitLateRegister(self, callback, bombVariant)
|
|
9
9
|
__TS__ArrayPush(subscriptions, {callback, bombVariant})
|
|
10
10
|
end
|
|
11
|
-
function ____exports.
|
|
11
|
+
function ____exports.postBombInitLateFire(self, bomb)
|
|
12
12
|
local bombVariant
|
|
13
13
|
local callback
|
|
14
14
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
export declare type PostCursedTeleportCallbackType = (player: EntityPlayer) => void;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
3
|
+
export declare function postCursedTeleportHasSubscriptions(): boolean;
|
|
4
|
+
export declare function postCursedTeleportRegister(callback: PostCursedTeleportCallbackType): void;
|
|
5
|
+
export declare function postCursedTeleportFire(player: EntityPlayer): void;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
require("lualib_bundle");
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local subscriptions = {}
|
|
5
|
-
function ____exports.
|
|
5
|
+
function ____exports.postCursedTeleportHasSubscriptions(self)
|
|
6
6
|
return #subscriptions > 0
|
|
7
7
|
end
|
|
8
|
-
function ____exports.
|
|
8
|
+
function ____exports.postCursedTeleportRegister(self, callback)
|
|
9
9
|
__TS__ArrayPush(subscriptions, {callback})
|
|
10
10
|
end
|
|
11
|
-
function ____exports.
|
|
11
|
+
function ____exports.postCursedTeleportFire(self, player)
|
|
12
12
|
local callback
|
|
13
13
|
for ____, ____value in ipairs(subscriptions) do
|
|
14
14
|
callback = ____value[1]
|