[Commits] [wesnoth/wesnoth] 82c3b0: Add mode=replace to [modify_unit]

GitHub noreply at github.com
Tue Aug 30 16:31:24 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 82c3b0114d4381ea53d2fb2ca93b3775418ef7d4
      https://github.com/wesnoth/wesnoth/commit/82c3b0114d4381ea53d2fb2ca93b3775418ef7d4
  Author: Gregory A Lundberg <gregory_lundberg at gmx.com>
  Date:   2016-08-24 (Wed, 24 Aug 2016)

  Changed paths:
    M changelog
    M data/lua/wml/modify_unit.lua

  Log Message:
  -----------
  Add mode=replace to [modify_unit]

When specified, replace rather than merge the [unit] sub-tags. Does not effect [object], [trait], [effect] or [advancement].

For example:
    [modify_unit]
  [filter]
      id=Deoran
  [/filter]
  mode=replace
   [filter_recall]
      [not]
          id="Sir Gerrick"
      [/not]
  [/filter_recall]
    [/modify_unit]

will replace the current contents of [filter_recall] with the given contents. Without mode=replace, the contents would be appended to the previous contents.


  Commit: b24fdbcbe196c20da3c0c0f4daa30d2037204b5a
      https://github.com/wesnoth/wesnoth/commit/b24fdbcbe196c20da3c0c0f4daa30d2037204b5a
  Author: Celtic Minstrel <CelticMinstrel at users.noreply.github.com>
  Date:   2016-08-30 (Tue, 30 Aug 2016)

  Changed paths:
    M changelog
    M data/lua/wml/modify_unit.lua

  Log Message:
  -----------
  Merge pull request #759 from GregoryLundberg/GL_modify_unit_mode

Add mode=replace to [modify_unit]


Compare: https://github.com/wesnoth/wesnoth/compare/8121eef2a044...b24fdbcbe196


More information about the Commits mailing list