Permalink
Browse files

Fix energy to fire calculation

  • Loading branch information...
1 parent 0d4497b commit 47876672bf6a539186a661ce80c7290eabe222bf @ForbodingAngel ForbodingAngel committed Feb 7, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 Gamedata/alldefs_post.lua
@@ -207,7 +207,7 @@ function WeaponDef_Post(name, wDef)
end
wDef.energypershot = energycosttofire
else
- local energycosttofire = weaponDefaultDamage * 0.05 * weaponProjectiles * ((weaponAreaOfEffect * 0.001) + 1) * (weaponRange * 0.005)
+ local energycosttofire = weaponDefaultDamage * 0.05 * weaponProjectiles * ((weaponAreaOfEffect * 0.001) + 1) * (weaponRange * 0.001)
local function roundToFirstDecimal(energycosttofire)
return math.floor(energycosttofire*10 + 0.5)*0.1
end

0 comments on commit 4787667

Please sign in to comment.