Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
fix warrior costcalculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Broder Peters committed Apr 20, 2016
1 parent ce59b63 commit 2e726a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AntWars/Helper/CostCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public static double calculateCostCarry(int viewRange, int moveRangeFactor, int
/// <param name="inventory">Die Inventargröße der Ameise.</param>
/// <returns>Die berechneten Kosten der Ameise.</returns>
public static double calculateCostWarrior(int attackPower, int viewRange, int moveRangeFactor, int inventory, int health, string playername) {
double viewRangeWithQuantifier = viewRange * VIEWRANGE_SCOUT_QUANTIFIER;
double inventoryWithQuantifier = inventory * INVENTORY_SCOUT_QUANTIFIER;
double moveRangeFactorWithQuantifier = moveRangeFactor * MOVERANGE_SCOUT_QUANTIFIER;
double viewRangeWithQuantifier = viewRange * VIEWRANGE_WARRIOR_QUANTIFIER;
double inventoryWithQuantifier = inventory * INVENTORY_WARRIOR_QUANTIFIER;
double moveRangeFactorWithQuantifier = moveRangeFactor * MOVERANGE_WARRIOR_QUANTIFIER;
double attackPowerWithQuantifier = attackPower * ATTACKPOWER_WARRIOR_QUANTIFIER;
double healthWithQuantifier = health * HEALTH_WARRIOR_QUANTIFIER;
return calculate(viewRangeWithQuantifier, moveRangeFactorWithQuantifier, inventoryWithQuantifier, attackPowerWithQuantifier, healthWithQuantifier);
Expand Down

0 comments on commit 2e726a5

Please sign in to comment.