BetterUI icon indicating copy to clipboard operation
BetterUI copied to clipboard

Add Little Disciple fire rate to the ItemStats integration

Open BLucky-gh opened this issue 4 years ago • 1 comments

The Little Disciple fire rate scales with movement speed, and the description specifies the base fire rate, it would be neat if it also showed the calculated fire rate (sorry for fullscreen screenshot, can't win+shift+s while holding tab) image

BLucky-gh avatar Apr 12 '22 07:04 BLucky-gh

https://riskofrain2.fandom.com/wiki/Little_Disciple#Math

The time in seconds between each fired wisp is determined by the formula 35 / (3 ⋅ movementSpeed)

This lines up with the in-game component RoR2.Items.SprintWispBodyBehavior, as the fractional value appears to be the same. (https://www.desmos.com/calculator/x71oxoaiwh)

1f / (SprintWispBodyBehavior.fireRate * base.body.moveSpeed);
...
private static readonly float fireRate = 0.08571429f;

DestroyedClone avatar Apr 14 '22 23:04 DestroyedClone