trinket doubling 17% exception

This commit is contained in:
Buurazu authored and GitHub committed 2021-12-22 15:52:15 -05:00
1 parent 2825b9c2ea
commit f47e2fc37e
1 file changed
+4 -1
+4 -1
View File
@@ -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)