[Commits] [wesnoth/wesnoth] e4552c: [store_unit_defense] tag

GitHub noreply at github.com
Sat Jul 29 00:34:56 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: e4552c7a758b8cef7b794773df08762becdc904c
      https://github.com/wesnoth/wesnoth/commit/e4552c7a758b8cef7b794773df08762becdc904c
  Author: Smok94 <tor94 at o2.pl>
  Date:   2017-07-29 (Sat, 29 Jul 2017)

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

  Log Message:
  -----------
  [store_unit_defense] tag

Stores in variable the defense of a unit on a particular terrain. If terrain is not specified, the terrain on which the units currently stands is used. (Note: it is a WML defense, so the higher it is, the weaker unit's defense is.)

* StandardUnitFilter
* loc_x, loc_y: x and y of terrain location.
* terrain: alternatively, the character of terrain.
* variable: the name of the variable into which to store the defense. default: "terrain_defense"





More information about the Commits mailing list