isaacscript-common 1.0.452 → 1.0.453
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.
|
@@ -5,6 +5,7 @@ local ____exports = require("features.saveDataManager.exports")
|
|
|
5
5
|
local saveDataManager = ____exports.saveDataManager
|
|
6
6
|
local ____player = require("functions.player")
|
|
7
7
|
local getPlayers = ____player.getPlayers
|
|
8
|
+
local isTaintedLazarus = ____player.isTaintedLazarus
|
|
8
9
|
local postFirstFlip = require("callbacks.subscriptions.postFirstFlip")
|
|
9
10
|
local postFlip = require("callbacks.subscriptions.postFlip")
|
|
10
11
|
function hasSubscriptions(self)
|
|
@@ -14,6 +15,9 @@ function useItemFlip(self, _collectibleType, _rng, player, _useFlags, _activeSlo
|
|
|
14
15
|
if not hasSubscriptions(nil) then
|
|
15
16
|
return
|
|
16
17
|
end
|
|
18
|
+
if not isTaintedLazarus(nil, player) then
|
|
19
|
+
return
|
|
20
|
+
end
|
|
17
21
|
local newLazarus = getNewLazarus(nil, player)
|
|
18
22
|
if not v.run.usedFlipAtLeastOnce then
|
|
19
23
|
v.run.usedFlipAtLeastOnce = true
|
|
@@ -184,7 +184,10 @@ export declare function isJacobOrEsau(player: EntityPlayer): boolean;
|
|
|
184
184
|
* where you want to know if the health is coin hearts, for example.
|
|
185
185
|
*/
|
|
186
186
|
export declare function isKeeper(player: EntityPlayer): boolean;
|
|
187
|
+
/** Helper function for detecting when a player is The Lost or Tainted Lost. */
|
|
187
188
|
export declare function isLost(player: EntityPlayer): boolean;
|
|
189
|
+
/** Helper function for detecting when a player is Tainted Lazarus or Dead Tainted Lazarus. */
|
|
190
|
+
export declare function isTaintedLazarus(player: EntityPlayer): boolean;
|
|
188
191
|
export declare function removeCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType): void;
|
|
189
192
|
/**
|
|
190
193
|
* Helper function to remove the Dead Eye multiplier from a player.
|
|
@@ -400,6 +400,10 @@ function ____exports.isLost(self, player)
|
|
|
400
400
|
local character = player:GetPlayerType()
|
|
401
401
|
return (character == PlayerType.PLAYER_THELOST) or (character == PlayerType.PLAYER_THELOST_B)
|
|
402
402
|
end
|
|
403
|
+
function ____exports.isTaintedLazarus(self, player)
|
|
404
|
+
local character = player:GetPlayerType()
|
|
405
|
+
return (character == PlayerType.PLAYER_LAZARUS_B) or (character == PlayerType.PLAYER_LAZARUS2_B)
|
|
406
|
+
end
|
|
403
407
|
function ____exports.removeCollectibleCostume(self, player, collectibleType)
|
|
404
408
|
local itemConfig = Isaac.GetItemConfig()
|
|
405
409
|
local itemConfigItem = itemConfig:GetCollectible(collectibleType)
|