[wesnoth-commits] [wesnoth/wesnoth] ce9bf5: WFL/Lua: Add lerp and clamp functions

Celtic Minstrel noreply at github.com
Tue Jul 27 13:48:33 UTC 2021


  Branch: refs/heads/celmin
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ce9bf52705e7f08f03debabb4d87d55eb75b8ad2
      https://github.com/wesnoth/wesnoth/commit/ce9bf52705e7f08f03debabb4d87d55eb75b8ad2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/core/mathx.lua
    M src/formula/function.cpp

  Log Message:
  -----------
  WFL/Lua: Add lerp and clamp functions


  Commit: 21e0c6141b0132c4aa69dc027f7a3897c48f38ff
      https://github.com/wesnoth/wesnoth/commit/21e0c6141b0132c4aa69dc027f7a3897c48f38ff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/formula/function.cpp

  Log Message:
  -----------
  WFL: Support 2-argument atan


  Commit: a86d8d8ba95568d423f9b284639d4552bebc2983
      https://github.com/wesnoth/wesnoth/commit/a86d8d8ba95568d423f9b284639d4552bebc2983
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/config.hpp

  Log Message:
  -----------
  Fix a misplaced doc comment


  Commit: c39f06cc523b663c8f12615834e8df93f24fd2eb
      https://github.com/wesnoth/wesnoth/commit/c39f06cc523b663c8f12615834e8df93f24fd2eb
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Fix bug in wesnoth.map.iter_adjacent

Fixes #5972


  Commit: d2f4c03927ea090aeb6e13cac967fede37c99601
      https://github.com/wesnoth/wesnoth/commit/d2f4c03927ea090aeb6e13cac967fede37c99601
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/ai/lua/ca_move_to_any_enemy.lua

  Log Message:
  -----------
  Lua AI: Fix a typo


  Commit: 5f19bece020777c6b6f45ba9ba7bfd4d290d35a6
      https://github.com/wesnoth/wesnoth/commit/5f19bece020777c6b6f45ba9ba7bfd4d290d35a6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/core/sides.lua

  Log Message:
  -----------
  Lua API: Fix the deprecation wrappers for place_shroud and remove_shroud

- The "all" special case moved to place_shroud, as it should be
- Shroud data string handling fixed

Fixes #5885


  Commit: b78e253aa1e0ad8c227274ebf3ede4a3908891b7
      https://github.com/wesnoth/wesnoth/commit/b78e253aa1e0ad8c227274ebf3ede4a3908891b7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    A data/test/scenarios/test_modify_shroud.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Add unit tests for the Lua shroud functions


  Commit: 2d01808abbd2a35e8b6cab16b202bbc57fc08c35
      https://github.com/wesnoth/wesnoth/commit/2d01808abbd2a35e8b6cab16b202bbc57fc08c35
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/test/scenarios/test_modify_shroud.cfg
    M wml_test_schedule

  Log Message:
  -----------
  Update the shroud unit tests and add a few more for cases new in 1.16


  Commit: ad9062f70ceb7bfe57484745eddec72b970d88dd
      https://github.com/wesnoth/wesnoth/commit/ad9062f70ceb7bfe57484745eddec72b970d88dd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/config.cpp
    M src/config.hpp
    M src/deprecation.hpp

  Log Message:
  -----------
  New config methods for getting deprecated attributes or children


  Commit: 29cf4403642052d76db660ec649005787cf88ac7
      https://github.com/wesnoth/wesnoth/commit/29cf4403642052d76db660ec649005787cf88ac7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/ai/configuration.cpp
    M src/units/formula_manager.cpp

  Log Message:
  -----------
  Add deprecation messages for the most FormulaAI WML


  Commit: cfb488373f1149145476f37645534e9d6a7ecf1c
      https://github.com/wesnoth/wesnoth/commit/cfb488373f1149145476f37645534e9d6a7ecf1c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/ai/configuration.cpp

  Log Message:
  -----------
  AI: Fix short goal syntax


  Commit: 6b55dd7bd2d2ed8bc221112de6c3bb763c03208e
      https://github.com/wesnoth/wesnoth/commit/6b55dd7bd2d2ed8bc221112de6c3bb763c03208e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Fix wesnoth.map.find(filter, unit) ignoring the unit


  Commit: f14898b3217d914ad0ed20de4c06ce1103d6341d
      https://github.com/wesnoth/wesnoth/commit/f14898b3217d914ad0ed20de4c06ce1103d6341d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/map/postgeneration_utils/engine.lua
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Add wesnoth.map.filter_tags for the mapgen kernel

This was supposed to be added for 1.16, but it was forgotten; anyone wishing to use it in 1.16 will have to copy it from World Conquest.


  Commit: ff6fb4b1e551c43945ea9b534ec52e1ffed20d1d
      https://github.com/wesnoth/wesnoth/commit/ff6fb4b1e551c43945ea9b534ec52e1ffed20d1d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: Add an absolute complement option to location_set

- ls:invert(w,h,[border_size]) takes an absolute complement as if the map were the given size
- ls:invert(map) takes an absolute complement relative to the specified map
- ~ls is only available in the game kernel and takes an absolute complement relative to the real map


  Commit: 98fe3b3cc3a44bee6b667d2863646c5396780ac0
      https://github.com/wesnoth/wesnoth/commit/98fe3b3cc3a44bee6b667d2863646c5396780ac0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: Use a named tuple when converting a location set to triples


  Commit: f9b41f96868a66e2d8558bfdbdaa4cf2021e3077
      https://github.com/wesnoth/wesnoth/commit/f9b41f96868a66e2d8558bfdbdaa4cf2021e3077
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/lua/location_set.lua

  Log Message:
  -----------
  Lua API: When creating a location set from triples, also support tables with x, y, and value keys


  Commit: 90a8f067e9357fca1f29f3a0dc2b4ad1f3444445
      https://github.com/wesnoth/wesnoth/commit/90a8f067e9357fca1f29f3a0dc2b4ad1f3444445
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Make wesnoth.map.generate_height_map return data compatible with location_set

To maintain backwards compatibility, this format is opt-in.


  Commit: 64a20b211ccc0fd976aa817c3f04d2ae7bb0e0fd
      https://github.com/wesnoth/wesnoth/commit/64a20b211ccc0fd976aa817c3f04d2ae7bb0e0fd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Lua API: wesnoth.map.parse|make_bitmap are now defined in the base kernel

This is mainly so that they can be used in the mapgen kernel; exposing them to the plugin kernel is just an incidental side-effect.


  Commit: dfb52a847392afde662b713984dcbe3d4462c972
      https://github.com/wesnoth/wesnoth/commit/dfb52a847392afde662b713984dcbe3d4462c972
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-27 (Tue, 27 Jul 2021)

  Changed paths:
    M data/campaigns/tutorial/lua/character_selection.lua

  Log Message:
  -----------
  Tutorial: Synchronize the character selection to avoid breaking replays


Compare: https://github.com/wesnoth/wesnoth/compare/1c7965e9972a...dfb52a847392



More information about the Commits mailing list