[wesnoth-commits] [wesnoth/wesnoth] 147cd9: Move lua implementation of [store_reachable_locati...

Steve Cotton noreply at github.com
Fri Apr 16 00:05:56 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 147cd905270389d842c31c321f402a56b929b51a
      https://github.com/wesnoth/wesnoth/commit/147cd905270389d842c31c321f402a56b929b51a
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

  Changed paths:
    M data/lua/wml-tags.lua
    A data/lua/wml/store_reachable_locations.lua

  Log Message:
  -----------
  Move lua implementation of [store_reachable_locations] to its own file


  Commit: ad1c42ca8f0482a789f36edfa999e57158f69e67
      https://github.com/wesnoth/wesnoth/commit/ad1c42ca8f0482a789f36edfa999e57158f69e67
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

  Changed paths:
    M data/lua/wml/store_reachable_locations.lua
    A data/test/scenarios/store_reachable_locations_vision.cfg
    M src/actions/vision.cpp
    M src/actions/vision.hpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M wml_test_schedule

  Log Message:
  -----------
  Make [store_reachable_locations]range=vision calculate vision

Previously it calculated max movement, and then added the adjacent hexes. This
version should correctly handle:
* units with vp different to max mp
* units with vision costs different to movement costs
* jamming by enemy units

Draft changelog entry for this:
* `[store_reachable_locations]range=vision` now calculates vision, instead of using movement costs and max movement points (issue #4179)


Compare: https://github.com/wesnoth/wesnoth/compare/508bc2519e28...ad1c42ca8f04



More information about the Commits mailing list