MP Hornshark Island: move short Lua file to inline

This commit is contained in:
Severin Glöckner 2020-02-20 05:53:47 +01:00
parent 6b3245f643
commit b72ec6e654
2 changed files with 3 additions and 4 deletions

View file

@ -66,7 +66,9 @@
name=prestart
[lua]
code= << wesnoth.dofile("multiplayer/scenarios/2p_Hornshark_Island.lua") >>
code= << for i, side in ipairs(wesnoth.sides.find({})) do
wml.variables["p" .. tostring(i) .. "_faction"] = side.faction
end >>
[/lua]
[fire_event]

View file

@ -1,3 +0,0 @@
for i, side in ipairs(wesnoth.sides.find({})) do
wml.variables["p" .. tostring(i) .. "_faction"] = side.faction
end