Brotato

Brotato

241 ratings
[GUI] DPS Prediction
3
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
14.964 KB
Jan 6, 2024 @ 5:40pm
Nov 3, 2024 @ 2:34pm
18 Change Notes ( view )

Subscribe to download
[GUI] DPS Prediction

Description
(Now compatible with Version 1.1)
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 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 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 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! :)
21 Comments
mrp Apr 5 @ 6:30pm 
Same for me here with Creature and Cacti club : projectiles now scales on Curse too, and worse the scaling increases everytime you mouse over the weapon icon.
神奇椰果 Mar 22 @ 2:00am 
你好,我在实际游玩时发现了一个bug:
如果使用本mod,当使用攻击产生投射物的武器(如刺棍、雷剑)时,如果拾取了钉子,武器的投射物词条的工程学百分比加成会出错。每当鼠标放在武器上时,工程学百分比加成都会增加,因此无限叠加,导致武器投射物伤害巨高。我在第30波时发现了这个问题,其伤害提升并不只是显示在词条上,而是实际提高了打BOSS的伤害,可以秒杀任何BOSS。
希望制作大佬可以解决此问题,谢谢。
Syrus Dec 14, 2024 @ 3:49pm 
Happened something similar to the Sniper. Burn damage multipliers went nuts, but only the additional scaling multipliers given by items.
Bene  [author] Nov 30, 2024 @ 4:37pm 
Ok that doesn't sound good...
I'll look into it and try to fix it ASAP. Thanks for the feedback!
Dviinx Nov 30, 2024 @ 4:30pm 
No actually it adds up a new damage scaling value. Each spikes does insane damages based on curse, and each time your mouse hovers the weapon, the scaling % increases, ending with like 100.000% scaling (basically clearing the whole map on hit). Didn't see if others weapon were affected but might be.
Bene  [author] Nov 24, 2024 @ 12:11pm 
@Dviinx Did it just show a super high DPS value or did it actually mess with the mechanic in some way? A very high DPS could be explained because it shows what would happen if all projectiles hit the maximum amount of enemies possible
Dviinx Nov 24, 2024 @ 10:27am 
Actually broken on Cacti Club with completely destroyed cursed ratio
Goby Nov 18, 2024 @ 12:48am 
Thank you.
Bene  [author] Oct 27, 2024 @ 1:13pm 
I am bit busy at the moment but I will look into it ASAP. Hoping to get an update out by next week
二乃. Oct 27, 2024 @ 1:00pm 
need update