mattsc
34956ac15d
AI: ensure all CAs respect [avoid] tags
...
This is for the candidate actions that were merged into the default AI from the former Experimental AI.
2019-12-06 08:14:56 -08:00
Celtic Minstrel
977f05d77f
Lua: Replace uses of deprecated (moved) unit functions
...
Also backtracked the removal of wesnoth.get_recall_units, which is now available as wesnoth.units.find_on_recall - it's just more convenient than passing x=recall to wesnoth.units.find
2019-11-15 22:39:08 -05:00
mattsc
0c57ae16e4
Lua AIs: do not use hard-coded values for modifiable parameters
2018-11-05 20:22:11 -08:00
mattsc
5e0df80ad0
ExpAI retreating: take healthy trait into account
2018-11-05 07:02:46 -08:00
mattsc
f761493c75
Lua AIs: no need to set variables to nil explicitely
...
This is mostly done for consistency across the Lua AI code
(cherry-picked from commit 0e7c09f7b549bb43aec248bad04fcf0bffef17d5)
2018-10-07 03:24:40 +00:00
mattsc
37e83f1262
Lua AIs: use math.huge to initialize extrema variables
...
(cherry-picked from commit cb423b2fbd40fdf5e14549a301fee06237bf4626)
2018-10-07 03:24:40 +00:00
mattsc
25b2024ee8
Lua AIs: use unit methods instead of wesnoth functions
...
(cherry-picked from commit a6866390dfa64097fa4cb099b39736c3e2220ce4)
2018-10-07 03:24:36 +00:00
mattsc
4586e04eca
Lua code: replace deprecated helper.child_range() calls
...
(cherry-picked from commit 7c137e1a336559acdd6f797192a9516135480b2e)
2018-10-07 03:21:09 +00:00
mattsc
58529e95f8
Lua code: replace deprecated helper.get_child() calls
...
(cherry-picked from commit f0bb40590fe1a9c2c6683157f9aa93b631848251)
2018-10-07 03:21:08 +00:00
Celtic Minstrel
8d4cf3cf62
Shorten requires where possible
2017-05-03 02:42:25 -04:00
mattsc
f2406ac829
Experimental AI: correctly deal with hidden and petrified units
2016-10-19 07:37:19 -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
c46d8459d6
Retreat AI eval: poisoned units do not get resting healing bonus
...
... in evaluation of best retreat positions.
2013-11-14 20:04:52 -08:00
mattsc
9c86a71ef7
ExpAI retreat code: also return enemy attack map
2013-11-01 08:51:21 -07:00
mattsc
1fa06a6811
Exp AI retreat code: make function min_hp() externally accessible
2013-11-01 08:51:21 -07:00
mattsc
938b2e6520
ExpAI retreat: count amount of hp healed when choosing retreat location
2013-11-01 08:51:21 -07:00
mattsc
456f60a9ee
ExpAI: make sure injured regenerating units are not stranded if ...
...
... no non-regenerating units can get to safe locations.
2013-11-01 08:51:20 -07:00
Simon Forsyth
3c41b7c75a
Fix bug preventing regenerating units from retreating with experimental AI
...
(thanks mattsc)
2013-02-16 03:11:14 +00:00
Simon Forsyth
f5a4a83def
New experimental CAs to improve village capturing and retreat when injured
2013-01-21 19:54:58 +00:00