1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

expose safeAttackRatio to AI config

This commit is contained in:
Ivan Savenko
2024-11-28 11:53:51 +00:00
parent 00492a60a7
commit b25702f15e
11 changed files with 23 additions and 21 deletions

View File

@@ -31,6 +31,7 @@ namespace NKAI
maxGoldPressure(0.3f),
retreatThresholdRelative(0.3),
retreatThresholdAbsoolute(10000),
safeAttackRatio(1.1),
maxpass(10),
pathfinderBucketsCount(1),
pathfinderBucketSize(32),
@@ -52,6 +53,7 @@ namespace NKAI
maxGoldPressure = node["maxGoldPressure"].Float();
retreatThresholdRelative = node["retreatThresholdRelative"].Float();
retreatThresholdAbsoolute = node["retreatThresholdAbsoolute"].Float();
safeAttackRatio = node["safeAttackRatio"].Float();
allowObjectGraph = node["allowObjectGraph"].Bool();
openMap = node["openMap"].Bool();
useFuzzy = node["useFuzzy"].Bool();