Skip to content

Commit

Permalink
Made Hornshark Island Lua file an actual Lua file
Browse files Browse the repository at this point in the history
[ci skip]

Also simplified the Lua contained within. No need to create a local function just to immediately invoke it.
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 17b4da3 commit c554391
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion data/multiplayer/scenarios/2p_Hornshark_Island.cfg
Expand Up @@ -66,7 +66,7 @@
name=prestart

[lua]
code={./2p_Hornshark_Island_lua}
code= << wesnoth.dofile("multiplayer/scenarios/2p_Hornshark_Island.lua") >>
[/lua]

[fire_event]
Expand Down
3 changes: 3 additions & 0 deletions data/multiplayer/scenarios/2p_Hornshark_Island.lua
@@ -0,0 +1,3 @@
for i, side in ipairs(wesnoth.get_sides({})) do
wesnoth.set_variable("p" .. tostring(i) .. "_faction", side.faction)
end
8 changes: 0 additions & 8 deletions data/multiplayer/scenarios/2p_Hornshark_Island_lua

This file was deleted.

0 comments on commit c554391

Please sign in to comment.