Skip to content

Commit f9cce6f

Browse files
mortentcDullson
authored andcommitted
Fixed incorrect display of leech breakdown (PathOfBuildingCommunity#6030)
1 parent 5b415a2 commit f9cce6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/CalcBreakdown.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function breakdown.leech(instant, instantRate, instances, pool, rate, max, dur,
192192
if actor.mainSkill.skillData.showAverage then
193193
if instant > 0 then
194194
if instantLeechProportion ~= 1 then
195-
t_insert(out, s_format("Instant Leech: %.1f ^8(%d%% x %.1f)", instant, instantLeechProportion * 100, dur * pool * data.misc.LeechRateBase))
195+
t_insert(out, s_format("Instant Leech: %.1f ^8(%d%% x %.1f)", instant, instantLeechProportion * 100, dur * pool * data.misc.LeechRateBase / (1-instantLeechProportion)))
196196
else
197197
t_insert(out, s_format("Instant Leech: %.1f", instant))
198198
end
@@ -211,7 +211,7 @@ function breakdown.leech(instant, instantRate, instances, pool, rate, max, dur,
211211
else
212212
if instantRate > 0 then
213213
if instantLeechProportion ~= 1 then
214-
t_insert(out, s_format("Instant Leech: %.1f ^8(%d%% x %.1f)", instant, instantLeechProportion * 100, dur * pool * data.misc.LeechRateBase))
214+
t_insert(out, s_format("Instant Leech: %.1f ^8(%d%% x %.1f)", instant, instantLeechProportion * 100, dur * pool * data.misc.LeechRateBase / (1-instantLeechProportion)))
215215
else
216216
t_insert(out, s_format("Instant Leech: %.1f", instant))
217217
end

0 commit comments

Comments
 (0)