Skip to content
Permalink
Browse files

Merge pull request #551 from dydzio0614/DisableTacticalAdvantage

Disable tactical advantage engine until rework
  • Loading branch information...
alexvins committed Feb 13, 2019
2 parents 1e8fc51 + e6baba3 commit 5f87c98186e9f145c57c036422b1d918b52edff8
Showing with 3 additions and 3 deletions.
  1. +2 −2 AI/VCAI/FuzzyEngines.cpp
  2. +1 −1 AI/VCAI/FuzzyEngines.h
@@ -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);
@@ -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;
}
@@ -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();

0 comments on commit 5f87c98

Please sign in to comment.
You can’t perform that action at this time.