public void Fight(Monster monster) { var comparison = MobElement.CompareTo(monster.MobElement); var powerDiff = comparison * VIKING_ADVANTAGE_WIN; //if (comparison > 0) //{ // powerDiff = VIKING_ADVANTAGE_WIN; //} //else //{ // powerDiff = comparison == 0 ? VIKING_NEUTRAL_WIN : VIKING_LOSS; //} Power += powerDiff; }
public void Regulate(double timeStep) { var comparison = MobElement.CompareTo(arena.Element); var powerDiff = comparison * VIKING_ARENA_POWER_CHANGE; }