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,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 __TS__Iterator = ____lualib.__TS__Iterator
|
|
7
7
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
8
8
|
local Set = ____lualib.Set
|
|
@@ -17,18 +17,19 @@ local getMoveActions = ____input.getMoveActions
|
|
|
17
17
|
local getShootActions = ____input.getShootActions
|
|
18
18
|
local ____Feature = require("src.classes.private.Feature")
|
|
19
19
|
local Feature = ____Feature.Feature
|
|
20
|
+
local v = {run = {
|
|
21
|
+
__ignoreGlowingHourGlass = true,
|
|
22
|
+
disableInputs = __TS__New(Map),
|
|
23
|
+
enableAllInputsWithBlacklistMap = __TS__New(Map),
|
|
24
|
+
disableAllInputsWithWhitelistMap = __TS__New(Map)
|
|
25
|
+
}}
|
|
20
26
|
____exports.DisableInputs = __TS__Class()
|
|
21
27
|
local DisableInputs = ____exports.DisableInputs
|
|
22
28
|
DisableInputs.name = "DisableInputs"
|
|
23
29
|
__TS__ClassExtends(DisableInputs, Feature)
|
|
24
30
|
function DisableInputs.prototype.____constructor(self)
|
|
25
31
|
Feature.prototype.____constructor(self)
|
|
26
|
-
self.v =
|
|
27
|
-
__ignoreGlowingHourGlass = true,
|
|
28
|
-
disableInputs = __TS__New(Map),
|
|
29
|
-
enableAllInputsWithBlacklistMap = __TS__New(Map),
|
|
30
|
-
disableAllInputsWithWhitelistMap = __TS__New(Map)
|
|
31
|
-
}}
|
|
32
|
+
self.v = v
|
|
32
33
|
self.isActionPressed = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
33
34
|
self.isActionTriggered = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
|
|
34
35
|
self.getActionValue = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, false) end
|
|
@@ -42,17 +43,17 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
|
|
|
42
43
|
____booleanCallback_0 = 0
|
|
43
44
|
end
|
|
44
45
|
local disableValue = ____booleanCallback_0
|
|
45
|
-
for ____, blacklist in __TS__Iterator(
|
|
46
|
+
for ____, blacklist in __TS__Iterator(v.run.disableInputs:values()) do
|
|
46
47
|
if blacklist:has(buttonAction) then
|
|
47
48
|
return disableValue
|
|
48
49
|
end
|
|
49
50
|
end
|
|
50
|
-
for ____, whitelist in __TS__Iterator(
|
|
51
|
+
for ____, whitelist in __TS__Iterator(v.run.disableAllInputsWithWhitelistMap:values()) do
|
|
51
52
|
if not whitelist:has(buttonAction) then
|
|
52
53
|
return disableValue
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
|
-
for ____, blacklist in __TS__Iterator(
|
|
56
|
+
for ____, blacklist in __TS__Iterator(v.run.enableAllInputsWithBlacklistMap:values()) do
|
|
56
57
|
if blacklist:has(buttonAction) then
|
|
57
58
|
return disableValue
|
|
58
59
|
end
|
|
@@ -60,28 +61,28 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
|
|
|
60
61
|
return nil
|
|
61
62
|
end
|
|
62
63
|
function DisableInputs.prototype.enableAllInputs(self, key)
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
65
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
65
66
|
end
|
|
66
67
|
function DisableInputs.prototype.disableInputs(self, key, ...)
|
|
67
68
|
local buttonActions = {...}
|
|
68
69
|
local buttonActionsSet = __TS__New(Set, buttonActions)
|
|
69
|
-
|
|
70
|
+
v.run.disableInputs:set(key, buttonActionsSet)
|
|
70
71
|
end
|
|
71
72
|
function DisableInputs.prototype.disableAllInputs(self, key)
|
|
72
|
-
|
|
73
|
+
v.run.disableAllInputsWithWhitelistMap:set(
|
|
73
74
|
key,
|
|
74
75
|
__TS__New(Set)
|
|
75
76
|
)
|
|
76
|
-
|
|
77
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
77
78
|
end
|
|
78
79
|
function DisableInputs.prototype.enableAllInputsExceptFor(self, key, blacklist)
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
v.run.disableAllInputsWithWhitelistMap:delete(key)
|
|
81
|
+
v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
|
|
81
82
|
end
|
|
82
83
|
function DisableInputs.prototype.disableAllInputsExceptFor(self, key, whitelist)
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
|
|
85
|
+
v.run.enableAllInputsWithBlacklistMap:delete(key)
|
|
85
86
|
end
|
|
86
87
|
function DisableInputs.prototype.disableMovementInputs(self, key)
|
|
87
88
|
local moveActions = getMoveActions(nil)
|
|
@@ -37,58 +37,58 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
37
37
|
self.v = v
|
|
38
38
|
self.commandFunctionMap = __TS__New(Map)
|
|
39
39
|
self.postUpdate = function()
|
|
40
|
-
if
|
|
40
|
+
if v.persistent.spamBloodRights then
|
|
41
41
|
local player = Isaac.GetPlayer()
|
|
42
42
|
player:UseActiveItem(CollectibleType.BLOOD_RIGHTS)
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
self.evaluateCacheDamage = function(____, player)
|
|
46
|
-
if
|
|
47
|
-
player.Damage =
|
|
46
|
+
if v.persistent.damage then
|
|
47
|
+
player.Damage = v.persistent.damageAmount
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
self.evaluateCacheFireDelay = function(____, player)
|
|
51
|
-
if
|
|
52
|
-
player.FireDelay =
|
|
51
|
+
if v.persistent.tears then
|
|
52
|
+
player.FireDelay = v.persistent.tearsAmount
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
self.evaluateCacheSpeed = function(____, player)
|
|
56
|
-
if
|
|
57
|
-
player.MoveSpeed =
|
|
56
|
+
if v.persistent.speed then
|
|
57
|
+
player.MoveSpeed = v.persistent.speedAmount
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
self.evaluateCacheFlying = function(____, player)
|
|
61
|
-
if
|
|
61
|
+
if v.persistent.flight then
|
|
62
62
|
player.CanFly = true
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
self.postCurseEval = function(____, curses)
|
|
66
|
-
if
|
|
66
|
+
if v.persistent.disableCurses then
|
|
67
67
|
return bitFlags(nil, LevelCurse.NONE)
|
|
68
68
|
end
|
|
69
69
|
local newCurses = curses
|
|
70
|
-
if
|
|
70
|
+
if v.persistent.darkness then
|
|
71
71
|
newCurses = addFlag(nil, newCurses, LevelCurse.DARKNESS)
|
|
72
72
|
end
|
|
73
|
-
if
|
|
73
|
+
if v.persistent.labyrinth then
|
|
74
74
|
newCurses = addFlag(nil, newCurses, LevelCurse.LABYRINTH)
|
|
75
75
|
end
|
|
76
|
-
if
|
|
76
|
+
if v.persistent.lost then
|
|
77
77
|
newCurses = addFlag(nil, newCurses, LevelCurse.LOST)
|
|
78
78
|
end
|
|
79
|
-
if
|
|
79
|
+
if v.persistent.unknown then
|
|
80
80
|
newCurses = addFlag(nil, newCurses, LevelCurse.UNKNOWN)
|
|
81
81
|
end
|
|
82
|
-
if
|
|
82
|
+
if v.persistent.cursed then
|
|
83
83
|
newCurses = addFlag(nil, newCurses, LevelCurse.CURSED)
|
|
84
84
|
end
|
|
85
|
-
if
|
|
85
|
+
if v.persistent.maze then
|
|
86
86
|
newCurses = addFlag(nil, newCurses, LevelCurse.MAZE)
|
|
87
87
|
end
|
|
88
|
-
if
|
|
88
|
+
if v.persistent.blind then
|
|
89
89
|
newCurses = addFlag(nil, newCurses, LevelCurse.BLIND)
|
|
90
90
|
end
|
|
91
|
-
if
|
|
91
|
+
if v.persistent.giant then
|
|
92
92
|
newCurses = addFlag(nil, newCurses, LevelCurse.GIANT)
|
|
93
93
|
end
|
|
94
94
|
local ____temp_0
|
|
@@ -109,12 +109,12 @@ function ExtraConsoleCommands.prototype.____constructor(self)
|
|
|
109
109
|
commandFunction(nil, params)
|
|
110
110
|
end
|
|
111
111
|
self.postFireTear = function(____, tear)
|
|
112
|
-
if
|
|
112
|
+
if v.persistent.chaosCardTears then
|
|
113
113
|
tear:ChangeVariant(TearVariant.CHAOS_CARD)
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
self.entityTakeDmgPlayer = function(____, _player, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
|
|
117
|
-
if
|
|
117
|
+
if v.persistent.spamBloodRights then
|
|
118
118
|
return false
|
|
119
119
|
end
|
|
120
120
|
return nil
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAUhD,qBAAa,YAAa,SAAQ,OAAO;IAoBvC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;OASG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,GAAG,GACpB,IAAI;CAOR"}
|
|
@@ -10,13 +10,14 @@ local ____decorators = require("src.decorators")
|
|
|
10
10
|
local Exported = ____decorators.Exported
|
|
11
11
|
local ____Feature = require("src.classes.private.Feature")
|
|
12
12
|
local Feature = ____Feature.Feature
|
|
13
|
+
local v = {run = {familiarBlacklist = {}}}
|
|
13
14
|
____exports.NoSirenSteal = __TS__Class()
|
|
14
15
|
local NoSirenSteal = ____exports.NoSirenSteal
|
|
15
16
|
NoSirenSteal.name = "NoSirenSteal"
|
|
16
17
|
__TS__ClassExtends(NoSirenSteal, Feature)
|
|
17
18
|
function NoSirenSteal.prototype.____constructor(self)
|
|
18
19
|
Feature.prototype.____constructor(self)
|
|
19
|
-
self.v =
|
|
20
|
+
self.v = v
|
|
20
21
|
self.postNPCInitSirenHelper = function(____, npc)
|
|
21
22
|
self:checkReturnFamiliarToPlayer(npc)
|
|
22
23
|
end
|
|
@@ -36,7 +37,7 @@ function NoSirenSteal.prototype.checkReturnFamiliarToPlayer(self, npc)
|
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
function NoSirenSteal.prototype.blacklistEntryExists(self, incomingFamiliarVariant, incomingFamiliarSubType)
|
|
39
|
-
for ____, familiarTuple in ipairs(
|
|
40
|
+
for ____, familiarTuple in ipairs(v.run.familiarBlacklist) do
|
|
40
41
|
local familiarVariant, familiarSubType = table.unpack(familiarTuple)
|
|
41
42
|
if familiarVariant == incomingFamiliarVariant and familiarSubType == incomingFamiliarSubType then
|
|
42
43
|
return true
|
|
@@ -51,8 +52,8 @@ function NoSirenSteal.prototype.setFamiliarNoSirenSteal(self, familiarVariant, f
|
|
|
51
52
|
if self:blacklistEntryExists(familiarVariant, familiarSubType) then
|
|
52
53
|
return
|
|
53
54
|
end
|
|
54
|
-
local
|
|
55
|
-
|
|
55
|
+
local ____v_run_familiarBlacklist_0 = v.run.familiarBlacklist
|
|
56
|
+
____v_run_familiarBlacklist_0[#____v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
|
|
56
57
|
end
|
|
57
58
|
__TS__Decorate({Exported}, NoSirenSteal.prototype, "setFamiliarNoSirenSteal", true)
|
|
58
59
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,aAAa,CAAgB;IAsBrC,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,yBAAyB,CAiB/B;IAGK,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;OAUG;IAEI,KAAK,IAAI,IAAI;IAwDpB;;;;OAIG;IAEI,OAAO,IAAI,IAAI;CA4BvB"}
|
|
@@ -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 __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
7
7
|
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
8
8
|
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
@@ -35,19 +35,20 @@ local ____tstlClass = require("src.functions.tstlClass")
|
|
|
35
35
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
36
36
|
local ____Feature = require("src.classes.private.Feature")
|
|
37
37
|
local Feature = ____Feature.Feature
|
|
38
|
+
local v = {run = {
|
|
39
|
+
isPseudoPaused = false,
|
|
40
|
+
shouldUnpause = false,
|
|
41
|
+
initialDescriptions = __TS__New(Map)
|
|
42
|
+
}}
|
|
38
43
|
____exports.Pause = __TS__Class()
|
|
39
44
|
local Pause = ____exports.Pause
|
|
40
45
|
Pause.name = "Pause"
|
|
41
46
|
__TS__ClassExtends(Pause, Feature)
|
|
42
47
|
function Pause.prototype.____constructor(self, disableInputs)
|
|
43
48
|
Feature.prototype.____constructor(self)
|
|
44
|
-
self.v =
|
|
45
|
-
isPseudoPaused = false,
|
|
46
|
-
shouldUnpause = false,
|
|
47
|
-
initialDescriptions = __TS__New(Map)
|
|
48
|
-
}}
|
|
49
|
+
self.v = v
|
|
49
50
|
self.postUpdate = function()
|
|
50
|
-
if not
|
|
51
|
+
if not v.run.isPseudoPaused then
|
|
51
52
|
return
|
|
52
53
|
end
|
|
53
54
|
local firstPlayer = Isaac.GetPlayer()
|
|
@@ -58,10 +59,10 @@ function Pause.prototype.____constructor(self, disableInputs)
|
|
|
58
59
|
if buttonAction ~= ButtonAction.SHOOT_RIGHT then
|
|
59
60
|
return
|
|
60
61
|
end
|
|
61
|
-
if not
|
|
62
|
+
if not v.run.shouldUnpause then
|
|
62
63
|
return
|
|
63
64
|
end
|
|
64
|
-
|
|
65
|
+
v.run.shouldUnpause = false
|
|
65
66
|
return 1
|
|
66
67
|
end
|
|
67
68
|
self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.INPUT_ACTION, self.inputActionGetActionValue, {InputHook.GET_ACTION_VALUE}}}
|
|
@@ -77,7 +78,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
77
78
|
for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
|
|
78
79
|
do
|
|
79
80
|
local ptrHash = GetPtrHash(tearOrProjectile)
|
|
80
|
-
local initialDescription =
|
|
81
|
+
local initialDescription = v.run.initialDescriptions:get(ptrHash)
|
|
81
82
|
if initialDescription == nil then
|
|
82
83
|
goto __continue9
|
|
83
84
|
end
|
|
@@ -96,15 +97,15 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
|
|
|
96
97
|
end
|
|
97
98
|
end
|
|
98
99
|
function Pause.prototype.isPaused(self)
|
|
99
|
-
return
|
|
100
|
+
return v.run.isPseudoPaused
|
|
100
101
|
end
|
|
101
102
|
function Pause.prototype.pause(self)
|
|
102
|
-
if
|
|
103
|
+
if v.run.isPseudoPaused then
|
|
103
104
|
logError("Failed to pseudo-pause the game, since it was already pseudo-paused.")
|
|
104
105
|
return
|
|
105
106
|
end
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
v.run.isPseudoPaused = true
|
|
108
|
+
v.run.initialDescriptions:clear()
|
|
108
109
|
local ____array_1 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
|
|
109
110
|
__TS__SparseArrayPush(
|
|
110
111
|
____array_1,
|
|
@@ -121,7 +122,7 @@ function Pause.prototype.pause(self)
|
|
|
121
122
|
fallingSpeed = tearOrProjectile.FallingSpeed,
|
|
122
123
|
fallingAcceleration = isTear(nil, tearOrProjectile) and tearOrProjectile.FallingAcceleration or tearOrProjectile.FallingAccel
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
+
v.run.initialDescriptions:set(ptrHash, initialDescription)
|
|
125
126
|
end
|
|
126
127
|
local firstPlayer = Isaac.GetPlayer()
|
|
127
128
|
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
@@ -138,12 +139,12 @@ function Pause.prototype.pause(self)
|
|
|
138
139
|
self:stopTearsAndProjectilesFromMoving()
|
|
139
140
|
end
|
|
140
141
|
function Pause.prototype.unpause(self)
|
|
141
|
-
if not
|
|
142
|
+
if not v.run.isPseudoPaused then
|
|
142
143
|
logError("Failed to pseudo-unpause the game, since it was not already pseudo-paused.")
|
|
143
144
|
return
|
|
144
145
|
end
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
v.run.isPseudoPaused = false
|
|
147
|
+
v.run.shouldUnpause = true
|
|
147
148
|
local tstlClassName = getTSTLClassName(nil, self)
|
|
148
149
|
if tstlClassName == nil then
|
|
149
150
|
error("Failed to find get the class name for the pause feature.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,CAAC,MAAM,EAAE,GAAG,CAAC;CAajB"}
|
|
@@ -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 __TS__Spread = ____lualib.__TS__Spread
|
|
7
7
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
8
8
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
@@ -23,20 +23,21 @@ local ____roomData = require("src.functions.roomData")
|
|
|
23
23
|
local getRoomListIndex = ____roomData.getRoomListIndex
|
|
24
24
|
local ____Feature = require("src.classes.private.Feature")
|
|
25
25
|
local Feature = ____Feature.Feature
|
|
26
|
+
local v = {
|
|
27
|
+
run = {persistentEntityIndexCounter = 0},
|
|
28
|
+
level = {persistentEntities = __TS__New(Map)},
|
|
29
|
+
room = {spawnedPersistentEntities = __TS__New(Map)}
|
|
30
|
+
}
|
|
26
31
|
____exports.PersistentEntities = __TS__Class()
|
|
27
32
|
local PersistentEntities = ____exports.PersistentEntities
|
|
28
33
|
PersistentEntities.name = "PersistentEntities"
|
|
29
34
|
__TS__ClassExtends(PersistentEntities, Feature)
|
|
30
35
|
function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
31
36
|
Feature.prototype.____constructor(self)
|
|
32
|
-
self.v =
|
|
33
|
-
run = {persistentEntityIndexCounter = 0},
|
|
34
|
-
level = {persistentEntities = __TS__New(Map)},
|
|
35
|
-
room = {spawnedPersistentEntities = __TS__New(Map)}
|
|
36
|
-
}
|
|
37
|
+
self.v = v
|
|
37
38
|
self.postEntityRemove = function(____, entity)
|
|
38
39
|
local ptrHash = GetPtrHash(entity)
|
|
39
|
-
local tuple =
|
|
40
|
+
local tuple = v.room.spawnedPersistentEntities:get(ptrHash)
|
|
40
41
|
if tuple == nil then
|
|
41
42
|
return
|
|
42
43
|
end
|
|
@@ -49,7 +50,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
|
49
50
|
end
|
|
50
51
|
self.postNewRoomReordered = function()
|
|
51
52
|
local roomListIndex = getRoomListIndex(nil)
|
|
52
|
-
local persistentEntities = {__TS__Spread(
|
|
53
|
+
local persistentEntities = {__TS__Spread(v.level.persistentEntities:entries())}
|
|
53
54
|
local persistentEntitiesInThisRoom = __TS__ArrayFilter(
|
|
54
55
|
persistentEntities,
|
|
55
56
|
function(____, ____bindingPattern0)
|
|
@@ -62,7 +63,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
|
|
|
62
63
|
for ____, ____value in ipairs(persistentEntitiesInThisRoom) do
|
|
63
64
|
local index = ____value[1]
|
|
64
65
|
local description = ____value[2]
|
|
65
|
-
|
|
66
|
+
v.level.persistentEntities:delete(index)
|
|
66
67
|
self:spawnAndTrack(
|
|
67
68
|
description.entityType,
|
|
68
69
|
description.variant,
|
|
@@ -91,7 +92,7 @@ function PersistentEntities.prototype.trackDespawningPickupPosition(self, entity
|
|
|
91
92
|
roomListIndex = previousRoomDescription.roomListIndex,
|
|
92
93
|
position = entity.Position
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
v.level.persistentEntities:set(index, persistentEntityDescription)
|
|
95
96
|
end
|
|
96
97
|
function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, subType, position, index, respawning)
|
|
97
98
|
if respawning == nil then
|
|
@@ -112,15 +113,15 @@ function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, s
|
|
|
112
113
|
index,
|
|
113
114
|
EntityPtr(entity)
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
+
v.room.spawnedPersistentEntities:set(ptrHash, tuple)
|
|
116
117
|
return entity
|
|
117
118
|
end
|
|
118
119
|
function PersistentEntities.prototype.removePersistentEntity(self, persistentEntityIndex, removeEntity)
|
|
119
120
|
if removeEntity == nil then
|
|
120
121
|
removeEntity = true
|
|
121
122
|
end
|
|
122
|
-
|
|
123
|
-
for ____, ____value in __TS__Iterator(
|
|
123
|
+
v.level.persistentEntities:delete(persistentEntityIndex)
|
|
124
|
+
for ____, ____value in __TS__Iterator(v.room.spawnedPersistentEntities) do
|
|
124
125
|
local ptrHash = ____value[1]
|
|
125
126
|
local tuple = ____value[2]
|
|
126
127
|
do
|
|
@@ -128,7 +129,7 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
|
|
|
128
129
|
if index ~= persistentEntityIndex then
|
|
129
130
|
goto __continue16
|
|
130
131
|
end
|
|
131
|
-
|
|
132
|
+
v.room.spawnedPersistentEntities:delete(ptrHash)
|
|
132
133
|
if removeEntity and entityPtr.Ref ~= nil then
|
|
133
134
|
entityPtr.Ref:Remove()
|
|
134
135
|
end
|
|
@@ -137,16 +138,16 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
|
|
|
137
138
|
end
|
|
138
139
|
end
|
|
139
140
|
function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, variant, subType, position)
|
|
140
|
-
local
|
|
141
|
-
|
|
141
|
+
local ____v_run_0, ____persistentEntityIndexCounter_1 = v.run, "persistentEntityIndexCounter"
|
|
142
|
+
____v_run_0[____persistentEntityIndexCounter_1] = ____v_run_0[____persistentEntityIndexCounter_1] + 1
|
|
142
143
|
local entity = self:spawnAndTrack(
|
|
143
144
|
entityType,
|
|
144
145
|
variant,
|
|
145
146
|
subType,
|
|
146
147
|
position,
|
|
147
|
-
|
|
148
|
+
v.run.persistentEntityIndexCounter
|
|
148
149
|
)
|
|
149
|
-
return {entity,
|
|
150
|
+
return {entity, v.run.persistentEntityIndexCounter}
|
|
150
151
|
end
|
|
151
152
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
152
153
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA8BhD,qBAAa,mBAAoB,SAAQ,OAAO;IAI9C,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,eAAe,CAAkB;IAyBzC,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,oCAAoC;IAc5C;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAkCrC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,wBAAwB;IA2BhC;;;;;;;;;;;;;;;OAeG;IAEI,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;CAgBzD"}
|
|
@@ -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 __TS__Decorate = ____lualib.__TS__Decorate
|
|
7
7
|
local __TS__Iterator = ____lualib.__TS__Iterator
|
|
8
8
|
local ____exports = {}
|
|
@@ -39,24 +39,25 @@ function getStoredPickupIndex(self, pickup, pickupDescriptions)
|
|
|
39
39
|
end
|
|
40
40
|
return nil
|
|
41
41
|
end
|
|
42
|
+
local v = {
|
|
43
|
+
run = {
|
|
44
|
+
pickupCounter = 0,
|
|
45
|
+
pickupDataTreasureRooms = __TS__New(Map),
|
|
46
|
+
pickupDataBossRooms = __TS__New(Map)
|
|
47
|
+
},
|
|
48
|
+
level = {pickupData = __TS__New(
|
|
49
|
+
DefaultMap,
|
|
50
|
+
function() return __TS__New(Map) end
|
|
51
|
+
)},
|
|
52
|
+
room = {pickupIndexes = __TS__New(Map)}
|
|
53
|
+
}
|
|
42
54
|
____exports.PickupIndexCreation = __TS__Class()
|
|
43
55
|
local PickupIndexCreation = ____exports.PickupIndexCreation
|
|
44
56
|
PickupIndexCreation.name = "PickupIndexCreation"
|
|
45
57
|
__TS__ClassExtends(PickupIndexCreation, Feature)
|
|
46
58
|
function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDataManager)
|
|
47
59
|
Feature.prototype.____constructor(self)
|
|
48
|
-
self.v =
|
|
49
|
-
run = {
|
|
50
|
-
pickupCounter = 0,
|
|
51
|
-
pickupDataTreasureRooms = __TS__New(Map),
|
|
52
|
-
pickupDataBossRooms = __TS__New(Map)
|
|
53
|
-
},
|
|
54
|
-
level = {pickupData = __TS__New(
|
|
55
|
-
DefaultMap,
|
|
56
|
-
function() return __TS__New(Map) end
|
|
57
|
-
)},
|
|
58
|
-
room = {pickupIndexes = __TS__New(Map)}
|
|
59
|
-
}
|
|
60
|
+
self.v = v
|
|
60
61
|
self.postPickupInit = function(____, pickup)
|
|
61
62
|
self:setPickupIndex(pickup)
|
|
62
63
|
end
|
|
@@ -70,7 +71,7 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDa
|
|
|
70
71
|
end
|
|
71
72
|
function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
72
73
|
local ptrHash = GetPtrHash(pickup)
|
|
73
|
-
if
|
|
74
|
+
if v.room.pickupIndexes:has(ptrHash) then
|
|
74
75
|
return
|
|
75
76
|
end
|
|
76
77
|
local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
|
|
@@ -78,16 +79,16 @@ function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
|
78
79
|
local isFirstVisit = room:IsFirstVisit()
|
|
79
80
|
local roomFrameCount = room:GetFrameCount()
|
|
80
81
|
if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
|
|
81
|
-
|
|
82
|
+
v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
|
|
82
83
|
return
|
|
83
84
|
end
|
|
84
|
-
local
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
local ____v_run_0, ____pickupCounter_1 = v.run, "pickupCounter"
|
|
86
|
+
____v_run_0[____pickupCounter_1] = ____v_run_0[____pickupCounter_1] + 1
|
|
87
|
+
v.room.pickupIndexes:set(ptrHash, v.run.pickupCounter)
|
|
87
88
|
end
|
|
88
89
|
function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
|
|
89
90
|
local roomListIndex = getRoomListIndex(nil)
|
|
90
|
-
local pickupDescriptions =
|
|
91
|
+
local pickupDescriptions = v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
91
92
|
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
92
93
|
if pickupIndex == nil then
|
|
93
94
|
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
@@ -96,7 +97,7 @@ function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pick
|
|
|
96
97
|
end
|
|
97
98
|
function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
|
|
98
99
|
local ptrHash = GetPtrHash(entity)
|
|
99
|
-
local pickupIndex =
|
|
100
|
+
local pickupIndex = v.room.pickupIndexes:get(ptrHash)
|
|
100
101
|
if pickupIndex == nil then
|
|
101
102
|
return
|
|
102
103
|
end
|
|
@@ -111,7 +112,7 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
|
|
|
111
112
|
return
|
|
112
113
|
end
|
|
113
114
|
local previousRoomListIndex = previousRoomDescription.roomListIndex
|
|
114
|
-
local pickupDescriptions =
|
|
115
|
+
local pickupDescriptions = v.level.pickupData:getAndSetDefault(previousRoomListIndex)
|
|
115
116
|
local pickupDescription = {position = entity.Position, initSeed = entity.InitSeed}
|
|
116
117
|
pickupDescriptions:set(pickupIndex, pickupDescription)
|
|
117
118
|
local pickupDataMapForCurrentRoom = self:getPickupDataMapForCurrentRoom()
|
|
@@ -133,13 +134,13 @@ function PickupIndexCreation.prototype.getPickupDataMapForCurrentRoom(self)
|
|
|
133
134
|
local ____cond20 = ____switch20 == RoomType.TREASURE
|
|
134
135
|
if ____cond20 then
|
|
135
136
|
do
|
|
136
|
-
return
|
|
137
|
+
return v.run.pickupDataTreasureRooms
|
|
137
138
|
end
|
|
138
139
|
end
|
|
139
140
|
____cond20 = ____cond20 or ____switch20 == RoomType.BOSS
|
|
140
141
|
if ____cond20 then
|
|
141
142
|
do
|
|
142
|
-
return
|
|
143
|
+
return v.run.pickupDataBossRooms
|
|
143
144
|
end
|
|
144
145
|
end
|
|
145
146
|
do
|
|
@@ -160,13 +161,13 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
160
161
|
local ____cond26 = ____switch26 == RoomType.TREASURE
|
|
161
162
|
if ____cond26 then
|
|
162
163
|
do
|
|
163
|
-
return getStoredPickupIndex(nil, pickup,
|
|
164
|
+
return getStoredPickupIndex(nil, pickup, v.run.pickupDataTreasureRooms)
|
|
164
165
|
end
|
|
165
166
|
end
|
|
166
167
|
____cond26 = ____cond26 or ____switch26 == RoomType.BOSS
|
|
167
168
|
if ____cond26 then
|
|
168
169
|
do
|
|
169
|
-
return getStoredPickupIndex(nil, pickup,
|
|
170
|
+
return getStoredPickupIndex(nil, pickup, v.run.pickupDataBossRooms)
|
|
170
171
|
end
|
|
171
172
|
end
|
|
172
173
|
do
|
|
@@ -178,12 +179,12 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
178
179
|
end
|
|
179
180
|
function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
|
|
180
181
|
local ptrHash = GetPtrHash(pickup)
|
|
181
|
-
local pickupIndexInitial =
|
|
182
|
+
local pickupIndexInitial = v.room.pickupIndexes:get(ptrHash)
|
|
182
183
|
if pickupIndexInitial ~= nil then
|
|
183
184
|
return pickupIndexInitial
|
|
184
185
|
end
|
|
185
186
|
self:setPickupIndex(pickup)
|
|
186
|
-
local pickupIndex =
|
|
187
|
+
local pickupIndex = v.room.pickupIndexes:get(ptrHash)
|
|
187
188
|
if pickupIndex ~= nil then
|
|
188
189
|
return pickupIndex
|
|
189
190
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerInventory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PlayerInventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAY/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlayerInventory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PlayerInventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAY/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,qBAAa,eAAgB,SAAQ,OAAO;IAqB1C,OAAO,CAAC,oBAAoB,CAU1B;IAGF,OAAO,CAAC,sBAAsB,CAU5B;IAEF;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEI,kBAAkB,CACvB,MAAM,EAAE,YAAY,EACpB,yBAAyB,UAAO,GAC/B,eAAe,EAAE;IAgBpB;;;;;;;OAOG;IAEI,+BAA+B,CACpC,MAAM,EAAE,YAAY,GACnB,eAAe,GAAG,SAAS;CAI/B"}
|
|
@@ -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__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
6
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
7
7
|
local ____exports = {}
|
|
@@ -21,22 +21,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
21
21
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
22
22
|
local ____Feature = require("src.classes.private.Feature")
|
|
23
23
|
local Feature = ____Feature.Feature
|
|
24
|
+
local v = {run = {playersInventory = __TS__New(
|
|
25
|
+
DefaultMap,
|
|
26
|
+
function() return {} end
|
|
27
|
+
)}}
|
|
24
28
|
____exports.PlayerInventory = __TS__Class()
|
|
25
29
|
local PlayerInventory = ____exports.PlayerInventory
|
|
26
30
|
PlayerInventory.name = "PlayerInventory"
|
|
27
31
|
__TS__ClassExtends(PlayerInventory, Feature)
|
|
28
32
|
function PlayerInventory.prototype.____constructor(self)
|
|
29
33
|
Feature.prototype.____constructor(self)
|
|
30
|
-
self.v =
|
|
31
|
-
DefaultMap,
|
|
32
|
-
function() return {} end
|
|
33
|
-
)}}
|
|
34
|
+
self.v = v
|
|
34
35
|
self.postCollectibleAdded = function(____, player, collectibleType)
|
|
35
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
36
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
36
37
|
inventory[#inventory + 1] = collectibleType
|
|
37
38
|
end
|
|
38
39
|
self.postCollectibleRemoved = function(____, player, collectibleType)
|
|
39
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
40
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
40
41
|
arrayRemoveInPlace(nil, inventory, collectibleType)
|
|
41
42
|
end
|
|
42
43
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED, self.postCollectibleAdded}, {ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED, self.postCollectibleRemoved}}
|
|
@@ -45,7 +46,7 @@ function PlayerInventory.prototype.getPlayerInventory(self, player, includeActiv
|
|
|
45
46
|
if includeActiveCollectibles == nil then
|
|
46
47
|
includeActiveCollectibles = true
|
|
47
48
|
end
|
|
48
|
-
local inventory = defaultMapGetPlayer(nil,
|
|
49
|
+
local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
|
|
49
50
|
if includeActiveCollectibles then
|
|
50
51
|
return copyArray(nil, inventory)
|
|
51
52
|
end
|