Skip to content

Commit

Permalink
AI: deprecate ai_depth related macros
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Nov 16, 2018
1 parent f00f9e3 commit c0bc8c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
14 changes: 1 addition & 13 deletions data/core/macros/ai.cfg
Expand Up @@ -375,19 +375,7 @@
#enddef

#define AI_SCALE_ATTACK_DEPTH_BY_DIFFICULTY
# change attack depth depending on difficulty
#ifdef EASY
{AI_SIMPLE_ALWAYS_ASPECT attack_depth 3}
#endif

#ifdef NORMAL
{AI_SIMPLE_ALWAYS_ASPECT attack_depth 4}
#endif

#ifdef HARD
{AI_SIMPLE_ALWAYS_ASPECT attack_depth 5}
#endif

#deprecated 3 1.17 The attack_depth aspect has no effect on the AI any more.
#enddef

############################################################
Expand Down
7 changes: 2 additions & 5 deletions data/core/macros/utils.cfg
Expand Up @@ -122,14 +122,11 @@
#enddef

#define ATTACK_DEPTH EASY_VALUE NORMAL_VALUE HARD_VALUE
# Macro to define AI attack depth for different difficulty levels
# (set it to 1-6)
{QUANTITY attack_depth {EASY_VALUE} {NORMAL_VALUE} {HARD_VALUE}}
#deprecated 3 1.17 The attack_depth aspect has no effect on the AI any more.
#enddef

#define ATTACK_DEPTH4 EASY_VALUE NORMAL_VALUE HARD_VALUE NIGHTMARE_VALUE
# Four-difficulty version of ATTACK_DEPTH
{QUANTITY4 attack_depth {EASY_VALUE} {NORMAL_VALUE} {HARD_VALUE} {NIGHTMARE_VALUE}}
#deprecated 3 1.17 The attack_depth aspect has no effect on the AI any more.
#enddef

#define NO_SCOUTS
Expand Down

0 comments on commit c0bc8c5

Please sign in to comment.