[wesnoth-commits] [wesnoth/wesnoth] a25f11: Lua API: Include remaining vision in the output of...
Celtic Minstrel
noreply at github.com
Wed Jul 7 03:49:15 UTC 2021
Branch: refs/heads/celmin
Home: https://github.com/wesnoth/wesnoth
Commit: a25f11a9a8571c76fe8baa9f5ea04b45bbee7206
https://github.com/wesnoth/wesnoth/commit/a25f11a9a8571c76fe8baa9f5ea04b45bbee7206
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: 46234ea98661f81e275b580abc4fecec392ca0df
https://github.com/wesnoth/wesnoth/commit/46234ea98661f81e275b580abc4fecec392ca0df
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: 49c62e97f8c0a11d648fc3e328d2ccd5fc682be4
https://github.com/wesnoth/wesnoth/commit/49c62e97f8c0a11d648fc3e328d2ccd5fc682be4
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: 0aca43219068dcc77bce6184155b2a17a10232cf
https://github.com/wesnoth/wesnoth/commit/0aca43219068dcc77bce6184155b2a17a10232cf
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: 2e5a9cbec6a874f133186998d6b3a214b4b1ab45
https://github.com/wesnoth/wesnoth/commit/2e5a9cbec6a874f133186998d6b3a214b4b1ab45
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: d7a53112f0607c4083edd82b3d1e487165095e86
https://github.com/wesnoth/wesnoth/commit/d7a53112f0607c4083edd82b3d1e487165095e86
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: 942656c95c2d8469e04672564ba8ad3a069f0600
https://github.com/wesnoth/wesnoth/commit/942656c95c2d8469e04672564ba8ad3a069f0600
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: b21ef1daf54e97eea8538b99e52428e96b1a7cde
https://github.com/wesnoth/wesnoth/commit/b21ef1daf54e97eea8538b99e52428e96b1a7cde
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: 6df605365cd9bdb3fb668c061f5b548e62a3e531
https://github.com/wesnoth/wesnoth/commit/6df605365cd9bdb3fb668c061f5b548e62a3e531
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: 72bf8f8f8f38af1f7a64db4e1cfb71805dba2b58
https://github.com/wesnoth/wesnoth/commit/72bf8f8f8f38af1f7a64db4e1cfb71805dba2b58
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: bdaca231c342f0042ce3505ca7b47d8cc9cd7d76
https://github.com/wesnoth/wesnoth/commit/bdaca231c342f0042ce3505ca7b47d8cc9cd7d76
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: 2322ccdc2eb8d42a588877076dd0a4210319852c
https://github.com/wesnoth/wesnoth/commit/2322ccdc2eb8d42a588877076dd0a4210319852c
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
Compare: https://github.com/wesnoth/wesnoth/compare/d16801f1af40...2322ccdc2eb8
More information about the Commits
mailing list