Added Synergy informations for Abyss

This commit is contained in:
Wofsauge committed 2021-12-12 20:18:14 +01:00
1 parent c7b8f6deab
commit b62cc25e01
2 files changed
+45

No files matched your search

+25
View File
@@ -292,4 +292,29 @@ local game = Game()
end
EID:addDescriptionModifier("Placebo", PlaceboCondition, PlaceboCallback)
-- Handle Abyss description addition
local function AbyssCondition(descObj)
if not REPENTANCE or descObj.ObjType ~= 5 or descObj.ObjVariant ~= PickupVariant.PICKUP_COLLECTIBLE then
return false
end
for i = 0, game:GetNumPlayers() - 1 do
local player = Isaac.GetPlayer(i)
if player:HasCollectible(CollectibleType.COLLECTIBLE_ABYSS) then
return true
end
end
return false
end
local function AbyssCallback(descObj)
local text = EID:getDescriptionEntry("abyssSynergies", descObj.ObjSubType)
if text ~= nil then
local iconStr = "#{{Collectible706}} {{ColorRed}}"
EID:appendToDescription(descObj, iconStr..text)
end
return descObj
end
EID:addDescriptionModifier("Abyss", AbyssCondition, AbyssCallback)
end