From f47e2fc37e946a2646c6f6771e9548d53e5a50ef Mon Sep 17 00:00:00 2001 From: Buurazu Date: Wed, 22 Dec 2021 15:52:15 -0500 Subject: [PATCH] trinket doubling 17% exception --- eid_modifiers.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eid_modifiers.lua b/eid_modifiers.lua index 6f5bd673..fa59acba 100644 --- a/eid_modifiers.lua +++ b/eid_modifiers.lua @@ -232,7 +232,10 @@ local game = Game() descObj.Description = string.gsub(descObj.Description, "%d*%.?%d+", function(s) if (s == tostring(v) and count == 0) then count = count + 1 - if v == 33 and (multiplier == 1.5 or multiplier == 3) then v = (1/3)*100 end -- convert 33% to 50% or 100% + if v == 17 then + if multiplier == 2 then v = 16.5 + elseif multipler == 3 then v = (1/6)*100 end -- convert 17% to 33% or 50% + elseif v == 33 and (multiplier == 1.5 or multiplier == 3) then v = (1/3)*100 end -- convert 33% to 50% or 100% return "{{ColorGold}}" .. string.format("%.4g",v*multiplier) .. "{{ColorText}}" end end)