From 71e482ce7f19de137f69a6e2f925323141d52aea Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Sun, 4 Mar 2012 11:19:34 +0000 Subject: [PATCH] Few tweaks for discrete values. --- AI/VCAI/Fuzzy.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AI/VCAI/Fuzzy.cpp b/AI/VCAI/Fuzzy.cpp index 468c6376b..e490e66a9 100644 --- a/AI/VCAI/Fuzzy.cpp +++ b/AI/VCAI/Fuzzy.cpp @@ -163,15 +163,15 @@ void FuzzyHelper::initTacticalAdvantage() BOOST_FOREACH (auto val, helper) { - val->addTerm (new fl::ShoulderTerm("LOW", 3, 9, true)); - val->addTerm (new fl::TriangularTerm("MEDIUM", 7, 13)); - val->addTerm (new fl::ShoulderTerm("HIGH", 11, 16, false)); + val->addTerm (new fl::ShoulderTerm("LOW", 3, 8.1, true)); + val->addTerm (new fl::TriangularTerm("MEDIUM", 6.9, 13.1)); + val->addTerm (new fl::ShoulderTerm("HIGH", 10.5, 16, false)); engine.addInputLVar(val); } castleWalls = new fl::InputLVar("CastleWalls"); castleWalls->addTerm(new fl::SingletonTerm("NONE", CGTownInstance::NONE)); castleWalls->addTerm(new fl::TrapezoidalTerm("MEDIUM", CGTownInstance::FORT, 2.5)); - castleWalls->addTerm(new fl::ShoulderTerm("HIGH", CGTownInstance::CITADEL, CGTownInstance::CASTLE)); + castleWalls->addTerm(new fl::ShoulderTerm("HIGH", CGTownInstance::CITADEL - 0.1, CGTownInstance::CASTLE)); engine.addInputLVar(castleWalls); bankPresent = new fl::InputLVar("Bank");