Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Chance-weighted average attack/cast time of Retaliation Skills

オープン
#10,140 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
26

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PathOfBuildingCommunity/PathOfBuilding のほかの issue

PathOfBuildingCommunity/PathOfBuilding の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。