Skip to content

Commit 7f6e079

Browse files
committed
Display efficiency as percentage instead of a full float multiplier
1 parent b007a6c commit 7f6e079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/CalcPerform.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ function calcs.perform(env, avoidCache)
15851585
mult = mult ~= 1 and ("x "..mult),
15861586
more = values.more ~= 1 and ("x "..values.more),
15871587
inc = values.inc ~= 0 and ("x "..(1 + values.inc / 100)),
1588-
efficiency = values.efficiency ~= 0 and ("x " .. 1 / (1 + values.efficiency / 100)),
1588+
efficiency = values.efficiency ~= 0 and (round(10000 / (100 + values.efficiency), 2) .. "%"),
15891589
total = values.reservedFlat,
15901590
})
15911591
end
@@ -1601,7 +1601,7 @@ function calcs.perform(env, avoidCache)
16011601
mult = mult ~= 1 and ("x "..mult),
16021602
more = values.more ~= 1 and ("x "..values.more),
16031603
inc = values.inc ~= 0 and ("x "..(1 + values.inc / 100)),
1604-
efficiency = values.efficiency ~= 0 and ("x " .. 1 / (1 + values.efficiency / 100)),
1604+
efficiency = values.efficiency ~= 0 and (round(10000 / (100 + values.efficiency), 2) .. "%"),
16051605
total = values.reservedPercent .. "%",
16061606
})
16071607
end

0 commit comments

Comments
 (0)