Skip to content

Commit

Permalink
LoW7: Fix invalid use of aspects in [unit][ai]
Browse files Browse the repository at this point in the history
This doesn't quite produce what is presumed to be the intended result.
It does at least preserve the differing recruitment patterns though.

Includes the following recommendations from mattsc:

- Drop {AI_NO_SCOUTS} since the recruitment pattern contradicts it
- Drop attack_depth and grouping
- Keep the night-only aggression and caution change, even for the nagas
  • Loading branch information
CelticMinstrel committed Oct 24, 2018
1 parent 887b213 commit fe6f34c
Showing 1 changed file with 21 additions and 19 deletions.
Expand Up @@ -238,15 +238,6 @@
#ifdef EASY
extra_recruit=Orcish Archer, Orcish Crossbowman, Orcish Assassin, Orcish Grunt, Orcish Warrior, Goblin Spearman, Wolf Rider, Goblin Knight, Goblin Pillager
#endif

[ai]
{AI_NO_SCOUTS}
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "scout,fighter,fighter,archer,mixed fighter"}
{AI_SIMPLE_NIGHT_ASPECT aggression 0.75}
{AI_SIMPLE_NIGHT_ASPECT caution 0.0}
{AI_SIMPLE_NIGHT_ASPECT grouping no}
{AI_SIMPLE_NIGHT_ASPECT attack_depth 5}
[/ai]
[/unit]

[unit]
Expand All @@ -265,20 +256,31 @@
#ifdef HARD
extra_recruit=Troll Whelp, Troll, Troll Rocklobber, Troll Shaman, Troll Warrior, Troll Hero
#endif
[/unit]

[ai]
{AI_NO_SCOUTS}
[ai]
{AI_SIMPLE_NIGHT_ASPECT aggression 0.75}
{AI_SIMPLE_NIGHT_ASPECT caution 0.0}
[recruitment_instructions]
[recruit]
importance=0
[/recruit]
[pattern]
importance=1
leader_id=Truugl
#ifdef EASY
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter"}
type="fighter"
#else
{AI_SIMPLE_ALWAYS_ASPECT recruitment_pattern "fighter, mixed fighter, fighter, mixed fighter, fighter"}
type="fighter, mixed fighter, fighter, mixed fighter, fighter"
#endif
{AI_SIMPLE_NIGHT_ASPECT aggression 0.75}
{AI_SIMPLE_NIGHT_ASPECT caution 0.0}
{AI_SIMPLE_NIGHT_ASPECT attack_depth 5}
{AI_SIMPLE_NIGHT_ASPECT grouping offensive}
[/ai]
[/unit]
[/pattern]
[pattern]
importance=1
leader_id=Urug-Pir
type="scout,fighter,fighter,archer,mixed fighter"
[/pattern]
[/recruitment_instructions]
[/ai]
[/side]

### /ENEMIES ####
Expand Down

0 comments on commit fe6f34c

Please sign in to comment.