isaacscript-common 25.3.0 → 25.5.0
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 +18 -2
- package/dist/isaacscript-common.lua +793 -684
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
- package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
- package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
- package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
- package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
- package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
- package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
- package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
- package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +17 -26
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
- package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.lua +21 -20
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +20 -19
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
- package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
- package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
- package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/PonyDetection.lua +8 -7
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +7 -6
- package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
- package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
- package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +9 -8
- package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
- package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
- package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
- package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/StageHistory.lua +7 -6
- package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
- package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
- package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
- package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
- package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
- package/dist/src/classes/features/other/customStages/v.lua +16 -0
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
- package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
- package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
- package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/functions/utils.d.ts +6 -0
- package/dist/src/functions/utils.d.ts.map +1 -1
- package/dist/src/functions/utils.lua +17 -0
- package/dist/src/interfaces/SaveData.d.ts.map +1 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -0
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/dist/src/shouldFire.lua +5 -0
- package/package.json +2 -2
- package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
- package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
- package/src/classes/callbacks/PostBombInitLate.ts +9 -7
- package/src/classes/callbacks/PostBoneSwing.ts +9 -7
- package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
- package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
- package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
- package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
- package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
- package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
- package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
- package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
- package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
- package/src/classes/callbacks/PostItemDischarge.ts +21 -27
- package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
- package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
- package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
- package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
- package/src/classes/callbacks/PostPickupCollect.ts +9 -7
- package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
- package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
- package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
- package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
- package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
- package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
- package/src/classes/callbacks/PostPurchase.ts +11 -9
- package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
- package/src/classes/callbacks/PostSacrifice.ts +9 -7
- package/src/classes/callbacks/PostTearInitLate.ts +9 -7
- package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
- package/src/classes/callbacks/PostTransformation.ts +12 -10
- package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
- package/src/classes/callbacks/PreNewLevel.ts +9 -7
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
- package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
- package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
- package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
- package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
- package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
- package/src/classes/features/other/CustomItemPools.ts +9 -7
- package/src/classes/features/other/CustomPickups.ts +0 -1
- package/src/classes/features/other/CustomStages.ts +16 -44
- package/src/classes/features/other/CustomTrapdoors.ts +53 -54
- package/src/classes/features/other/DisableAllSound.ts +13 -11
- package/src/classes/features/other/DisableInputs.ts +39 -37
- package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
- package/src/classes/features/other/NoSirenSteal.ts +11 -9
- package/src/classes/features/other/Pause.ts +21 -19
- package/src/classes/features/other/PersistentEntities.ts +33 -31
- package/src/classes/features/other/PickupIndexCreation.ts +35 -33
- package/src/classes/features/other/PlayerInventory.ts +14 -12
- package/src/classes/features/other/PonyDetection.ts +11 -9
- package/src/classes/features/other/PressInput.ts +11 -9
- package/src/classes/features/other/PreventChildEntities.ts +10 -8
- package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
- package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
- package/src/classes/features/other/RoomClearFrame.ts +12 -10
- package/src/classes/features/other/RoomHistory.ts +13 -11
- package/src/classes/features/other/RunInNFrames.ts +19 -17
- package/src/classes/features/other/RunNextRoom.ts +10 -8
- package/src/classes/features/other/SaveDataManager.ts +11 -0
- package/src/classes/features/other/StageHistory.ts +11 -9
- package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
- package/src/classes/features/other/customStages/streakText.ts +14 -44
- package/src/classes/features/other/customStages/v.ts +31 -0
- package/src/classes/features/other/customStages/versusScreen.ts +2 -10
- package/src/enums/ModCallbackCustom.ts +6 -0
- package/src/functions/utils.ts +23 -0
- package/src/interfaces/SaveData.ts +0 -1
- package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
- package/src/shouldFire.ts +10 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
2
3
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
4
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local ____exports = {}
|
|
6
6
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
7
7
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
@@ -14,22 +14,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
14
14
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
15
15
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
16
16
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
17
|
+
local v = {run = {playersCharacterMap = __TS__New(
|
|
18
|
+
DefaultMap,
|
|
19
|
+
function(____, character) return character end
|
|
20
|
+
)}}
|
|
17
21
|
____exports.PostPlayerChangeType = __TS__Class()
|
|
18
22
|
local PostPlayerChangeType = ____exports.PostPlayerChangeType
|
|
19
23
|
PostPlayerChangeType.name = "PostPlayerChangeType"
|
|
20
24
|
__TS__ClassExtends(PostPlayerChangeType, CustomCallback)
|
|
21
25
|
function PostPlayerChangeType.prototype.____constructor(self)
|
|
22
26
|
CustomCallback.prototype.____constructor(self)
|
|
23
|
-
self.v =
|
|
24
|
-
DefaultMap,
|
|
25
|
-
function(____, character) return character end
|
|
26
|
-
)}}
|
|
27
|
+
self.v = v
|
|
27
28
|
self.shouldFire = shouldFirePlayer
|
|
28
29
|
self.postPEffectReordered = function(____, player)
|
|
29
30
|
local character = player:GetPlayerType()
|
|
30
|
-
local storedCharacter = defaultMapGetPlayer(nil,
|
|
31
|
+
local storedCharacter = defaultMapGetPlayer(nil, v.run.playersCharacterMap, player, character)
|
|
31
32
|
if character ~= storedCharacter then
|
|
32
|
-
mapSetPlayer(nil,
|
|
33
|
+
mapSetPlayer(nil, v.run.playersCharacterMap, player, character)
|
|
33
34
|
self:fire(player, storedCharacter, character)
|
|
34
35
|
end
|
|
35
36
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPlayerFatalDamage.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerFatalDamage.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAWlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostPlayerFatalDamage.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerFatalDamage.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAWlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAS3D,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,wBAAwB,CAAC;IACnF,CAAC;;YANf,oEAAoE;;;MAMhD;;IAetB,UAAmB,UAAU,0BAAoB;IAEjD;;;OAGG;IAGH,OAAO,CAAC,eAAe,CA8BrB;IAGF,OAAO,CAAC,mBAAmB,CAyCzB;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Map = ____lualib.Map
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
8
|
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
@@ -27,13 +27,14 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
27
27
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
28
28
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
29
29
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
30
|
+
local v = {run = {playersLastDamageGameFrame = __TS__New(Map)}}
|
|
30
31
|
____exports.PostPlayerFatalDamage = __TS__Class()
|
|
31
32
|
local PostPlayerFatalDamage = ____exports.PostPlayerFatalDamage
|
|
32
33
|
PostPlayerFatalDamage.name = "PostPlayerFatalDamage"
|
|
33
34
|
__TS__ClassExtends(PostPlayerFatalDamage, CustomCallback)
|
|
34
35
|
function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
35
36
|
CustomCallback.prototype.____constructor(self)
|
|
36
|
-
self.v =
|
|
37
|
+
self.v = v
|
|
37
38
|
self.shouldFire = shouldFirePlayer
|
|
38
39
|
self.preUseItemBible = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
39
40
|
if not inBossRoomOf(nil, BossID.SATAN) then
|
|
@@ -59,8 +60,8 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
|
59
60
|
return nil
|
|
60
61
|
end
|
|
61
62
|
local gameFrameCount = game:GetFrameCount()
|
|
62
|
-
local lastDamageGameFrame = mapGetPlayer(nil,
|
|
63
|
-
mapSetPlayer(nil,
|
|
63
|
+
local lastDamageGameFrame = mapGetPlayer(nil, v.run.playersLastDamageGameFrame, player)
|
|
64
|
+
mapSetPlayer(nil, v.run.playersLastDamageGameFrame, player, gameFrameCount)
|
|
64
65
|
if willPlayerRevive(nil, player) then
|
|
65
66
|
return nil
|
|
66
67
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPlayerInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerInitLate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAKlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostPlayerInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerInitLate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAKlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,qBAAqB,CAAC;IAC7E,CAAC;;;;MAAK;;IAatB,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,0BAA0B,CAKhC;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Set = ____lualib.Set
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
8
8
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
@@ -13,17 +13,18 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
13
13
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
14
14
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
15
15
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
16
|
+
local v = {run = {playersFiredSet = __TS__New(Set)}}
|
|
16
17
|
____exports.PostPlayerInitLate = __TS__Class()
|
|
17
18
|
local PostPlayerInitLate = ____exports.PostPlayerInitLate
|
|
18
19
|
PostPlayerInitLate.name = "PostPlayerInitLate"
|
|
19
20
|
__TS__ClassExtends(PostPlayerInitLate, CustomCallback)
|
|
20
21
|
function PostPlayerInitLate.prototype.____constructor(self)
|
|
21
22
|
CustomCallback.prototype.____constructor(self)
|
|
22
|
-
self.v =
|
|
23
|
+
self.v = v
|
|
23
24
|
self.shouldFire = shouldFirePlayer
|
|
24
25
|
self.postPEffectUpdateReordered = function(____, player)
|
|
25
|
-
if not setHasPlayer(nil,
|
|
26
|
-
setAddPlayer(nil,
|
|
26
|
+
if not setHasPlayer(nil, v.run.playersFiredSet, player) then
|
|
27
|
+
setAddPlayer(nil, v.run.playersFiredSet, player)
|
|
27
28
|
self:fire(player)
|
|
28
29
|
end
|
|
29
30
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostProjectileInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostProjectileInitLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostProjectileInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostProjectileInitLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,yBAAyB,CAAC;IACrF,CAAC;;;;MAAK;;IAWtB,UAAmB,UAAU,8BAAwB;IAGrD,OAAO,CAAC,oBAAoB,CAM1B;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Set = ____lualib.Set
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
8
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -10,18 +10,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
10
10
|
local shouldFireProjectile = ____shouldFire.shouldFireProjectile
|
|
11
11
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
12
12
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
13
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
13
14
|
____exports.PostProjectileInitLate = __TS__Class()
|
|
14
15
|
local PostProjectileInitLate = ____exports.PostProjectileInitLate
|
|
15
16
|
PostProjectileInitLate.name = "PostProjectileInitLate"
|
|
16
17
|
__TS__ClassExtends(PostProjectileInitLate, CustomCallback)
|
|
17
18
|
function PostProjectileInitLate.prototype.____constructor(self)
|
|
18
19
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v =
|
|
20
|
+
self.v = v
|
|
20
21
|
self.shouldFire = shouldFireProjectile
|
|
21
22
|
self.postProjectileUpdate = function(____, projectile)
|
|
22
23
|
local ptrHash = GetPtrHash(projectile)
|
|
23
|
-
if not
|
|
24
|
-
|
|
24
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
25
|
+
v.room.firedSet:add(ptrHash)
|
|
25
26
|
self:fire(projectile)
|
|
26
27
|
end
|
|
27
28
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;AAUzC,qBAAa,YAAa,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjC,CAAC;;;;MAAK;;IAatB,UAAmB,UAAU,8LAG1B,OAAO,CAUR;IAGF,OAAO,CAAC,0BAA0B,CAehC;IAEF,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
2
3
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
4
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
@@ -15,13 +15,14 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
15
15
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
16
16
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
17
17
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18
|
+
local v = {room = {playersHoldingItemOnLastFrameMap = __TS__New(DefaultMap, false)}}
|
|
18
19
|
____exports.PostPurchase = __TS__Class()
|
|
19
20
|
local PostPurchase = ____exports.PostPurchase
|
|
20
21
|
PostPurchase.name = "PostPurchase"
|
|
21
22
|
__TS__ClassExtends(PostPurchase, CustomCallback)
|
|
22
23
|
function PostPurchase.prototype.____constructor(self)
|
|
23
24
|
CustomCallback.prototype.____constructor(self)
|
|
24
|
-
self.v =
|
|
25
|
+
self.v = v
|
|
25
26
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
26
27
|
local _player, pickup = table.unpack(fireArgs)
|
|
27
28
|
local callbackPickupVariant, callbackPickupSubType = table.unpack(optionalArgs)
|
|
@@ -29,8 +30,8 @@ function PostPurchase.prototype.____constructor(self)
|
|
|
29
30
|
end
|
|
30
31
|
self.postPEffectUpdateReordered = function(____, player)
|
|
31
32
|
local isHoldingItem = player:IsHoldingItem()
|
|
32
|
-
local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil,
|
|
33
|
-
mapSetPlayer(nil,
|
|
33
|
+
local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player)
|
|
34
|
+
mapSetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player, isHoldingItem)
|
|
34
35
|
if not wasHoldingItemOnLastFrame and isHoldingItem then
|
|
35
36
|
self:playerPickedUpNewItem(player)
|
|
36
37
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAQnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzC,CAAC;;;;MAAK;;IAetB,UAAmB,UAAU,aACjB,SAAS,CAAC,CAAC,gBACP,aAAa,CAAC,CAAC,KAC5B,OAAO,CAKR;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,oBAAoB,CAK1B;CACH"}
|
|
@@ -10,13 +10,14 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
|
10
10
|
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
11
11
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
12
12
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
13
|
+
local v = {room = {cleared = false}}
|
|
13
14
|
____exports.PostRoomClearChanged = __TS__Class()
|
|
14
15
|
local PostRoomClearChanged = ____exports.PostRoomClearChanged
|
|
15
16
|
PostRoomClearChanged.name = "PostRoomClearChanged"
|
|
16
17
|
__TS__ClassExtends(PostRoomClearChanged, CustomCallback)
|
|
17
18
|
function PostRoomClearChanged.prototype.____constructor(self)
|
|
18
19
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v =
|
|
20
|
+
self.v = v
|
|
20
21
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
21
22
|
local roomClear = table.unpack(fireArgs)
|
|
22
23
|
local callbackRoomClear = table.unpack(optionalArgs)
|
|
@@ -25,15 +26,15 @@ function PostRoomClearChanged.prototype.____constructor(self)
|
|
|
25
26
|
self.postUpdate = function()
|
|
26
27
|
local room = game:GetRoom()
|
|
27
28
|
local roomClear = room:IsClear()
|
|
28
|
-
if roomClear ~=
|
|
29
|
-
|
|
29
|
+
if roomClear ~= v.room.cleared then
|
|
30
|
+
v.room.cleared = roomClear
|
|
30
31
|
self:fire(roomClear)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
self.postNewRoomReordered = function()
|
|
34
35
|
local room = game:GetRoom()
|
|
35
36
|
local roomClear = room:IsClear()
|
|
36
|
-
|
|
37
|
+
v.room.cleared = roomClear
|
|
37
38
|
end
|
|
38
39
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
|
|
39
40
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostSacrifice.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostSacrifice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostSacrifice.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostSacrifice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,aAAc,SAAQ,cAAc,CAAC,iBAAiB,CAAC,cAAc,CAAC;IACjE,CAAC;;;;MAAK;;IAUtB,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,mBAAmB,CAiBzB;CACH"}
|
|
@@ -15,22 +15,23 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
15
15
|
local shouldFirePlayer = ____shouldFire.shouldFirePlayer
|
|
16
16
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
17
17
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
18
|
+
local v = {level = {numSacrifices = 0}}
|
|
18
19
|
____exports.PostSacrifice = __TS__Class()
|
|
19
20
|
local PostSacrifice = ____exports.PostSacrifice
|
|
20
21
|
PostSacrifice.name = "PostSacrifice"
|
|
21
22
|
__TS__ClassExtends(PostSacrifice, CustomCallback)
|
|
22
23
|
function PostSacrifice.prototype.____constructor(self)
|
|
23
24
|
CustomCallback.prototype.____constructor(self)
|
|
24
|
-
self.v =
|
|
25
|
+
self.v = v
|
|
25
26
|
self.shouldFire = shouldFirePlayer
|
|
26
27
|
self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
|
|
27
28
|
local room = game:GetRoom()
|
|
28
29
|
local roomType = room:GetType()
|
|
29
30
|
local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
|
|
30
31
|
if roomType == RoomType.SACRIFICE and isSpikeDamage then
|
|
31
|
-
local
|
|
32
|
-
|
|
33
|
-
self:fire(player,
|
|
32
|
+
local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
|
|
33
|
+
____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
|
|
34
|
+
self:fire(player, v.level.numSacrifices)
|
|
34
35
|
end
|
|
35
36
|
return nil
|
|
36
37
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTearInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTearInitLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostTearInitLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTearInitLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,mBAAmB,CAAC;IACzE,CAAC;;;;MAAK;;IAWtB,UAAmB,UAAU,wBAAkB;IAG/C,OAAO,CAAC,cAAc,CAMpB;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Set = ____lualib.Set
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
8
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -10,18 +10,19 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
10
10
|
local shouldFireTear = ____shouldFire.shouldFireTear
|
|
11
11
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
12
12
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
13
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
13
14
|
____exports.PostTearInitLate = __TS__Class()
|
|
14
15
|
local PostTearInitLate = ____exports.PostTearInitLate
|
|
15
16
|
PostTearInitLate.name = "PostTearInitLate"
|
|
16
17
|
__TS__ClassExtends(PostTearInitLate, CustomCallback)
|
|
17
18
|
function PostTearInitLate.prototype.____constructor(self)
|
|
18
19
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v =
|
|
20
|
+
self.v = v
|
|
20
21
|
self.shouldFire = shouldFireTear
|
|
21
22
|
self.postTearUpdate = function(____, tear)
|
|
22
23
|
local ptrHash = GetPtrHash(tear)
|
|
23
|
-
if not
|
|
24
|
-
|
|
24
|
+
if not v.room.firedSet:has(ptrHash) then
|
|
25
|
+
v.room.firedSet:add(ptrHash)
|
|
25
26
|
self:fire(tear)
|
|
26
27
|
end
|
|
27
28
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTearInitVeryLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTearInitVeryLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostTearInitVeryLate.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTearInitVeryLate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,wBAAwB,CAAC;IAClF,CAAC;;;;MAAK;;IAWtB,UAAmB,UAAU,wBAAkB;IAG/C,OAAO,CAAC,cAAc,CAWpB;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Set = ____lualib.Set
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
8
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
@@ -10,21 +10,22 @@ local ____shouldFire = require("src.shouldFire")
|
|
|
10
10
|
local shouldFireTear = ____shouldFire.shouldFireTear
|
|
11
11
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
12
12
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
13
|
+
local v = {room = {firedSet = __TS__New(Set)}}
|
|
13
14
|
____exports.PostTearInitVeryLate = __TS__Class()
|
|
14
15
|
local PostTearInitVeryLate = ____exports.PostTearInitVeryLate
|
|
15
16
|
PostTearInitVeryLate.name = "PostTearInitVeryLate"
|
|
16
17
|
__TS__ClassExtends(PostTearInitVeryLate, CustomCallback)
|
|
17
18
|
function PostTearInitVeryLate.prototype.____constructor(self)
|
|
18
19
|
CustomCallback.prototype.____constructor(self)
|
|
19
|
-
self.v =
|
|
20
|
+
self.v = v
|
|
20
21
|
self.shouldFire = shouldFireTear
|
|
21
22
|
self.postTearUpdate = function(____, tear)
|
|
22
23
|
if tear.FrameCount == 0 then
|
|
23
24
|
return
|
|
24
25
|
end
|
|
25
26
|
local index = GetPtrHash(tear)
|
|
26
|
-
if not
|
|
27
|
-
|
|
27
|
+
if not v.room.firedSet:has(index) then
|
|
28
|
+
v.room.firedSet:add(index)
|
|
28
29
|
self:fire(tear)
|
|
29
30
|
end
|
|
30
31
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAY/C,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACvC,CAAC;;;;MAAK;;IAatB,UAAmB,UAAU,6FAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAOR;IAGF,OAAO,CAAC,0BAA0B,CAkBhC;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Map = ____lualib.Map
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
8
8
|
local PLAYER_FORM_VALUES = ____cachedEnumValues.PLAYER_FORM_VALUES
|
|
@@ -14,23 +14,24 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
14
14
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
15
15
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
16
16
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
17
|
+
local v = {run = {playersTransformationsMap = __TS__New(
|
|
18
|
+
DefaultMap,
|
|
19
|
+
function() return __TS__New(Map) end
|
|
20
|
+
)}}
|
|
17
21
|
____exports.PostTransformation = __TS__Class()
|
|
18
22
|
local PostTransformation = ____exports.PostTransformation
|
|
19
23
|
PostTransformation.name = "PostTransformation"
|
|
20
24
|
__TS__ClassExtends(PostTransformation, CustomCallback)
|
|
21
25
|
function PostTransformation.prototype.____constructor(self)
|
|
22
26
|
CustomCallback.prototype.____constructor(self)
|
|
23
|
-
self.v =
|
|
24
|
-
DefaultMap,
|
|
25
|
-
function() return __TS__New(Map) end
|
|
26
|
-
)}}
|
|
27
|
+
self.v = v
|
|
27
28
|
self.shouldFire = function(____, fireArgs, optionalArgs)
|
|
28
29
|
local _player, playerForm = table.unpack(fireArgs)
|
|
29
30
|
local callbackPlayerForm = table.unpack(optionalArgs)
|
|
30
31
|
return callbackPlayerForm == nil or callbackPlayerForm == playerForm
|
|
31
32
|
end
|
|
32
33
|
self.postPEffectUpdateReordered = function(____, player)
|
|
33
|
-
local playerTransformationsMap = defaultMapGetPlayer(nil,
|
|
34
|
+
local playerTransformationsMap = defaultMapGetPlayer(nil, v.run.playersTransformationsMap, player)
|
|
34
35
|
for ____, playerForm in ipairs(PLAYER_FORM_VALUES) do
|
|
35
36
|
local hasForm = player:HasPlayerForm(playerForm)
|
|
36
37
|
local storedForm = playerTransformationsMap:get(playerForm)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTrinketBreak.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTrinketBreak.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostTrinketBreak.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTrinketBreak.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAgB3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACxE,CAAC;;;;MAAK;;IActB,UAAmB,UAAU,+BAAyB;IAGtD,OAAO,CAAC,mBAAmB,CAqCzB;IAGF,OAAO,CAAC,0BAA0B,CAYhC;CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Map = ____lualib.Map
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
5
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
6
6
|
local ____exports = {}
|
|
7
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
8
8
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
@@ -19,19 +19,20 @@ local DefaultMap = ____DefaultMap.DefaultMap
|
|
|
19
19
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
20
20
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
21
21
|
local TRINKETS_THAT_CAN_BREAK = {TrinketType.WISH_BONE, TrinketType.WALNUT}
|
|
22
|
+
local v = {run = {playersTrinketMap = __TS__New(
|
|
23
|
+
DefaultMap,
|
|
24
|
+
function() return __TS__New(Map) end
|
|
25
|
+
)}}
|
|
22
26
|
____exports.PostTrinketBreak = __TS__Class()
|
|
23
27
|
local PostTrinketBreak = ____exports.PostTrinketBreak
|
|
24
28
|
PostTrinketBreak.name = "PostTrinketBreak"
|
|
25
29
|
__TS__ClassExtends(PostTrinketBreak, CustomCallback)
|
|
26
30
|
function PostTrinketBreak.prototype.____constructor(self)
|
|
27
31
|
CustomCallback.prototype.____constructor(self)
|
|
28
|
-
self.v =
|
|
29
|
-
DefaultMap,
|
|
30
|
-
function() return __TS__New(Map) end
|
|
31
|
-
)}}
|
|
32
|
+
self.v = v
|
|
32
33
|
self.shouldFire = shouldFireTrinketType
|
|
33
34
|
self.entityTakeDmgPlayer = function(____, player, _amount, _damageFlags, _source, _countdownFrames)
|
|
34
|
-
local trinketMap = defaultMapGetPlayer(nil,
|
|
35
|
+
local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
|
|
35
36
|
for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
|
|
36
37
|
do
|
|
37
38
|
local numTrinketsHeld = player:GetTrinketMultiplier(trinketType)
|
|
@@ -54,7 +55,7 @@ function PostTrinketBreak.prototype.____constructor(self)
|
|
|
54
55
|
return nil
|
|
55
56
|
end
|
|
56
57
|
self.postPEffectUpdateReordered = function(____, player)
|
|
57
|
-
local trinketMap = defaultMapGetPlayer(nil,
|
|
58
|
+
local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
|
|
58
59
|
for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
|
|
59
60
|
local numTrinkets = player:GetTrinketMultiplier(trinketType)
|
|
60
61
|
if numTrinkets == 0 then
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreNewLevel.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreNewLevel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"PreNewLevel.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreNewLevel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D,qBAAa,WAAY,SAAQ,cAAc,CAAC,iBAAiB,CAAC,aAAa,CAAC;IAC9D,CAAC;;;;MAAK;;IAYtB,OAAO,CAAC,gBAAgB,CAqBtB;CACH"}
|
|
@@ -14,16 +14,17 @@ local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
|
14
14
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
15
15
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
16
16
|
local TRAVELING_TO_NEXT_FLOOR_ANIMATIONS = __TS__New(ReadonlySet, {"Trapdoor", "LightTravel"})
|
|
17
|
+
local v = {run = {firedOnStage = nil}}
|
|
17
18
|
____exports.PreNewLevel = __TS__Class()
|
|
18
19
|
local PreNewLevel = ____exports.PreNewLevel
|
|
19
20
|
PreNewLevel.name = "PreNewLevel"
|
|
20
21
|
__TS__ClassExtends(PreNewLevel, CustomCallback)
|
|
21
22
|
function PreNewLevel.prototype.____constructor(self)
|
|
22
23
|
CustomCallback.prototype.____constructor(self)
|
|
23
|
-
self.v =
|
|
24
|
+
self.v = v
|
|
24
25
|
self.postPlayerRender = function(____, player)
|
|
25
26
|
local effectiveStage = getEffectiveStage(nil)
|
|
26
|
-
if effectiveStage ==
|
|
27
|
+
if effectiveStage == v.run.firedOnStage then
|
|
27
28
|
return
|
|
28
29
|
end
|
|
29
30
|
local sprite = player:GetSprite()
|
|
@@ -34,7 +35,7 @@ function PreNewLevel.prototype.____constructor(self)
|
|
|
34
35
|
local frame = sprite:GetFrame()
|
|
35
36
|
local finalFrame = getLastFrameOfAnimation(nil, sprite)
|
|
36
37
|
if frame == finalFrame then
|
|
37
|
-
|
|
38
|
+
v.run.firedOnStage = effectiveStage
|
|
38
39
|
self:fire(player)
|
|
39
40
|
end
|
|
40
41
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomGridEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomGridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EAClB,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomGridEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomGridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EAClB,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAiBhD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,YAAY,CAAe;IA0BnC,OAAO,CAAC,0BAA0B,CA+ChC;IAGF,OAAO,CAAC,oBAAoB,CA4B1B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IAEI,qBAAqB,CAC1B,oBAAoB,EAAE,cAAc,EACpC,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,kBAAkB,CAAC,EAAE,kBAAkB,EACvC,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,EACzB,kBAAkB,iBAA4B,EAC9C,qBAAqB,SAAI,GACxB,UAAU;IA8Cb;;;;;;;;;;;;;;;;;OAiBG;IAEI,sBAAsB,CAC3B,+BAA+B,EAAE,GAAG,GAAG,MAAM,GAAG,UAAU,EAC1D,UAAU,UAAO,GAChB,UAAU,GAAG,SAAS;IAuCzB;;;;;;OAMG;IAEI,qBAAqB,IAAI,KAAK,CACnC;QAAC,UAAU,EAAE,UAAU;QAAE,IAAI,EAAE,oBAAoB;KAAC,CACrD;IAoBD;;;;;;;OAOG;IAEI,uBAAuB,CAC5B,qBAAqB,EAAE,UAAU,GAAG,GAAG,GACtC,cAAc,GAAG,SAAS;IAyB7B;;;;;;OAMG;IAEI,kBAAkB,CAAC,qBAAqB,EAAE,UAAU,GAAG,GAAG,GAAG,OAAO;CAM5E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
-
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
2
|
local Map = ____lualib.Map
|
|
5
3
|
local __TS__New = ____lualib.__TS__New
|
|
6
4
|
local Set = ____lualib.Set
|
|
5
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
6
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
7
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
8
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
9
9
|
local ____exports = {}
|
|
@@ -35,26 +35,27 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
35
35
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
36
36
|
local ____Feature = require("src.classes.private.Feature")
|
|
37
37
|
local Feature = ____Feature.Feature
|
|
38
|
+
local v = {
|
|
39
|
+
level = {customGridEntities = __TS__New(
|
|
40
|
+
DefaultMap,
|
|
41
|
+
function() return __TS__New(Map) end
|
|
42
|
+
)},
|
|
43
|
+
room = {
|
|
44
|
+
genericPropPtrHashes = __TS__New(Set),
|
|
45
|
+
manuallyUsingShovel = false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
38
48
|
____exports.CustomGridEntities = __TS__Class()
|
|
39
49
|
local CustomGridEntities = ____exports.CustomGridEntities
|
|
40
50
|
CustomGridEntities.name = "CustomGridEntities"
|
|
41
51
|
__TS__ClassExtends(CustomGridEntities, Feature)
|
|
42
52
|
function CustomGridEntities.prototype.____constructor(self, runInNFrames)
|
|
43
53
|
Feature.prototype.____constructor(self)
|
|
44
|
-
self.v =
|
|
45
|
-
level = {customGridEntities = __TS__New(
|
|
46
|
-
DefaultMap,
|
|
47
|
-
function() return __TS__New(Map) end
|
|
48
|
-
)},
|
|
49
|
-
room = {
|
|
50
|
-
genericPropPtrHashes = __TS__New(Set),
|
|
51
|
-
manuallyUsingShovel = false
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
+
self.v = v
|
|
54
55
|
self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
|
|
55
56
|
local room = game:GetRoom()
|
|
56
57
|
local roomListIndex = getRoomListIndex(nil)
|
|
57
|
-
local roomCustomGridEntities =
|
|
58
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
58
59
|
if roomCustomGridEntities == nil then
|
|
59
60
|
return nil
|
|
60
61
|
end
|
|
@@ -73,15 +74,15 @@ function CustomGridEntities.prototype.____constructor(self, runInNFrames)
|
|
|
73
74
|
if futurePlayer == nil then
|
|
74
75
|
return
|
|
75
76
|
end
|
|
76
|
-
|
|
77
|
+
v.room.manuallyUsingShovel = true
|
|
77
78
|
futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
|
|
78
|
-
|
|
79
|
+
v.room.manuallyUsingShovel = false
|
|
79
80
|
end)
|
|
80
81
|
return true
|
|
81
82
|
end
|
|
82
83
|
self.postNewRoomReordered = function()
|
|
83
84
|
local roomListIndex = getRoomListIndex(nil)
|
|
84
|
-
local roomCustomGridEntities =
|
|
85
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
85
86
|
if roomCustomGridEntities == nil then
|
|
86
87
|
return
|
|
87
88
|
end
|
|
@@ -141,7 +142,7 @@ function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityType
|
|
|
141
142
|
defaultAnimation = defaultAnimation,
|
|
142
143
|
gridCollisionClass = gridCollisionClass
|
|
143
144
|
}
|
|
144
|
-
local roomCustomGridEntities =
|
|
145
|
+
local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
|
|
145
146
|
roomCustomGridEntities:set(gridIndex, customGridEntityData)
|
|
146
147
|
return customGridEntity
|
|
147
148
|
end
|
|
@@ -170,7 +171,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
|
|
|
170
171
|
decoration = gridIndexOrPositionOrGridEntity
|
|
171
172
|
end
|
|
172
173
|
local gridIndex = decoration:GetGridIndex()
|
|
173
|
-
local roomCustomGridEntities =
|
|
174
|
+
local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
|
|
174
175
|
local exists = roomCustomGridEntities:has(gridIndex)
|
|
175
176
|
if not exists then
|
|
176
177
|
return nil
|
|
@@ -181,7 +182,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
|
|
|
181
182
|
end
|
|
182
183
|
function CustomGridEntities.prototype.getCustomGridEntities(self)
|
|
183
184
|
local roomListIndex = getRoomListIndex(nil)
|
|
184
|
-
local roomCustomGridEntities =
|
|
185
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
185
186
|
if roomCustomGridEntities == nil then
|
|
186
187
|
return {}
|
|
187
188
|
end
|
|
@@ -203,7 +204,7 @@ function CustomGridEntities.prototype.getCustomGridEntityType(self, gridEntityOr
|
|
|
203
204
|
end
|
|
204
205
|
local gridIndex = isNumber(nil, gridEntityOrGridIndex) and gridEntityOrGridIndex or gridEntityOrGridIndex:GetGridIndex()
|
|
205
206
|
local roomListIndex = getRoomListIndex(nil)
|
|
206
|
-
local roomCustomGridEntities =
|
|
207
|
+
local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
|
|
207
208
|
if roomCustomGridEntities == nil then
|
|
208
209
|
return nil
|
|
209
210
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;
|
|
1
|
+
{"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;AAUD,qBAAa,YAAa,SAAQ,OAAO;IACvB,CAAC;;;;;;MAAK;IAEtB,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAGjC,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAkC5B,OAAO,CAAC,UAAU,CAQhB;IAIF,OAAO,CAAC,qBAAqB,CAM3B;IAGF,OAAO,CAAC,oBAAoB,CAO1B;IAGF,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,4BAA4B;IA0CpC,OAAO,CAAC,qBAAqB,CAK3B;IAGF,OAAO,CAAC,eAAe,CAErB;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAmC1B,OAAO,CAAC,eAAe;CASxB"}
|