XML and script fixes for running and pass-through-allies attribute.

This was SVN commit r3854.
This commit is contained in:
Matei
2006-05-13 04:08:41 +00:00
parent f40b90570c
commit 404c4221df
2 changed files with 4 additions and 0 deletions
@@ -347,9 +347,11 @@ function performAttack( evt )
var flank = (evt.target.getAttackDirections()-1)*evt.target.traits.flank_penalty.value;
if ( this.getRunState() )
{
console.write("" + this + " doing a charge attack!");
dmg.crush = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.crush);
dmg.hack = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.hack);
dmg.pierce = parseInt(this.actions.attack.charge.damage * this.actions.attack.charge.pierce);
this.setRun( false );
}
else
{
@@ -88,6 +88,8 @@
<Regen_Rate>10.0</Regen_Rate>
<Decay_Rate>5.0</Decay_Rate>
</Run>
<Pass_Through_Allies>true</Pass_Through_Allies>
</Move>
<Patrol />