Skip to content

Commit

Permalink
WML tags fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 5, 2016
1 parent 19fe2aa commit d3374d3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 3 additions & 1 deletion data/lua/wml-flow.lua
@@ -1,4 +1,6 @@

local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
local wml_actions = wesnoth.wml_actions

function wml_actions.command(cfg)
utils.handle_event_commands(cfg, "plain")
Expand Down
4 changes: 2 additions & 2 deletions data/lua/wml/endlevel.lua
@@ -1,6 +1,6 @@
local helper = wesnoth.require "lua/helper.lua"


function wml_actions.endlevel(cfg)
function wesnoth.wml_actions.endlevel(cfg)
local parsed = helper.parsed(cfg)
if wesnoth.check_end_level_disabled() then
wesnoth.message("Repeated [endlevel] execution, ignoring")
Expand Down
5 changes: 3 additions & 2 deletions data/lua/wml/find_path.lua
@@ -1,6 +1,7 @@
local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"


function wml_actions.find_path(cfg)
function wesnoth.wml_actions.find_path(cfg)
local filter_unit = helper.get_child(cfg, "traveler") or helper.wml_error("[find_path] missing required [traveler] tag")
-- only the first unit matching
local unit = wesnoth.get_units(filter_unit)[1] or helper.wml_error("[find_path]'s filter didn't match any unit")
Expand Down
4 changes: 3 additions & 1 deletion data/lua/wml/harm_unit.lua
@@ -1,4 +1,6 @@

local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
local wml_actions = wesnoth.wml_actions

function wml_actions.harm_unit(cfg)
local filter = helper.get_child(cfg, "filter") or helper.wml_error("[harm_unit] missing required [filter] tag")
Expand Down
4 changes: 3 additions & 1 deletion data/lua/wml/modify_unit.lua
@@ -1,4 +1,6 @@

local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"
local wml_actions = wesnoth.wml_actions

function wml_actions.modify_unit(cfg)
local unit_variable = "LUA_modify_unit"
Expand Down
3 changes: 2 additions & 1 deletion data/lua/wml/random_placement.lua
@@ -1,4 +1,5 @@

local helper = wesnoth.require "lua/helper.lua"
local utils = wesnoth.require "lua/wml-utils.lua"

wesnoth.wml_actions.random_placement = function(cfg)
local dist_le = nil
Expand Down

0 comments on commit d3374d3

Please sign in to comment.