[wesnoth-commits] [wesnoth/wesnoth] ff2804: Lua API: Include remaining vision in the output of...
Celtic Minstrel
noreply at github.com
Tue Jul 6 05:32:58 UTC 2021
Branch: refs/heads/celmin
Home: https://github.com/wesnoth/wesnoth
Commit: ff280448abc25d60a0229b22b2308005b7cbe2ec
https://github.com/wesnoth/wesnoth/commit/ff280448abc25d60a0229b22b2308005b7cbe2ec
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 24286dbe81d5bb9b2b238fdbfc6a756d68dc2063
https://github.com/wesnoth/wesnoth/commit/24286dbe81d5bb9b2b238fdbfc6a756d68dc2063
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 Jul 2021)
Changed paths:
M src/scripting/lua_unit.cpp
Log Message:
-----------
Lua API: Add vision and jamming as unit attributes
Commit: 0b80652415c4217f0e72e30cba1ea576f14dac70
https://github.com/wesnoth/wesnoth/commit/0b80652415c4217f0e72e30cba1ea576f14dac70
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 4dd1fc8b770425ac9b6ae02afe9e5eb0d0c6612c
https://github.com/wesnoth/wesnoth/commit/4dd1fc8b770425ac9b6ae02afe9e5eb0d0c6612c
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 3e469df1865b7f981614441d7055b8a670e19119
https://github.com/wesnoth/wesnoth/commit/3e469df1865b7f981614441d7055b8a670e19119
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 2fdf3decec21c38ea5a96477b83ef571deefd158
https://github.com/wesnoth/wesnoth/commit/2fdf3decec21c38ea5a96477b83ef571deefd158
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: bd093f0166ca35abab0067e257f44ad8e15e4873
https://github.com/wesnoth/wesnoth/commit/bd093f0166ca35abab0067e257f44ad8e15e4873
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 78f595be351c617708a9bc6506d66a694563f317
https://github.com/wesnoth/wesnoth/commit/78f595be351c617708a9bc6506d66a694563f317
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 55c772d08b1fb23b6697e03bf8232a8bdd2415ca
https://github.com/wesnoth/wesnoth/commit/55c772d08b1fb23b6697e03bf8232a8bdd2415ca
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 52459f06da718dc9ef90ad9346de7eb26b8ad954
https://github.com/wesnoth/wesnoth/commit/52459f06da718dc9ef90ad9346de7eb26b8ad954
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 Jul 2021)
Changed paths:
M data/lua/helper.lua
Log Message:
-----------
Lua API: Deprecate the helper.lua module itself
Commit: 61ac1fcffafb461cc273a8d1c5777b943e85c5f0
https://github.com/wesnoth/wesnoth/commit/61ac1fcffafb461cc273a8d1c5777b943e85c5f0
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 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: 9cf012392514ed5bcc3b0db41ca93c1e8136e47d
https://github.com/wesnoth/wesnoth/commit/9cf012392514ed5bcc3b0db41ca93c1e8136e47d
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 Jul 2021)
Changed paths:
M src/scripting/game_lua_kernel.cpp
Log Message:
-----------
Lua API: Fix campaign end text being untranslatable
Fixes #5928
Commit: 10c4870892a1a8b7c2ce2cf1d5a23683ce8ae21f
https://github.com/wesnoth/wesnoth/commit/10c4870892a1a8b7c2ce2cf1d5a23683ce8ae21f
Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
Date: 2021-07-06 (Tue, 06 Jul 2021)
Changed paths:
M data/lua/core/map.lua
M data/lua/core/sides.lua
Log Message:
-----------
fix whitespace
Compare: https://github.com/wesnoth/wesnoth/compare/ff280448abc2%5E...10c4870892a1
More information about the Commits
mailing list