Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Chance-weighted average attack/cast time of Retaliation Skills

未关闭
#10,140 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
lua
领域
game-dev

调研方向

该 issue 提供了一个用于计算按概率加权的反击时机的 Ruby 示例,但没有指出任何项目文件或测试。首先定位反击技能复用和攻击时间计算的位置,然后确定应将所请求的平均值放在哪里;当 planner 的计时结果中体现了反击技能复用时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

enhancement
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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PathOfBuildingCommunity/PathOfBuilding 的其他 Issue

查看 PathOfBuildingCommunity/PathOfBuilding 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。