[wesnoth-commits] [wesnoth/wesnoth] fdfc15: Lua API: Include remaining vision in the output of...

Celtic Minstrel noreply at github.com
Wed Jul 7 05:32:17 UTC 2021


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

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Include remaining vision in the output of find_vision_range


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

  Changed paths:
    M src/scripting/lua_unit.cpp

  Log Message:
  -----------
  Lua API: Add vision and jamming as unit attributes


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

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Fix crash if passing an out-of-bounds side to wesnoth.interface.end_turn


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

  Changed paths:
    M src/display.hpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Lua API: Add function to get the current color adjust


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

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

  Log Message:
  -----------
  Lua API: Use the named tuple idiom for WML tags

Instead of this:

for i,t in ipairs(cfg) do
  if t[1] == 'foo' then
    do_something(t[2])
  end
end

You can now write this:

for i,t in ipairs(cfg) do
  if t.tag == 'foo' then
    do_something(t.value)
  end
end


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

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

  Log Message:
  -----------
  Lua API: Add wesnoth.sides.iter

This replaces both helper.get_sides and helper.all_teams


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

  Changed paths:
    M src/team.hpp

  Log Message:
  -----------
  Lua API: Fix side.side_name = side.side_name changing the side name

Addresses #4994


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

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

  Log Message:
  -----------
  Lua API: Add wesnoth.map.iter_adjacent

This replaces helper.adjacent_tiles


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

  Changed paths:
    M data/lua/core/wml.lua
    M data/lua/helper.lua

  Log Message:
  -----------
  Lua API: Deprecate helper.set_wml_action_metatable

wml.fire now supports the same syntax - both of the following work:

- wml.fire("message", {message = "Hello World"})
- wml.fire.message{message = "Hello World"}


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

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/lua/battle_calcs.lua
    M data/ai/lua/ca_high_xp_attack.lua
    M data/ai/lua/ca_move_to_any_enemy.lua
    M data/ai/lua/retreat.lua
    M data/ai/micro_ais/cas/ca_assassin_move.lua
    M data/ai/micro_ais/cas/ca_big_animals.lua
    M data/ai/micro_ais/cas/ca_bottleneck_move.lua
    M data/ai/micro_ais/cas/ca_coward.lua
    M data/ai/micro_ais/cas/ca_fast_combat_leader.lua
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_herding_f_herding_area.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
    M data/ai/micro_ais/cas/ca_hunter.lua
    M data/ai/micro_ais/cas/ca_messenger_attack.lua
    M data/ai/micro_ais/cas/ca_recruit_random.lua
    M data/ai/micro_ais/cas/ca_stationed_guardian.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
    M data/ai/micro_ais/cas/ca_zone_guardian.lua
    M data/ai/micro_ais/engines/priority_target_engine.lua
    M data/campaigns/Delfadors_Memoirs/utils/sides.cfg
    M data/campaigns/Eastern_Invasion/lua/bandits.lua
    M data/campaigns/Secrets_of_the_Ancients/utils/zombie_recruit_dialog.lua
    M data/campaigns/Son_Of_The_Black_Eye/ai/ca_transport_S6.lua
    M data/campaigns/The_Hammer_of_Thursagan/lua/spawns.lua
    M data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Fear.cfg
    M data/campaigns/World_Conquest/lua/game_mechanics/artifacts.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/bonus.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/effects.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/heroes.lua
    M data/campaigns/World_Conquest/lua/map/main.lua
    M data/campaigns/World_Conquest/lua/map/scenario_utils/side_definitions.lua
    M data/lua/wml-tags.lua
    M data/lua/wml/animate_unit.lua
    M data/lua/wml/harm_unit.lua
    M data/lua/wml/kill.lua
    M data/lua/wml/store_reachable_locations.lua
    M data/test/scenarios/test_require.cfg

  Log Message:
  -----------
  Lua: Update all mainline references to the helper module


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

  Changed paths:
    M data/lua/helper.lua

  Log Message:
  -----------
  Lua API: Deprecate the helper.lua module itself


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

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Fix campaign end text being untranslatable

Fixes #5928


Compare: https://github.com/wesnoth/wesnoth/compare/23a0377b56d5...eee04c4ad245



More information about the Commits mailing list