[wesnoth-commits] [wesnoth/wesnoth] 727163: Rename wesnoth.map.get_locations -> wesnoth.map.fi...

Celtic Minstrel noreply at github.com
Thu Feb 18 01:48:30 UTC 2021


  Branch: refs/heads/lua_gamemap
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 727163caa735d787f23a06aa708e112f8024d168
      https://github.com/wesnoth/wesnoth/commit/727163caa735d787f23a06aa708e112f8024d168
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

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

  Log Message:
  -----------
  Rename wesnoth.map.get_locations -> wesnoth.map.find_locations

Also rename get_hexes -> find_hexes

This is more consistent with the terminology in the units and side modules, where find takes a filter and returns a list but get takes a unique identifier and returns a single element.


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

  Changed paths:
    M data/lua/core.lua

  Log Message:
  -----------
  Rename hex:match -> hex:matches for consistency with unit and side modules


  Commit: 3db922fb7fd4bcd80cb1a5299128f043cbcfeab7
      https://github.com/wesnoth/wesnoth/commit/3db922fb7fd4bcd80cb1a5299128f043cbcfeab7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M data/ai/lua/ai_helper.lua
    M data/ai/lua/battle_calcs.lua
    M data/ai/lua/ca_castle_switch.lua
    M data/ai/lua/ca_spread_poison.lua
    M data/ai/lua/generic_recruit_engine.lua
    M data/ai/lua/retreat.lua
    M data/ai/micro_ais/cas/ca_assassin_move.lua
    M data/ai/micro_ais/cas/ca_fast_attack_utils.lua
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_healer_move.lua
    M data/ai/micro_ais/cas/ca_protect_unit_move.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_zone_guardian.lua
    M data/campaigns/Descent_Into_Darkness/scenarios/04_Spring_of_Reprisal.cfg
    M data/campaigns/Heir_To_The_Throne/scenarios/13_The_Dwarven_Doors.cfg
    M data/campaigns/Two_Brothers/ai/ca_muff_toras_move.lua
    M data/campaigns/World_Conquest/lua/campaign/enemy_themed.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/bonus.lua
    M data/campaigns/World_Conquest/lua/game_mechanics/supply.lua
    M data/campaigns/World_Conquest/lua/optional_mechanics/destruction.lua
    M data/lua/wml-tags.lua
    M data/lua/wml/find_path.lua
    M data/lua/wml/random_placement.lua
    M data/modifications/pick_advance/main.lua

  Log Message:
  -----------
  First round of replacing deprecated stuff

This covers only get|set_terrain and terrain_mask


Compare: https://github.com/wesnoth/wesnoth/compare/c50b03c8edcc...3db922fb7fd4



More information about the Commits mailing list