土豆兄弟(Brotato)

土豆兄弟(Brotato)

199 个评价
[GUI] DPS Display
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
7.746 KB
1 月 6 日 下午 5:40
2 月 23 日 下午 12:31
17 项改动说明 ( 查看 )

订阅以下载
[GUI] DPS Display

描述
This mod predicts and displays the average DPS for all weapons and compares them with their base DPS, assuming that the weapon is used to its fullest potential. As the DPS is calculated based on hitting as many enemies as possible, it will be higher than what could usually be archived but should give you a great comparison between different weapons and help when deciding purchases. And since I show how much the current DPS has improved in comparison to the base DPS you'll always know exactly how much you improved the strength of your weapons.

Every stat and effect in the base game should be fully accounted for with the exception of explosion damage and melee weapon piercing. DPS for turrets will be added soon.

Burn DPS is shown as two separate stats: "Burn DPS per stack" shows how much damage a burning enemy will take per second while "Maximum Burn DPS" shows the average Burn DPS that you would archive by having the maximum possible amount of simultaneously burning enemies. Please note: the "Maximum Burn DPS" factors in burn-chance and attack speed and can therefore be lower than the "Burn Damage per Stack". Also with piercing, spread and fast attack speed the "Maximum Burn DPS" will quickly become far from achievable as burn damage does not stack and you could therefore only archive the max by making a new enemy burn with every single (piercing) bullet and spread effect.

I did all the calculations myself so please let me know if something feels off.
The source code to this mod is available at: https://github.com/bene-labs/Brotato-WeaponDpsDisplay.


-- Update Version 0.2 --
- Fixed crit-damage calculation.
- Fixed "extra_cooldown_every_x_shots" effect calculation
- Fixed a bug which messed with the turret damage scaling.

-- Update Version 0.3 --
- Fixed the DPS to base-DPS comparison
- Added snake and eye-surgery support
- Split Burn Damage DPS into Maximum and "Per-Stack" DPS to better represent how burn damage works

-- Update Version 0.4 --
- Improved bounce and pierce calculation
- Improved bounce_on_crit and pierce_on_crit calculation
- Added "stand-still" DPS and support for all related effects

Special Thanks to ArosRising! :)
13 条留言
Bene  [作者] 10 月 27 日 下午 1:13 
I am bit busy at the moment but I will look into it ASAP. Hoping to get an update out by next week
二乃. 10 月 27 日 下午 1:00 
need update
丨折木衔枝丨 10 月 26 日 上午 12:21 
New dlc update seems to cause flashbacks when selecting weapons
雪下 7 月 30 日 上午 8:15 
hello guy, try this one out

if (piercing > 0) {
dps *= Math.log(piercing + 1) + 1 / piercing;
}

in this example, when piercing is 1, dps will be multiplied by 1.6931471805599454, but when dps is 100, it will only be multiplied by 4.605170185988092
Bene  [作者] 7 月 21 日 上午 5:25 
I could offer an option to show the DPS without piercing but otherwise I'm not sure how else to calculate piercing DPS
Bene  [作者] 7 月 21 日 上午 5:22 
It's the highest DPS possible, so for piercing weapons it shows what you would get if you hit the maximum amount of enemies you could with piercing. So piercing 99 is not really achievable of course as you would need to hit 99 enemies
雪下 7 月 21 日 上午 2:14 
actually, the DPS displayed by the obliteracto on the UI is more than ten times that of the laser gun
雪下 7 月 21 日 上午 2:11 
the DPS of the obliteractor a bit too high, is there any problem?
Herbicide Jones 6 月 23 日 下午 1:32 
nice but simple addition
Bene  [作者] 2 月 22 日 上午 6:08 
@KLeinKARIERT Keine Sorge, du kannst auch mit der mod noch alle Errungschaften freischalten. Ist eigentlich bei den meisten mods der Fall.