Skip to content

Commit

Permalink
Merge pull request #551 from dydzio0614/DisableTacticalAdvantage
Browse files Browse the repository at this point in the history
Disable tactical advantage engine until rework
  • Loading branch information
alexvins committed Feb 13, 2019
2 parents 1e8fc51 + e6baba3 commit 5f87c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AI/VCAI/FuzzyEngines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ TacticalAdvantageEngine::TacticalAdvantageEngine()
float TacticalAdvantageEngine::getTacticalAdvantage(const CArmedInstance * we, const CArmedInstance * enemy)
{
float output = 1;
try
/*try //TODO: rework this engine, it tends to produce nonsense output
{
armyStructure ourStructure = evaluateArmyStructure(we);
armyStructure enemyStructure = evaluateArmyStructure(enemy);
Expand Down Expand Up @@ -248,7 +248,7 @@ float TacticalAdvantageEngine::getTacticalAdvantage(const CArmedInstance * we, c
log << names[i] << ": " << tab[i]->getValue() << " ";
logAi->error(log.str());
assert(false);
}
}*/

return output;
}
Expand Down
2 changes: 1 addition & 1 deletion AI/VCAI/FuzzyEngines.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class engineBase //subclasses create fuzzylite variables with "new" that are not
engineBase();
};

class TacticalAdvantageEngine : public engineBase
class TacticalAdvantageEngine : public engineBase //TODO: rework this engine, it does not work well (example: AI hero with 140 beholders attacked 150 beholders - engine lowered danger 50000 -> 35000)
{
public:
TacticalAdvantageEngine();
Expand Down

0 comments on commit 5f87c98

Please sign in to comment.