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
d5e07b0053
commit
b1b782807d
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue