AI: don't increase normal throw speed for javelin

Javelin uses ranged mechanism for using/throwing.
alut-include-path
Maikel de Vries 2017-01-20 15:40:26 +01:00
parent 3282806d7d
commit 2aa1b961ea
1 changed files with 0 additions and 2 deletions

View File

@ -480,8 +480,6 @@ private func ExecuteThrow(effect fx)
if (PathFree(x, y, tx, ty))
{
var throw_speed = this.ThrowSpeed;
if (fx.weapon->GetID() == Javelin)
throw_speed *= 2;
var rx = (throw_speed * throw_speed) / (100 * GetGravity()); // horizontal range for 45 degree throw if enemy is on same height as we are
var ry = throw_speed * 7 / (GetGravity() * 10); // vertical range of 45 degree throw
var dx = tx - x, dy = ty - y + 15 * GetCon() / 100; // distance to target. Reduce vertical distance a bit because throwing exit point is not at center