Commit graph

28 commits

Author SHA1 Message Date
mattsc
ce9ba142bc Add new AI aspect allow_ally_villages 2022-06-22 08:00:50 -07:00
mattsc
fe316aec3a Add new AI aspect retreat_enemy_weight 2021-02-26 13:57:13 -08:00
mattsc
efe5a4d497 Add new AI aspect retreat_factor 2021-02-25 20:25:16 -08:00
mattsc
f00f9e3901 RCA AI: remove attack_depth aspect from default configuration 2018-11-16 06:45:40 -08:00
Celtic Minstrel
23aac4f72f Cleanup of fef953a48e
- Fix the rabbit AI
- Enable invoke_synced_command to also call (some) built-in commands
  and give an error message in the case of an unknown command
- Remove some unnecessary implementation details
2018-03-17 16:48:00 -04:00
gfgtdf
fef953a48e remove ai.synced_command
fixes #1649 . ai.synced_command could easily be used to implement all types of
undeteced cheats so it was removed. As a replacement this commit adds a
[custom_command] synced command that just calls
wesnoth.game_events.on_synced_command which calls a lua handler that
must first be set.
2018-03-16 13:43:05 +01:00
Celtic Minstrel
7c9e24aa29 Remove several deprecated recruitment-related aspects
- number_of_possible_recruits_to_force_recruit
- recruitment_ignore_bad_combat
- recruitment_ignore_bad_movement
2016-03-22 07:22:22 -07:00
Celtic Minstrel
ca8cb3bd6a Remove the deprecated recruitment stage, candidate action, and aspect 2016-03-22 07:22:22 -07:00
mattsc
62273f51b3 RCA AI: revert gold saving default back to 'off'
This was discussed both on the wesnoth-dev mailing list and on the
forums and the overall consensus was that it should be off, although
some scenarios will benefit from it.  It should be enabled specifically
in such scenarios as they are identified.
Reference:
https://mail.gna.org/public/wesnoth-dev/2014-01/msg00001.html
and links therein
2014-01-22 06:51:19 -08: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
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
flix/Felix Bauer
29e8584738 Add new aspect 'advancements'
As part of a GSoC proposal I added a new aspect so a scenario editor can control advancements in two ways:
1. Define a aspect with a string-value like "Swordsman, Knight", so the units of interesst will always advance to this
2. Use the LUA-Engine and return a function of the form advance(x, y) which will itself return a string-value
    like "Swordsman, Knight". Everytime a ai-unit advances advance(x, y) will be called.
The corresponding wikipage (http://wiki.wesnoth.org/AiWML) is going to be updated soon.
2013-06-01 17:21:12 +03:00
Matthias Schoeck
40c7046b5a Add new AI aspect leader_ignores_keep.
If set, AI leaders do not move to the closest keep at the beginning of
the turn.  Instead, they participate in the move_to_targets candidate
action (and all other CAs in which they already participated anyway,
of course).  The default value is 'no', which leaves the default
behavior unchanged.
2013-01-20 04:07:08 +00:00
Alexander van Gessel
f4ab3722dc Apply patch #3570 by mattsc 2012-11-26 23:50:17 +01:00
Iurii Chernyi
fb9fa4bd91 stabilize RCA AI configuration for 1.8,
...extract candidate actions to separate macroses
2009-12-24 23:41:15 +00:00
Eric S. Raymond
0aa99781cf Reindent mainline. 2009-11-23 14:39:03 +00:00
Mark de Wever
467b3feae6 Fix alignment. 2009-10-20 18:44:01 +00:00
Iurii Chernyi
27d6b0f59b new aspect, leader_aggression, to control the aggression of the leader...
...separately. Default value is -4.0 - that's old implicit default
2009-10-08 00:01:17 +00:00
Nils Kneuper
64abf3e200 add a default textdomain declaration...
...(using "./utils/change-textdomain -t data/")
2009-09-20 13:53:46 +00:00
Iurii Chernyi
40eb5c2a3b removed unnecessary ai_algorithm from default config 2009-08-28 22:19:02 +00:00
Iurii Chernyi
13a103f640 recruitment as aspect 2009-08-12 11:19:17 +00:00
Iurii Chernyi
39633ab2f8 examples of new-style ai configurations 2009-08-04 21:02:29 +00:00
Iurii Chernyi
ba6a7aa2c4 used 'attacks' aspect to keep a cache of attacks...
...shared between ai_default/formula_ai/composite_ai code
2009-08-03 22:03:13 +00:00
Iurii Chernyi
09223f03cc new AI configuration syntax. Note: boost 1.35 required for compilation 2009-08-01 14:17:15 +00:00