Chance-weighted average attack/cast time of Retaliation Skills
还没有人认领这个 Issue。
评估
调研方向
该 issue 提供了一个用于计算按概率加权的反击时机的 Ruby 示例,但没有指出任何项目文件或测试。首先定位反击技能复用和攻击时间计算的位置,然后确定应将所请求的平均值放在哪里;当 planner 的计时结果中体现了反击技能复用时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Lua
- 星标
- 5.4k
- 派生
- 2.4k
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 26
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PathOfBuildingCommunity/PathOfBuilding 的其他 Issue
-
bug: accuracy
难度 2/5 1-3 小时 新手友好度 68/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
PathOfBuildingCommunity/PathOfBuilding#7548 · 4 条评论 · 1 个 reaction ·
-
enhancement
难度 3/5 1-2 天 新手友好度 68/100
-
bug: calculation
难度 3/5 1-2 天 新手友好度 68/100
PathOfBuildingCommunity/PathOfBuilding#10353 · 1 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
查看 PathOfBuildingCommunity/PathOfBuilding 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
LandSandBoat/server#11579 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 76/100
ArchiveTeam/sinavideo-grab#7 · 3 个 reaction ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
mailcow/mailcow-dockerized#7480 ·