mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Fix typo: Absoolute -> Absolute
This commit is contained in:
@ -548,7 +548,7 @@ std::optional<BattleAction> AIGateway::makeSurrenderRetreatDecision(const Battle
|
|||||||
double fightRatio = ourStrength / (double)battleState.getEnemyStrength();
|
double fightRatio = ourStrength / (double)battleState.getEnemyStrength();
|
||||||
|
|
||||||
// if we have no towns - things are already bad, so retreat is not an option.
|
// if we have no towns - things are already bad, so retreat is not an option.
|
||||||
if(cb->getTownsInfo().size() && ourStrength < nullkiller->settings->getRetreatThresholdAbsoolute() && fightRatio < nullkiller->settings->getRetreatThresholdRelative() && battleState.canFlee)
|
if(cb->getTownsInfo().size() && ourStrength < nullkiller->settings->getRetreatThresholdAbsolute() && fightRatio < nullkiller->settings->getRetreatThresholdRelative() && battleState.canFlee)
|
||||||
{
|
{
|
||||||
return BattleAction::makeRetreat(battleState.ourSide);
|
return BattleAction::makeRetreat(battleState.ourSide);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ namespace NKAI
|
|||||||
scoutHeroTurnDistanceLimit(5),
|
scoutHeroTurnDistanceLimit(5),
|
||||||
maxGoldPressure(0.3f),
|
maxGoldPressure(0.3f),
|
||||||
retreatThresholdRelative(0.3),
|
retreatThresholdRelative(0.3),
|
||||||
retreatThresholdAbsoolute(10000),
|
retreatThresholdAbsolute(10000),
|
||||||
safeAttackRatio(1.1),
|
safeAttackRatio(1.1),
|
||||||
maxpass(10),
|
maxpass(10),
|
||||||
pathfinderBucketsCount(1),
|
pathfinderBucketsCount(1),
|
||||||
@ -52,7 +52,7 @@ namespace NKAI
|
|||||||
pathfinderBucketSize = node["pathfinderBucketSize"].Integer();
|
pathfinderBucketSize = node["pathfinderBucketSize"].Integer();
|
||||||
maxGoldPressure = node["maxGoldPressure"].Float();
|
maxGoldPressure = node["maxGoldPressure"].Float();
|
||||||
retreatThresholdRelative = node["retreatThresholdRelative"].Float();
|
retreatThresholdRelative = node["retreatThresholdRelative"].Float();
|
||||||
retreatThresholdAbsoolute = node["retreatThresholdAbsoolute"].Float();
|
retreatThresholdAbsolute = node["retreatThresholdAbsolute"].Float();
|
||||||
safeAttackRatio = node["safeAttackRatio"].Float();
|
safeAttackRatio = node["safeAttackRatio"].Float();
|
||||||
allowObjectGraph = node["allowObjectGraph"].Bool();
|
allowObjectGraph = node["allowObjectGraph"].Bool();
|
||||||
openMap = node["openMap"].Bool();
|
openMap = node["openMap"].Bool();
|
||||||
|
@ -29,7 +29,7 @@ namespace NKAI
|
|||||||
int pathfinderBucketSize;
|
int pathfinderBucketSize;
|
||||||
float maxGoldPressure;
|
float maxGoldPressure;
|
||||||
float retreatThresholdRelative;
|
float retreatThresholdRelative;
|
||||||
float retreatThresholdAbsoolute;
|
float retreatThresholdAbsolute;
|
||||||
float safeAttackRatio;
|
float safeAttackRatio;
|
||||||
bool allowObjectGraph;
|
bool allowObjectGraph;
|
||||||
bool useTroopsFromGarrisons;
|
bool useTroopsFromGarrisons;
|
||||||
@ -42,7 +42,7 @@ namespace NKAI
|
|||||||
int getMaxPass() const { return maxpass; }
|
int getMaxPass() const { return maxpass; }
|
||||||
float getMaxGoldPressure() const { return maxGoldPressure; }
|
float getMaxGoldPressure() const { return maxGoldPressure; }
|
||||||
float getRetreatThresholdRelative() const { return retreatThresholdRelative; }
|
float getRetreatThresholdRelative() const { return retreatThresholdRelative; }
|
||||||
float getRetreatThresholdAbsoolute() const { return retreatThresholdAbsoolute; }
|
float getRetreatThresholdAbsolute() const { return retreatThresholdAbsolute; }
|
||||||
float getSafeAttackRatio() const { return safeAttackRatio; }
|
float getSafeAttackRatio() const { return safeAttackRatio; }
|
||||||
int getMaxRoamingHeroes() const { return maxRoamingHeroes; }
|
int getMaxRoamingHeroes() const { return maxRoamingHeroes; }
|
||||||
int getMainHeroTurnDistanceLimit() const { return mainHeroTurnDistanceLimit; }
|
int getMainHeroTurnDistanceLimit() const { return mainHeroTurnDistanceLimit; }
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"pathfinderBucketsCount" : 1, // old value: 3,
|
"pathfinderBucketsCount" : 1, // old value: 3,
|
||||||
"pathfinderBucketSize" : 32, // old value: 7,
|
"pathfinderBucketSize" : 32, // old value: 7,
|
||||||
"retreatThresholdRelative" : 0.3,
|
"retreatThresholdRelative" : 0.3,
|
||||||
"retreatThresholdAbsoolute" : 10000,
|
"retreatThresholdAbsolute" : 10000,
|
||||||
"safeAttackRatio" : 1.1,
|
"safeAttackRatio" : 1.1,
|
||||||
"useFuzzy" : false
|
"useFuzzy" : false
|
||||||
},
|
},
|
||||||
@ -28,7 +28,7 @@
|
|||||||
"pathfinderBucketsCount" : 1, // old value: 3,
|
"pathfinderBucketsCount" : 1, // old value: 3,
|
||||||
"pathfinderBucketSize" : 32, // old value: 7,
|
"pathfinderBucketSize" : 32, // old value: 7,
|
||||||
"retreatThresholdRelative" : 0.3,
|
"retreatThresholdRelative" : 0.3,
|
||||||
"retreatThresholdAbsoolute" : 10000,
|
"retreatThresholdAbsolute" : 10000,
|
||||||
"safeAttackRatio" : 1.1,
|
"safeAttackRatio" : 1.1,
|
||||||
"useFuzzy" : false
|
"useFuzzy" : false
|
||||||
},
|
},
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"pathfinderBucketsCount" : 1, // old value: 3,
|
"pathfinderBucketsCount" : 1, // old value: 3,
|
||||||
"pathfinderBucketSize" : 32, // old value: 7,
|
"pathfinderBucketSize" : 32, // old value: 7,
|
||||||
"retreatThresholdRelative" : 0.3,
|
"retreatThresholdRelative" : 0.3,
|
||||||
"retreatThresholdAbsoolute" : 10000,
|
"retreatThresholdAbsolute" : 10000,
|
||||||
"safeAttackRatio" : 1.1,
|
"safeAttackRatio" : 1.1,
|
||||||
"useFuzzy" : false
|
"useFuzzy" : false
|
||||||
},
|
},
|
||||||
@ -62,7 +62,7 @@
|
|||||||
"pathfinderBucketsCount" : 1, // old value: 3,
|
"pathfinderBucketsCount" : 1, // old value: 3,
|
||||||
"pathfinderBucketSize" : 32, // old value: 7,
|
"pathfinderBucketSize" : 32, // old value: 7,
|
||||||
"retreatThresholdRelative" : 0.3,
|
"retreatThresholdRelative" : 0.3,
|
||||||
"retreatThresholdAbsoolute" : 10000,
|
"retreatThresholdAbsolute" : 10000,
|
||||||
"safeAttackRatio" : 1.1,
|
"safeAttackRatio" : 1.1,
|
||||||
"useFuzzy" : false
|
"useFuzzy" : false
|
||||||
},
|
},
|
||||||
@ -79,7 +79,7 @@
|
|||||||
"pathfinderBucketsCount" : 1, // old value: 3,
|
"pathfinderBucketsCount" : 1, // old value: 3,
|
||||||
"pathfinderBucketSize" : 32, // old value: 7,
|
"pathfinderBucketSize" : 32, // old value: 7,
|
||||||
"retreatThresholdRelative" : 0.3,
|
"retreatThresholdRelative" : 0.3,
|
||||||
"retreatThresholdAbsoolute" : 10000,
|
"retreatThresholdAbsolute" : 10000,
|
||||||
"safeAttackRatio" : 1.1,
|
"safeAttackRatio" : 1.1,
|
||||||
"useFuzzy" : false
|
"useFuzzy" : false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user