Added minimum range to archers as well as ProjectileSpeed property to all ranged units.

This was SVN commit r4482.
This commit is contained in:
Matei 2006-10-04 04:49:17 +00:00
parent 1036799546
commit 21d65a5e94
3 changed files with 15 additions and 2 deletions

View File

@ -24,6 +24,7 @@
<Pierce>0.5</Pierce>
<Range>24.0</Range>
<Speed>1500</Speed>
<ProjectileSpeed>12.0</ProjectileSpeed>
</Ranged>
</Attack>
</Actions>

View File

@ -18,4 +18,14 @@
</Id>
</Traits>
<Actions>
<Attack>
<Ranged>
<MinRange>8.0</MinRange>
<ProjectileSpeed>18.0</ProjectileSpeed>
</Ranged>
</Attack>
</Actions>
</Entity>

View File

@ -625,7 +625,9 @@ function performAttackRanged( evt )
// action (do nothing) is what we want.
// Parameters 5, 6, and 7 are all optional.
projectile = new Projectile( this, this, evt.target, 12.0, this, projectileEventImpact )
projectile = new Projectile( this, this, evt.target,
this.actions.attack.ranged.projectileSpeed,
this, projectileEventImpact )
// We'll attach the damage information to the projectile, just to show you can
// do that like you can with most other objects. Could also do this by making