src/evaluators/AttackEvaluator.js
/**
	* Calculates the desirability. It's a score between 0 and 1 representing the desirability
	* of a goal.
	*
	* @param {Enemy} owner - The owner of this goal evaluator.
	* @return {Number} The desirability.
	*/
Calculates the desirability. It's a score between 0 and 1 representing the desirability
of a goal.

@param {Enemy} owner - The owner of this goal evaluator.
@return {Number} The desirability.
Calculates the desirability . It ' s a score between 0 and 1 representing the desirability of a goal . @param { Enemy } owner - The owner of this goal evaluator . @return { Number } The desirability .
calculateDesirability( owner ) {
		let desirability = 0;
		if ( owner.targetSystem.hasTarget() ) {
			desirability = this.tweaker * Feature.totalWeaponStrength( owner ) * Feature.health( owner );
		}
		return desirability;
	}
calculateDesirability ( owner ) { let desirability = 0 ; if ( owner . targetSystem . hasTarget ( ) ) { desirability = this . tweaker * Feature . totalWeaponStrength ( owner ) * Feature . health ( owner ) ; } return desirability ; }
Calculates the desirability.
Calculates the desirability .