[Commits] [wesnoth/wesnoth] 37c0cc: Allow wesnoth.dofile to forward arbitrary argument...

GitHub noreply at github.com
Wed May 3 03:19:53 UTC 2017


  Branch: refs/heads/lua_require
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 37c0ccafa3bec08592a78b6fc1b77d25e45311f8
      https://github.com/wesnoth/wesnoth/commit/37c0ccafa3bec08592a78b6fc1b77d25e45311f8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Allow wesnoth.dofile to forward arbitrary arguments to the file's "..."


  Commit: 17d5e84482aca91a07850fd5c40af1287cfe707f
      https://github.com/wesnoth/wesnoth/commit/17d5e84482aca91a07850fd5c40af1287cfe707f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    A data/lua/package.lua
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Reimplement wesnoth.require function in Lua


  Commit: 98c129ca8fcf99b155156716ac5c5e4931bcc460
      https://github.com/wesnoth/wesnoth/commit/98c129ca8fcf99b155156716ac5c5e4931bcc460
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-02 (Tue, 02 May 2017)

  Changed paths:
    M data/lua/package.lua

  Log Message:
  -----------
  Allow shorter module name specification in wesnoth.require

Basically, you can now omit the "lua/" prefix and the ".lua" suffix.
If necessary, they will automatically be applied for you.


  Commit: 6459c2f7cd3fd3eb63f8814fcc00f757ab1e6911
      https://github.com/wesnoth/wesnoth/commit/6459c2f7cd3fd3eb63f8814fcc00f757ab1e6911
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-05-02 (Tue, 02 May 2017)

  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/generic_recruit_engine.lua
    M data/ai/lua/generic_rush_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_big_animals.lua
    M data/ai/micro_ais/cas/ca_bottleneck_attack.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_attack_utils.lua
    M data/ai/micro_ais/cas/ca_fast_combat.lua
    M data/ai/micro_ais/cas/ca_fast_combat_leader.lua
    M data/ai/micro_ais/cas/ca_fast_move.lua
    M data/ai/micro_ais/cas/ca_forest_animals_move.lua
    M data/ai/micro_ais/cas/ca_forest_animals_new_rabbit.lua
    M data/ai/micro_ais/cas/ca_forest_animals_tusker_attack.lua
    M data/ai/micro_ais/cas/ca_forest_animals_tusklet_move.lua
    M data/ai/micro_ais/cas/ca_goto.lua
    M data/ai/micro_ais/cas/ca_hang_out.lua
    M data/ai/micro_ais/cas/ca_healer_initialize.lua
    M data/ai/micro_ais/cas/ca_healer_may_attack.lua
    M data/ai/micro_ais/cas/ca_healer_move.lua
    M data/ai/micro_ais/cas/ca_herding_attack_close_enemy.lua
    M data/ai/micro_ais/cas/ca_herding_dog_move.lua
    M data/ai/micro_ais/cas/ca_herding_dog_stopmove.lua
    M data/ai/micro_ais/cas/ca_herding_f_herding_area.lua
    M data/ai/micro_ais/cas/ca_herding_herd_sheep.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_move.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_runs_dog.lua
    M data/ai/micro_ais/cas/ca_herding_sheep_runs_enemy.lua
    M data/ai/micro_ais/cas/ca_hunter.lua
    M data/ai/micro_ais/cas/ca_lurkers.lua
    M data/ai/micro_ais/cas/ca_messenger_attack.lua
    M data/ai/micro_ais/cas/ca_messenger_escort_move.lua
    M data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua
    M data/ai/micro_ais/cas/ca_messenger_move.lua
    M data/ai/micro_ais/cas/ca_patrol.lua
    M data/ai/micro_ais/cas/ca_protect_unit_attack.lua
    M data/ai/micro_ais/cas/ca_protect_unit_finish.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_return_guardian.lua
    M data/ai/micro_ais/cas/ca_simple_attack.lua
    M data/ai/micro_ais/cas/ca_stationed_guardian.lua
    M data/ai/micro_ais/cas/ca_swarm_move.lua
    M data/ai/micro_ais/cas/ca_swarm_scatter.lua
    M data/ai/micro_ais/cas/ca_wolves_move.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_attack.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_functions.lua
    M data/ai/micro_ais/cas/ca_wolves_multipacks_wander.lua
    M data/ai/micro_ais/cas/ca_wolves_wander.lua
    M data/ai/micro_ais/cas/ca_zone_guardian.lua
    M data/ai/micro_ais/engines/priority_target_engine.lua
    M data/ai/micro_ais/mai-defs/animals.lua
    M data/ai/micro_ais/mai-defs/escort.lua
    M data/ai/micro_ais/mai-defs/fast.lua
    M data/ai/micro_ais/mai-defs/guardian.lua
    M data/ai/micro_ais/mai-defs/patrol.lua
    M data/ai/micro_ais/mai-defs/protect.lua
    M data/ai/micro_ais/mai-defs/recruiting.lua
    M data/ai/micro_ais/micro_ai_helper.lua
    M data/ai/micro_ais/micro_ai_self_data.lua
    M data/ai/micro_ais/micro_ai_unit_variables.lua
    M data/ai/micro_ais/micro_ai_wml_tag.lua
    M data/campaigns/Eastern_Invasion/ai/ca_ogres_flee.lua
    M data/campaigns/Eastern_Invasion/lua/bandits.lua
    M data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
    M data/campaigns/Legend_of_Wesmere/lua/wml_tags.lua
    M data/campaigns/Northern_Rebirth/lua/respawn_utils.lua
    M data/campaigns/Sceptre_of_Fire/scenarios/4_Gathering_Materials.cfg
    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/tutorial/lua/character_selection.lua
    M data/lua/backwards-compatibility.lua
    M data/lua/cave_map_generator.lua
    M data/lua/feeding.lua
    M data/lua/mapgen_helper.lua
    M data/lua/on_event.lua
    M data/lua/wml-flow.lua
    M data/lua/wml-tags.lua
    M data/lua/wml-utils.lua
    M data/lua/wml/animate_unit.lua
    M data/lua/wml/endlevel.lua
    M data/lua/wml/find_path.lua
    M data/lua/wml/harm_unit.lua
    M data/lua/wml/items.lua
    M data/lua/wml/message.lua
    M data/lua/wml/modify_unit.lua
    M data/lua/wml/object.lua
    M data/lua/wml/objectives.lua
    M data/lua/wml/random_placement.lua
    M data/multiplayer/eras.lua
    M data/multiplayer/scenarios/2p_Dark_Forecast.lua
    M data/scenario-test.cfg
    M data/test/scenarios/ai/_main.cfg
    M data/test/scenarios/interrupts.cfg

  Log Message:
  -----------
  Shorten requires where possible


Compare: https://github.com/wesnoth/wesnoth/compare/37c0ccafa3be^...6459c2f7cd3f


More information about the Commits mailing list