Chance-weighted average attack/cast time of Retaliation Skills
まだ誰も着手していません。
評価
調査の方向性
この 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時間
- マージ済み PR(30日)
- 26
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PathOfBuildingCommunity/PathOfBuilding のほかの issue
-
bug: accuracy
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PathOfBuildingCommunity/PathOfBuilding#7548 · コメント 4 件 · リアクション 1 件 ·
-
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 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mailcow/mailcow-dockerized#7480 ·