forked from 0ad/0ad
Added minimum range to archers as well as ProjectileSpeed property to all ranged units.
This was SVN commit r4482.
This commit is contained in:
parent
1036799546
commit
21d65a5e94
@ -24,6 +24,7 @@
|
||||
<Pierce>0.5</Pierce>
|
||||
<Range>24.0</Range>
|
||||
<Speed>1500</Speed>
|
||||
<ProjectileSpeed>12.0</ProjectileSpeed>
|
||||
</Ranged>
|
||||
</Attack>
|
||||
</Actions>
|
||||
|
@ -18,4 +18,14 @@
|
||||
</Id>
|
||||
|
||||
</Traits>
|
||||
|
||||
<Actions>
|
||||
<Attack>
|
||||
<Ranged>
|
||||
<MinRange>8.0</MinRange>
|
||||
<ProjectileSpeed>18.0</ProjectileSpeed>
|
||||
</Ranged>
|
||||
</Attack>
|
||||
</Actions>
|
||||
|
||||
</Entity>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user