DamageCalculation
Robo Home
|
Changes
|
Preferences
|
AllPages
Kawigi
and
Vuen
forgot to update the wiki with this info. =)
The damage a bullet inflicts is
4 * x
for bullet powers below 1, and
4 * x + 2 * (x - 1)
for higher-powered bullets
Calculate like so:
double bulletDamage = 4 * x + Math.max(0, 2 * (x - 1))