Commit graph

1020 commits

Author SHA1 Message Date
mattsc
fd29559daa Fix some indenting in AI recruiting functions 2013-10-26 19:13:35 -07:00
mattsc
6ad899cbf5 [micro_ai] tag: remove now unneeded code and comment 2013-10-26 18:33:26 -07:00
mattsc
ed10e8e8a8 [micro_ai] tag: remove code for old-style CA syntax
All Micro AIs have now been converted to using external CAs.
2013-10-26 18:31:11 -07:00
mattsc
436f36c80a Recruiting MAIs: get rid of recruiting_type= key
The previous value of recruiting_type= now goes directly into ai_type=.
 Also add syntax translation and deprecation message.
2013-10-26 18:23:55 -07:00
mattsc
6fb7c46dbe Both Recruiting MAIs: switch to using external CAs
This includes disabling the rush recruiter for the time being, as the
engine files it uses do not yet use the external CAs.  It will be
re-enabled once those have been converted as well.
2013-10-26 17:26:37 -07:00
mattsc
323595623b Protect Unit MAI: switch to using external CAs
Also remove the code for the parameter selection dialog.  It hasn't
been used in a long time and we can always get it back from the git
history, if needed.
2013-10-26 13:15:18 -07:00
mattsc
cb6c1cd9e6 Bottleneck Defense MAI: switch to using external CAs 2013-10-26 12:27:01 -07:00
mattsc
fe16335132 Healer Support MAI: switch to using external CAs 2013-10-26 11:56:42 -07:00
mattsc
4d92a3068e All Remaining Animal MAIs: switch to using external CAs 2013-10-26 10:03:07 -07:00
mattsc
d486c093ac Swarm MAI: switch to using external CAs 2013-10-25 22:22:11 -07:00
mattsc
f308a26dcb Hunter MAI: switch to using external CAs 2013-10-25 16:41:38 -07:00
mattsc
02aa84e304 Patrol MAI: use 'patrol' instead of 'patrol_unit' for ai_type
... since this is not a behavior CA any more now.  Also add syntax
translation and deprecation message.
2013-10-25 16:06:46 -07:00
mattsc
c6e8f69d57 Hunter MAI: add syntax translation and deprecation message
So that the ai_type=hunter_unit syntax still works for the time being.
2013-10-25 16:03:11 -07:00
mattsc
d6db87f7c0 [micro_ai] tag setup: remove all behavior (sticky) CA related code
BCAs don't work with the external CA mechanism and are therefore not
used any more in the Micro AIs.
2013-10-25 07:09:49 -07:00
mattsc
84f9548510 Hunter MAI: change from behavior CAs to side-wide CAs
This also involves renaming it from hunter_unit to hunter.
2013-10-25 07:09:49 -07:00
mattsc
b13a9d98d9 All Guardian MAIs: switch to using external CAs 2013-10-24 21:00:38 -07:00
mattsc
fd66563c90 All Guardian MAIs: change from behavior CAs to side-wide CAs
Only side-wide CAs can use the external CAs, and there are some other
changes we want to make as well that require this.
2013-10-24 21:00:38 -07:00
mattsc
851ea73cc9 Patrol MAI: switch to using external CAs
Also need to disable the zone guardian in the scenario for the time
being, until the guardian MAIs have also been converted.
2013-10-24 19:52:53 -07:00
mattsc
909d33ca77 Patrol MAI: change from behavior CA to side-wide CA
Only side-wide CAs can use the external CAs, and there are some other
changes we want to make as well that require this.
2013-10-24 19:41:43 -07:00
mattsc
ea99f746c9 Simple Attack MAI: switch to using external CAs 2013-10-24 19:38:56 -07:00
mattsc
68e8f8e610 Hang Out MAI: switch to using external CAs 2013-10-24 19:38:56 -07:00
mattsc
d7e3b87584 Messenger MAI: switch to using external CAs 2013-10-24 13:33:09 -07:00
mattsc
ff2ead45bf Goto MAI: switch to using external CAs 2013-10-24 12:28:28 -07:00
mattsc
79e28544a0 Lurkers MAI: switch to using external CAs 2013-10-24 08:07:16 -07:00
mattsc
1e8fe60b3a [micro_ai] tag: add code for using external CAs
This means that we can get rid of the engine definition macros once all
MAIs have been switched to external CAs.
2013-10-24 08:05:14 -07:00
mattsc
d5b994c0bb Lua AI: make persistent data variable work with external CAs
It was previously being set correctly by the engine, but was not
accessible from the Lua AI.
2013-10-23 18:39:26 -07:00
mattsc
e9fd0d51d8 Guardian MAI test scenario: switch to new guardian MAI syntax 2013-10-22 13:11:55 -07:00
mattsc
a11e296808 Patrols MAI test scenario: switch to new guardian MAI syntax
There is a guardian unit in the Patrols scenario
2013-10-22 13:04:36 -07:00
mattsc
e57d0945f0 Guardian MAIs: rename internal engine functions and CAs
This shouldn't affect anything else, it is simply done for consistency
(to reflect the recent syntax changes).
2013-10-22 12:52:52 -07:00
mattsc
23e4dda2e8 Guardian MAIs: add syntax translation and deprecation message
So that the ai_type=guardian_unit guardian_type=... syntax still works
for the time being.
2013-10-22 12:52:51 -07:00
mattsc
276e1b8709 Guardian MAIs: get rid of guardian_type= key
The previous value of guardian_type= now goes directly into ai_type=
2013-10-22 12:52:51 -07:00
mattsc
d2ecec4db1 Micro AIs: split up Guardian MAI engine file
... into a separate file for each animal AI. This is a first step
toward separating the guardian MAIs, as keeping them together is not
needed any more.
2013-10-22 12:52:50 -07:00
mattsc
227527ee61 Animals MAIs: rename internal engine functions and CAs
This shouldn't affect anything else, it is simply done for consistency
(to reflect the recent syntax changes).
2013-10-22 09:36:10 -07:00
mattsc
51f1546c40 Wolves MAI engine: don't load unused library file 2013-10-22 09:33:46 -07:00
mattsc
a862f928ec Big Animals MAI engine: don't load two unused libraries 2013-10-22 09:32:10 -07:00
mattsc
fc0fe9ef3f Wolves MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:05:05 -07:00
mattsc
35e9f62185 Dragon MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:51 -07:00
mattsc
ced903bd3a Animals MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:41 -07:00
mattsc
ecc7fc94fe Swarm MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:11 -07:00
mattsc
da9512bb49 Animals MAIs: add syntax translation and deprecation message
So that the ai_type=animals animal_type=... syntax still works for the
time being.
2013-10-22 08:01:24 -07:00
mattsc
7388dbbee5 Animals MAIs: get rid of animal_type= key
The previous value of animal_type= now goes directly into ai_type=
2013-10-22 07:48:32 -07:00
mattsc
361e56c6a1 Micro AIs: split up Animals MAI engine file
... into a separate file for each animal AI.  This is a first step
toward separating the animal MAIs, as keeping them together is not
needed any more.
2013-10-21 20:15:09 -07:00
flix
a3af62c136 Add key save_on_negative_income. 2013-10-07 01:24:10 +02:00
flix
22a2ac4e0a Change default values of recruitment_save_gold.
And change behavior of attribute spend_all_gold.
(Now "-1" means "infinity")
2013-10-04 15:14:26 +02:00
flix
b08afe2f1a Change behavior of aspect recruitment_diversity. 2013-09-26 16:04:40 +02:00
flix
d3e24eef3a Change behavior of recruitment_save_gold. 2013-09-26 03:04:15 +02:00
flix
545c9b2057 Hang in new recruitment CA.
- Alter macro {AI_CA_RECRUITMENT} to point to the new CA
- Create a new AI cfg file for a stronger AI
- Create a new AI cfg (dev) file for choosing the old recruitment CA in debug mode.
- Alter macro {AI_NO_RECRUITMENT}
2013-09-25 15:32:20 +02:00
flix
301e0d5d43 Fix a bug. 2013-09-24 02:37:20 +02:00
flix
4959db0952 Add aspects for new recruitment CA.
The aspects are:
- recruitment_diversity
- recruitment_instructions
- recruitment_more
- recruitment_randomness
- recruitment_save_gold

All aspects will only work with the new recruitment CA (not committed yet).
See http://wiki.wesnoth.org/AI_Recruitment
2013-09-23 17:09:26 +02:00
mattsc
659162371b Internal rewrite of ai_helper.get_attacks()
This is much faster than the previous version.  No change in
functionality.
2013-09-04 20:20:25 -07:00