Skip to content

Chance-weighted average attack/cast time of Retaliation Skills #10140

Description

@Udones

Check for duplicates

  • I've checked for duplicate open and closed issues by using the search function of the issue tracker

What platform are you running Path of Building on?

Windows

Is your feature request related to a problem?

PoB cannot consider retaliation skills reusage.
I have developed a formula and calculation algorithm for the average attack time, taking into account the cooldown probability of retaliation skills, so please consider implementing this.

Describe the solution you'd like

Here is some sample code written in Ruby


puts "attack time ?"
a = gets.to_f

puts "usable time ?"
u = gets.to_f
puts "usable time mod% ?"
u = u * (1 + gets.to_i / 100)

puts "cooldown?"
d = gets.to_f

puts "chance to multiple retaliation?"
r = gets.to_f

x = (u/a).ceil

puts "max number of attacks " + x.to_s

avg = 0.0

for t in 1..x do
	avg += (1 - r**(t)) * (a + ((d - a) / t))  # [The probability that reuse will end after the t-th use ]*[Average attack time after t uses] 
end

avg /= x

puts "avg,attack time : " + avg.to_s

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature, calculation, or mod

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions