- Further work on random trades (experimental, disabled by default.)

This commit is contained in:
Agetian
2017-09-01 14:53:44 +00:00
parent 01e1c2ab0a
commit badf68b80a
6 changed files with 39 additions and 7 deletions

View File

@@ -16,10 +16,14 @@ ATTACK_INTO_TRADE_WHEN_TAPPED_OUT=false
USE_BERSERK_AGGRESSIVELY=false
# Trade blocking preferences (enabling these will make the AI trade more aggressively when considering blocks,
# but only with creatures that are worse in abilities and have lower or the same power as the attacker)
# but only with creatures that are worse in abilities and have lower or the same power as the attacker). Note
# that the first option serves as a master toggle. If it is disabled, the following related options have no effect.
ENABLE_RANDOM_FAVORABLE_TRADES_ON_BLOCK=false
# If enabled, the AI will consider trade blocking even if its creature count is lower than the opponent's
RANDOMLY_TRADE_EVEN_WHEN_HAVE_LESS_CREATS=false
# If the previous option is enabled, then the next option controls how big of a handicap in creature count the AI
# is allowed to have to still decide to trade
MAX_DIFF_IN_CREATURE_COUNT_TO_TRADE=1
# Min and max chance to randomly aggressively trade when blocking (note that it will become 100 if the AI is in danger)
MIN_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=20
MAX_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=65

View File

@@ -16,10 +16,14 @@ ATTACK_INTO_TRADE_WHEN_TAPPED_OUT=false
USE_BERSERK_AGGRESSIVELY=false
# Trade blocking preferences (enabling these will make the AI trade more aggressively when considering blocks,
# but only with creatures that are worse in abilities and have lower or the same power as the attacker)
# but only with creatures that are worse in abilities and have lower or the same power as the attacker). Note
# that the first option serves as a master toggle. If it is disabled, the following related options have no effect.
ENABLE_RANDOM_FAVORABLE_TRADES_ON_BLOCK=false
# If enabled, the AI will consider trade blocking even if its creature count is lower than the opponent's
RANDOMLY_TRADE_EVEN_WHEN_HAVE_LESS_CREATS=false
# If the previous option is enabled, then the next option controls how big of a handicap in creature count the AI
# is allowed to have to still decide to trade
MAX_DIFF_IN_CREATURE_COUNT_TO_TRADE=1
# Min and max chance to randomly aggressively trade when blocking (note that it will become 100 if the AI is in danger)
MIN_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=20
MAX_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=65

View File

@@ -16,10 +16,14 @@ ATTACK_INTO_TRADE_WHEN_TAPPED_OUT=false
USE_BERSERK_AGGRESSIVELY=true
# Trade blocking preferences (enabling these will make the AI trade more aggressively when considering blocks,
# but only with creatures that are worse in abilities and have lower or the same power as the attacker)
# but only with creatures that are worse in abilities and have lower or the same power as the attacker). Note
# that the first option serves as a master toggle. If it is disabled, the following related options have no effect.
ENABLE_RANDOM_FAVORABLE_TRADES_ON_BLOCK=true
# If enabled, the AI will consider trade blocking even if its creature count is lower than the opponent's
RANDOMLY_TRADE_EVEN_WHEN_HAVE_LESS_CREATS=true
# If the previous option is enabled, then the next option controls how big of a handicap in creature count the AI
# is allowed to have to still decide to trade
MAX_DIFF_IN_CREATURE_COUNT_TO_TRADE=1
# Min and max chance to randomly aggressively trade when blocking (note that it will become 100 if the AI is in danger)
MIN_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=20
MAX_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=65

View File

@@ -16,10 +16,14 @@ ATTACK_INTO_TRADE_WHEN_TAPPED_OUT=true
USE_BERSERK_AGGRESSIVELY=true
# Trade blocking preferences (enabling these will make the AI trade more aggressively when considering blocks,
# but only with creatures that are worse in abilities and have lower or the same power as the attacker)
# but only with creatures that are worse in abilities and have lower or the same power as the attacker). Note
# that the first option serves as a master toggle. If it is disabled, the following related options have no effect.
ENABLE_RANDOM_FAVORABLE_TRADES_ON_BLOCK=false
# If enabled, the AI will consider trade blocking even if its creature count is lower than the opponent's
RANDOMLY_TRADE_EVEN_WHEN_HAVE_LESS_CREATS=false
# If the previous option is enabled, then the next option controls how big of a handicap in creature count the AI
# is allowed to have to still decide to trade
MAX_DIFF_IN_CREATURE_COUNT_TO_TRADE=1
# Min and max chance to randomly aggressively trade when blocking (note that it will become 100 if the AI is in danger)
MIN_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=20
MAX_CHANCE_TO_RANDOMLY_TRADE_ON_BLOCK=65