Module:BTD6 stats: Difference between revisions
mNo edit summary |
thrash rate |
||
| Line 160: | Line 160: | ||
local insertRate = function(amt) | local insertRate = function(amt) | ||
ret[#ret+1] = sformat("| %.4gs", amt - (data.cooldownScaleRange*scale)) | ret[#ret+1] = sformat("| %.4gs", amt - (data.cooldownScaleRange*scale)) | ||
end | |||
-- thrash cooldown | |||
local insertThrashRate = function(amt, thrashRate) | |||
ret[#ret+1] = sformat("| %.4gs", (amt - (data.cooldownScaleRange*scale))*thrashRate/0.6) | |||
end | end | ||
| Line 219: | Line 224: | ||
if attack.initialDamage and attack.initialDamage > 0 then insertDamage(attack.initialDamage) end | if attack.initialDamage and attack.initialDamage > 0 then insertDamage(attack.initialDamage) end | ||
if attack.grapplingDamage and attack.grapplingDamage > 0 then insertDamage(attack.initialDamage) end | if attack.grapplingDamage and attack.grapplingDamage > 0 then insertDamage(attack.initialDamage) end | ||
if attack.thrashingProjectileRate then | if attack.thrashingProjectileRate then insertThrashRate(attack.rate, attack.thrashingProjectileRate) end | ||
-- projectiles | -- projectiles | ||