trinket doubling 17% exception
This commit is contained in:
1 parent
2825b9c2ea
commit
f47e2fc37e
1 file changed
+4
-1
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user