Tower Damage
-
Towers are doing more than 150 dmg per shot at > 10 range.
-
it's 150 damage at >= 20 range
-
@Dissi, So you're saying its 600 dmg a tick at 19 or < range?
-
@Dissi, documentation needs to be way updated than, and turrets need to be nerfed...
-
The docs are up-to-date:
http://support.screeps.com/hc/en-us/articles/208437105-StructureTower
Attack effectiveness 600 hits at range ≤5 to 150 hits at range ≥20 Between range 6 and 19 there is a linear falloff. You can calculate that.
-
The impact factor of a tower can be calculated by the function below. I post this here since I dont think this is any kind of magic.
It took me while to figure out that the falloff is actually linear (by the post of dissi above)
var towerRangeImpactFactor = function(distance) {
if(distance <= TOWER_OPTIMAL_RANGE) {
return 1
}
if(distance >= TOWER_FALLOFF_RANGE) {
return 1 - TOWER_FALLOFF
}
var towerFalloffPerTile = TOWER_FALLOFF / (TOWER_FALLOFF_RANGE - TOWER_OPTIMAL_RANGE)
return 1 - (distance - TOWER_OPTIMAL_RANGE) * towerFalloffPerTile
}then the damage can be calculated with
var damage = TOWER_POWER_ATTACK * towerRangeImpactFactor(distance)