[Dominik] [15.35] Beam weapons tooltip should consider damage_interval
Posted: Tue Oct 03, 2017 2:56 pm
Right now the tooltip for beam weapons shows shooting-speed and damage-amount.
calculating the DPS with
only works if damage_interval = duration.
This is the case for the destroyer robot.
But if we create a beam that does damage more than once during its duration, the numbers shown don't make sense anymore.
The correct DPS would be
The tooltip instead should show the DPS similar to the flamethrower.
calculating the DPS with
Code: Select all
DPS = shooting-speed * damage-amount
= 60/cooldown * damage-amount
This is the case for the destroyer robot.
But if we create a beam that does damage more than once during its duration, the numbers shown don't make sense anymore.
The correct DPS would be
Code: Select all
DPS = 60/cooldown * damage-amount * duration / damage_interval