Added Necromancer transformation

This commit is contained in:
Wofsauge committed 2025-09-10 17:24:56 +02:00
1 parent 425815f241
commit 09e2eb5abc
6 files changed
+56 -33

No files matched your search

+6 -4
View File
@@ -2458,8 +2458,10 @@ function EID:evaluateTransformationProgress(transformation)
local eType, eVariant, eSubType = entityString:match("([^.]+).([^.]+).([^.]+)")
if tonumber(eType) == EntityType.ENTITY_PICKUP then
if tonumber(eVariant) == PickupVariant.PICKUP_COLLECTIBLE then
local currentCount = EID.TransformationProgress[id][transformation]
if activesTable[tostring(eSubType)] then
-- Rep+ Exclusive: Only count a Transformation progress for Necromancer, if you own the Necronomicon
local isNecromancer = EID.isRepentancePlus and transformation == tostring(EID.TRANSFORMATION.NECROMANCER)
if not isNecromancer and activesTable[tostring(eSubType)] then
EID.TransformationProgress[id][transformation] = EID.TransformationProgress[id][transformation] + activesTable[tostring(eSubType)]
else
local collCount = player:GetCollectibleNum(eSubType, true)
@@ -2474,8 +2476,8 @@ function EID:evaluateTransformationProgress(transformation)
end
end
-- In AB+, only one copy of a given collectible is counted for trans
if not EID.isRepentance and EID.TransformationProgress[id][transformation] > currentCount + 1 then
EID.TransformationProgress[id][transformation] = currentCount + 1
if not EID.isRepentance and EID.TransformationProgress[id][transformation] > EID.TransformationProgress[id][transformation] + 1 then
EID.TransformationProgress[id][transformation] = EID.TransformationProgress[id][transformation] + 1
end
elseif tonumber(eVariant) == PickupVariant.PICKUP_TRINKET and player:HasTrinket(eSubType) then
EID.TransformationProgress[id][transformation] = EID.TransformationProgress[id][transformation] + player:GetTrinketMultiplier(eSubType)
+5 -3
View File
@@ -52,7 +52,8 @@ EID.TRANSFORMATION = {
["ADULT"] = 14,
["SPIDERBABY"] = 13,
["SUPERBUM"] = 11,
["STOMPY"] = 15
["STOMPY"] = 15,
["NECROMANCER"] = 16 -- added in Rep+
}
-- List of item Types
@@ -351,8 +352,9 @@ EID.InlineIcons = {
["SuperBum"] = {"Transformation11", 0, 16, 16, 0, -1, EID.IconSprite},
["Bookworm"] = {"Transformation12", 0, 16, 16, 0, -1, EID.IconSprite},
["SpiderBaby"] = {"Transformation13", 0, 16, 16, 0, -1, EID.IconSprite},
["Adult"] = {"Transformation14",0,16, 16, 0, -1, EID.IconSprite},
["Stompy"] = {"Transformation15",0,16, 16, 0, -1, EID.IconSprite},
["Adult"] = {"Transformation14", 0, 16, 16, 0, -1, EID.IconSprite},
["Stompy"] = {"Transformation15", 0, 16, 16, 0, -1, EID.IconSprite},
["Necromancer"] = {"Transformation16", 0, 16, 16, 0, -1, EID.IconSprite},
-- Quality
["Quality0"] = {"Quality", 0, 10, 10, 0, 0},