mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 23:24:25 +00:00
SotBE S6: discover units placed with lua
The engine does not do this by itself (which would be a better soultion) closes #3813 [ci skip]
This commit is contained in:
parent
432efbac9a
commit
fba83e70e9
@ -216,10 +216,12 @@ function wesnoth.custom_synced_commands.ship_unload(cfg)
|
||||
|
||||
local l2_type = helper.rand('Swordsman,Javelineer,Pikeman')
|
||||
wesnoth.put_unit({ side = wesnoth.current.side, type = l2_type, moves = 2 }, locs[1].x, locs[1].y)
|
||||
wesnoth.add_known_unit(l2_type)
|
||||
|
||||
for i = 2, #locs do
|
||||
local l1_type = helper.rand('Fencer,Mage,Cavalryman,Bowman,Spearman')
|
||||
wesnoth.put_unit({ side = wesnoth.current.side, type = l1_type, moves = 2 }, locs[i].x, locs[i].y)
|
||||
wesnoth.add_known_unit(l1_type)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user