Commit graph

638 commits

Author SHA1 Message Date
mattsc
0e87d7fd43 High XP attack CA: respect the default 'avoid' aspect 2016-09-17 16:41:41 -07:00
mattsc
b84ec9f775 Micro AIs: fix attacks aspect setup when ca_id= key not given
This is an optional key of the [micro_ai] tag.
2016-09-17 08:33:55 -07:00
mattsc
c03bd5411f Various Lua AI code: use simpler and faster new syntax
No change in behavior.
2016-09-04 18:54:26 -07:00
mattsc
d781e6263a High XP attacks: adapt other AIs to existence of new CA
This means:
1. Adding the new CA to AI configs
2. Removing it whenever the combat CA is removed
3. Preventing conflicts for AIs that previously used overlapping scores
2016-09-03 20:00:12 -07:00
mattsc
f76e2d0c59 High XP attack CA: remove a debug message
Also remove a related message from the test scenario.
2016-09-03 16:47:15 -07:00
mattsc
390d1fdc10 High XP CA: simplify attack conditions with 1.13 syntax 2016-09-03 07:03:00 -07:00
mattsc
6950ee1dd0 New high_xp_attack candidate action for default AI
This CA performs attacks on enemy units so close to leveling that the
default AI's combat CA would not attack them (with some exceptions).
This is meant to keep players from being able to exploit this known
weakness of the default AI.
2016-09-02 20:22:17 -07:00
mattsc
f7d9d747c0 New Micro AI: Assassin Squad AI 2016-09-01 14:41:17 -07:00
fendrin
8eea8122f9 Replace FOREACH 2016-08-06 06:20:41 +02:00
Celtic Minstrel
95c4556a59 fai -> wfl in FormulaAI files 2016-07-29 12:52:10 -04:00
mattsc
3f2df87bed Recruit rushers AIs: adapt syntax to recent AI changes
This caused an error message and recruiting to be abandoned when the
recruit rushers Micro AI was used for two different sides in the same
scenario.  It was only presents since the AI refactoring done during
1.13.4+dev and did not affect any release.
2016-07-27 19:58:22 -07:00
Celtic Minstrel
232709ea57 A few Micro AI tweaks
- For MAIs using aspects, make the facet ID more unique
- Only shallow-preparse the [micro_ai], rather than fully preparsing it
  (This is so that filters in Micro AIs can use $this_unit if needed)
2016-07-15 16:15:44 -04:00
Celtic Minstrel
01d3156d47 Micro AIs: Fix not properly deleting aspects
(This affects the Protect and Wolves MAIs)
2016-07-15 16:07:22 -04:00
Celtic Minstrel
21e79b5f6a Protect Micro AI: Fix missing aspect ID 2016-07-15 15:50:24 -04:00
mattsc
20b07c6379 Micro AIs: internal changes to AI and CA ID handling
This is needed to fix some corner cases of multiple Micro AI changes
during a scenario, such as for the bats in the Goto test scenario.
2016-04-02 07:54:57 -07:00
mattsc
91130a3df2 Fix error in Formula AI test scenario 2016-03-30 07:33:37 -07:00
Celtic Minstrel
74ce7454d9 Random Recruit MAI test: Add second [probability] tag 2016-03-30 01:04:44 -04:00
Celtic Minstrel
85a498ba15 Fast MAI: Correctly honour the attacks aspect if set 2016-03-30 01:04:42 -04:00
Celtic Minstrel
7c5c79aa20 Update all FormulaAI scripts for renamed keys
Also, note the changes in the changelog and RN
2016-03-29 13:04:21 -04:00
mattsc
ff11fecfe3 Guardians MAI test scenario: update portrait paths 2016-03-28 17:42:50 -07:00
Celtic Minstrel
c8b47e48a1 Simple Attack MAI: Fix filters being ignored 2016-03-28 14:59:38 -04:00
Celtic Minstrel
d4104e01c5 Rush Recruit MAI: Pass requested CA score to recruit engine 2016-03-28 14:58:53 -04:00
Celtic Minstrel
32c3abbbaf Micro AIs: Distinguish attribute and tag parameters and copy all of the latter
(Though currently only Protect Unit and Random Recruiting actually honour multiples of any tag.)
2016-03-28 12:54:25 -04:00
mattsc
c82ae94ae9 Random Recruiting Micro AI: fix [probability] tag 2016-03-28 07:22:52 -07:00
mattsc
1e3d80df0b Micro AI tests: do not change controller to null for active side 2016-03-27 20:39:02 -07:00
mattsc
9ed1b39b90 Random Recruiting MAI: use require() instead of dofile() 2016-03-27 20:39:02 -07:00
mattsc
263227852a Micro AI CAs: use consistent indenting 2016-03-27 20:39:02 -07:00
Celtic Minstrel
678444133e Suppress end turn confirmation in all interactive test scenarios 2016-03-27 15:13:24 -04:00
Celtic Minstrel
ba5eb7bc91 Move some AI test scenarios from data/ to data/ai/scenarios/
(And update them to modern syntax)
2016-03-27 15:13:23 -04:00
Celtic Minstrel
c79874086d MicroAIs: Update all to use the new [args] syntax
Except for Protect Unit, all of them seem to still work correctly.
2016-03-27 15:13:21 -04:00
Celtic Minstrel
c19ddba30a MicroAIs: Refactor code to make it easy for add-ons to add new ones 2016-03-26 21:57:15 -04:00
Celtic Minstrel
6ed34069fe Micro AIs: Remove tests for deprecated syntax 2016-03-26 21:57:14 -04:00
Celtic Minstrel
7df4fc3970 Fix [modify_side]switch_ai=data/dev/idle_ai.cfg 2016-03-26 16:39:43 -04:00
mattsc
df5714801c AI Arena: fix the menus 2016-03-25 14:15:34 -07:00
mattsc
09ee5c7a4b AI Arena: update [option] tags to new syntax 2016-03-25 13:58:52 -07:00
mattsc
e48908f42f Fix FAI experimental recruitment setup 2016-03-25 09:40:13 -07:00
mattsc
202aa804bb AI Arena: remove akihara_recruitment test
Since akihara_recruitment has been removed.
2016-03-24 19:34:12 -07:00
Celtic Minstrel
16ed12f7de Fix FormulaAI lurkers example 2016-03-24 17:49:02 -04:00
Celtic Minstrel
d48060bc00 Fix external Lua CA example for new syntax 2016-03-24 17:49:02 -04:00
mattsc
cccf1f8604 Change id and description of the former "Strong AI" 2016-03-24 12:57:35 -07:00
mattsc
a218e6b659 Move "Strong AI" to ai/dev/ and rename file
This means that it is now only available in debug mode.  It is not
significantly enough different from the default to be one of the main
options.
2016-03-24 12:57:35 -07:00
mattsc
c04f406bd8 Old patrol.lua: fix indenting and add deprecation message 2016-03-24 12:57:35 -07:00
mattsc
dd2d193cbd Remove move_to_targets test scenario
This was useful when the composite AI was introduced (in Wesnoth 1.7),
but does not serve a purpose any more now.
2016-03-24 10:56:45 -07:00
Celtic Minstrel
57e41387a8 Remove Strategy Formulation with RCA stage 2016-03-24 12:39:37 -04:00
Celtic Minstrel
ab443bcc18 Remove experimental recruitment 2016-03-24 12:06:10 -04:00
mattsc
be505342bf Lua AI test scenarios: rename files 2016-03-24 08:16:03 -07:00
mattsc
5774872e04 Lua AI test scenarios: update id= and name= keys 2016-03-24 08:09:59 -07:00
mattsc
961d134ee2 Fix and simplify Lua AI test scenario 2016-03-24 08:07:01 -07:00
Celtic Minstrel
d73a2486ba Deleted AI definition referencing the removed old recruitment CA 2016-03-24 00:08:11 -04:00
Celtic Minstrel
a23a368c20 Remove Akihara's recruitment and battle evaluation 2016-03-24 00:08:10 -04:00