[wesnoth-commits] [wesnoth/wesnoth] dc86c4: Start a Lua mathx module to hold round, shuffle, r...

Celtic Minstrel noreply at github.com
Fri Mar 26 12:43:17 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: dc86c43bee281f7b600b0042fc504aaae076b97b
      https://github.com/wesnoth/wesnoth/commit/dc86c43bee281f7b600b0042fc504aaae076b97b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    A data/lua/core/mathx.lua
    M data/lua/helper.lua
    M projectfiles/VC16/wesnoth.vcxproj
    M projectfiles/VC16/wesnoth.vcxproj.filters
    M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
    M source_lists/wesnoth
    M src/scripting/lua_kernel_base.cpp
    A src/scripting/lua_mathx.cpp
    A src/scripting/lua_mathx.hpp

  Log Message:
  -----------
  Start a Lua mathx module to hold round, shuffle, random, and a few other things


  Commit: 692f1f51dd546c56289ca3af662e09ecc945c7b2
      https://github.com/wesnoth/wesnoth/commit/692f1f51dd546c56289ca3af662e09ecc945c7b2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/_initial.lua
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Add a versions module


  Commit: 4db16b54bda2a5dc1a67add8ec271330c68ebb64
      https://github.com/wesnoth/wesnoth/commit/4db16b54bda2a5dc1a67add8ec271330c68ebb64
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/_initial.lua
    A data/lua/core/audio.lua
    M projectfiles/Xcode/The Battle for Wesnoth.xcodeproj/project.pbxproj
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_audio.cpp
    M src/soundsource.cpp
    M src/soundsource.hpp

  Log Message:
  -----------
  Add an audio module


  Commit: d7dc8dbaa8c0d76d9d476013f797c572ee5853e2
      https://github.com/wesnoth/wesnoth/commit/d7dc8dbaa8c0d76d9d476013f797c572ee5853e2
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/gui.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Move open_help to the gui module


  Commit: b28d64e965719c54958c7c57ac978314b12f0003
      https://github.com/wesnoth/wesnoth/commit/b28d64e965719c54958c7c57ac978314b12f0003
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/units.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_unit_attacks.cpp

  Log Message:
  -----------
  Move create_animator and create_weapon into the units module


  Commit: d0461367bde7da88682e31fbf40bcdec013944a7
      https://github.com/wesnoth/wesnoth/commit/d0461367bde7da88682e31fbf40bcdec013944a7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/interface.lua
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Now color_adjust takes three arguments instead of a config

Consider it part of the public API now.


  Commit: f96a29ab17373f02d6bdb8c91525409e3148b528
      https://github.com/wesnoth/wesnoth/commit/f96a29ab17373f02d6bdb8c91525409e3148b528
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Deprecate wesnoth.game_config.version

There's no point having the same info in two places


  Commit: 17f2af2ac715fb08f969c6a1c7d9f2030adce9e8
      https://github.com/wesnoth/wesnoth/commit/17f2af2ac715fb08f969c6a1c7d9f2030adce9e8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M src/scripting/lua_common.hpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Make it easier to deprecate Lua attributes in C++ __index metafunctions


  Commit: 281c283766388f10d96a9c42756a7280246d7491
      https://github.com/wesnoth/wesnoth/commit/281c283766388f10d96a9c42756a7280246d7491
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Add a new scenario module and move some functions there and to game_config

Addresses #4907


  Commit: 97df28b910151a60b67917b050909e7de9970c75
      https://github.com/wesnoth/wesnoth/commit/97df28b910151a60b67917b050909e7de9970c75
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/campaigns/World_Conquest/lua/game_mechanics/utils.lua
    M data/lua/core/wml.lua

  Log Message:
  -----------
  Move the Lua global variable helpers from WC to core


  Commit: 86edb1aa73702e55d7b5f368ed865b3b3ee4e95a
      https://github.com/wesnoth/wesnoth/commit/86edb1aa73702e55d7b5f368ed865b3b3ee4e95a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

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

  Log Message:
  -----------
  mathx: use quoted_split in random_choice


  Commit: 777cc2c0caff92bf82a743c32e0ce2307358c139
      https://github.com/wesnoth/wesnoth/commit/777cc2c0caff92bf82a743c32e0ce2307358c139
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/sides.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Move wesnoth.create_side -> wesnoth.sides.create


  Commit: cb255414914f47c493045bee690e3cd1ea0efefe
      https://github.com/wesnoth/wesnoth/commit/cb255414914f47c493045bee690e3cd1ea0efefe
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/sides.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Move the deprecation for wesnoth.modify_ai to Lua so that it honours --strict-lua


  Commit: de4a59db44ee5cbacf2f4d6a724a885e3957fd03
      https://github.com/wesnoth/wesnoth/commit/de4a59db44ee5cbacf2f4d6a724a885e3957fd03
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M data/lua/core/wml.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Move some more functions to the wml module

- eval_conditional and fire
- the internal set|get_variable functions


  Commit: ee03289dfe9d46a8bc9cf9c50be48a43c70416a5
      https://github.com/wesnoth/wesnoth/commit/ee03289dfe9d46a8bc9cf9c50be48a43c70416a5
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M data/campaigns/Under_the_Burning_Suns/scenarios/09_Blood_is_Thicker_Than_Water.cfg
    M data/campaigns/tutorial/utils/utils.cfg
    M data/core/macros/ai_controller.cfg
    M data/lua/core/interface.lua
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Add wesnoth.interface.add_floating_label as a replacement for wesnoth.print

This returns a label handle which allows you to remove, reposition, or replace the label later.

In addition to all the features of wesnoth.print, you can now specify where the label appears onscreen.


  Commit: 13fedbe47683364be05957cb90ce6606ee464222
      https://github.com/wesnoth/wesnoth/commit/13fedbe47683364be05957cb90ce6606ee464222
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M src/floating_label.cpp
    M src/floating_label.hpp

  Log Message:
  -----------
  Separate duration from fadeout in the floating label system


Compare: https://github.com/wesnoth/wesnoth/compare/cecb63679f24...13fedbe47683



More information about the Commits mailing list