[wesnoth-commits] [wesnoth/wesnoth] b8f03c: Fix [store_unit_defense] and add [store_unit_defen...

Steve Cotton noreply at github.com
Wed Oct 28 21:11:06 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b8f03c40e6f25ad0fd2ae3c6c1d7360c76270ef0
      https://github.com/wesnoth/wesnoth/commit/b8f03c40e6f25ad0fd2ae3c6c1d7360c76270ef0
  Author: Steve Cotton <steve at octalot.co.uk>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M data/lua/wml-tags.lua
    M data/schema/core/actionwml.cfg
    A data/test/scenarios/store_unit_defense.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Fix [store_unit_defense] and add [store_unit_defense_on], add unit test

The existing tag has a confusing name - it returns the chance to be hit rather
than the defense, for example 30 would be returned for a unit on 70% terrain.
The new tag returns a higher-is-better value.





More information about the Commits mailing list