mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Merge pull request #551 from dydzio0614/DisableTacticalAdvantage
Disable tactical advantage engine until rework
This commit is contained in:
commit
5f87c98186
@ -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 @@ public:
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user