rem: dmg.crush = parseInt(a.damage * a.crush); dmg.hack = parseInt(a.damage * a.hack); dmg.pierce = parseInt(a.damage * a.pierce); 
add: dmg.crush = a.damage * a.crush; dmg.hack = a.damage * a.hack; dmg.pierce = a.damage * a.pierce; 
context: function performAttack( evt ){	this.lastCombatTime = getGameTime();		var curr_hit = getGUIGlobal().newRandomSound("voice", "hit", this.traits.audio.path);	curr_hit.play();	// Attack logic.	var dmg = new DamageType();	if ( this.getRunState() )	{		console.write("" + this + " doing a charge attack!");		var a = this.actions.attack.charge;		dmg.crush = parseInt(a.damage * a.crush);		dmg.hack = parseInt(a.damage * a.hack);		dmg.pierce = parseInt(a.damage * a.pierce);		this.setRun( false );	}	else	{		var a = this.actions.attack.melee;		dmg.crush = parseInt(a.damage * a.crush);		dmg.hack = parseInt(a.damage * a.hack);		dmg.pierce = parseInt(a.damage * a.pierce);	}		// Add flank penalty	if(evt.target.traits.flankPenalty)	{		var flank = (evt.target.getAttackDirections()-1)*evt.target.traits.flankPenalty.value;		dmg.crush += dmg.crush * flank;		dmg.hack += dmg.hack * flank;		dmg.pierce += dmg.pierce * flank;	}	evt.target.damage( dmg, this );	}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/40e038b0a79ea6ac245734928d2a24cc674c5379/entity_functions.js/buggy/binaries/data/mods/official/scripts/entity_functions.js