diff --git a/AI/FuzzyLite/.gitignore b/AI/FuzzyLite/.gitignore deleted file mode 100644 index 0def2755d..000000000 --- a/AI/FuzzyLite/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -# Compiled Object files -*.slo -*.lo -*.o -*.obj - -# Compiled Dynamic libraries -*.so -*.dylib -*.dll - -# Compiled Static libraries -*.lai -*.la -*.a -*.lib - -# Executables -*.exe -*.out -*.app diff --git a/AI/VCAI/Fuzzy.cpp b/AI/VCAI/Fuzzy.cpp index c08787aa4..21f8e1d94 100644 --- a/AI/VCAI/Fuzzy.cpp +++ b/AI/VCAI/Fuzzy.cpp @@ -473,7 +473,8 @@ float FuzzyHelper::evaluate (Goals::GatherArmy & g) //the more army we need, the more important goal //the more army we lack, the less important goal float army = g.hero->getArmyStrength(); - return g.value / std::max(g.value - army, 1000.0f); + float ratio = g.value / std::max(g.value - army, 2000.0f); //2000 is about the value of hero recruited from tavern + return 5 * (ratio / (ratio + 2)); //so 50% army gives 2.5, asymptotic 5 } float FuzzyHelper::evaluate (Goals::ClearWayTo & g)