wesnoth/data/lua/wml
Steve Cotton 06dd9a140c Add [find_path] option "nearest_by", and simple_find_path test
Adding this is issue 2 of #4177, changing the behavior when [find_path]
is given a SLF which matches multiple hexes.

The map and tests here should be easy enough for manually editing them. It
duplicates some of the functionality of the existing characterize_pathfinding
tests, however those tests need their expected values to be calculated and
can't be changed by hand.

'''nearest_by''': {DevFeature1.15|2} possible values "movement_cost"
(default), "steps", "hexes". If the [destination] SLF matches multiple hexes,
the one that would need the least movement points to reach may not be the one
that's closest as measured by '''hexes''', or closest as measured by steps,
from the starting point.

Behavior in 1.14 depended on which hex was checked first.
2019-09-11 11:17:56 +02:00
..
animate_unit.lua Lua API: implicitly clear animator after playing it (#3536) 2018-10-07 03:24:59 +00:00
endlevel.lua Fix misleading function name in [endlevel] definition 2018-10-23 22:49:18 -04:00
find_path.lua Add [find_path] option "nearest_by", and simple_find_path test 2019-09-11 11:17:56 +02:00
harm_unit.lua add game_config.combat experience 2018-10-07 03:25:00 +00:00
heal_unit.lua Lua API: implicitly clear animator after playing it (#3536) 2018-10-07 03:24:59 +00:00
items.lua support item_name= in [store_items] 2019-03-20 20:27:33 +01:00
kill.lua Lua API: implicitly clear animator after playing it (#3536) 2018-10-07 03:24:59 +00:00
message.lua Fix erroneous comment 2019-08-30 23:23:10 -04:00
micro_ai.lua fix code problems found by luacheck (#2388) 2018-01-23 13:35:04 -06:00
modify_ai.lua Cleaned up deprecated API usage in core Lua 2018-03-13 16:55:36 +11:00
modify_side.lua Fix unintended change to the semantics of [modify_side]income= 2018-10-07 03:18:37 +00:00
modify_unit.lua fix [modify_unit] cannot set attributes to false #4325 2019-09-08 19:50:56 +02:00
move_unit.lua Add [move_unit]clear_shroud= as an attempt to clear shroud as the unit moves (untested) 2018-10-07 03:19:06 +00:00
object.lua Use new persistent tags interface for [object] [objectives] [item] 2018-03-17 17:16:23 -04:00
objectives.lua WML: Don't add a \n before condition=lose objectives if there are no objectives listed before them. 2018-10-07 03:23:12 +00:00
random_placement.lua Fix WFL in [random_placement] not receiving the size variable 2019-03-03 11:56:34 -05:00
role.lua Support location_id in [role][auto_recall] 2019-03-03 11:56:34 -05:00
set_variable.lua Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
test_condition.lua Lua code: replace deprecated wesnoth.get_variable() calls 2018-10-07 03:21:06 +00:00