Remove some uses of set_wml_tag_metatable
(cherry-picked from commit 3939c332b9
)
This commit is contained in:
parent
6750171fa1
commit
1123c8a707
4 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
local helper = wesnoth.require "helper"
|
||||
local T = helper.set_wml_tag_metatable {}
|
||||
local T = wml.tag
|
||||
|
||||
local res = {}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
local helper = wesnoth.require("helper")
|
||||
local _ = wesnoth.textdomain 'wesnoth-multiplayer'
|
||||
local T = helper.set_wml_tag_metatable {}
|
||||
local T = wml.tag
|
||||
local on_event = wesnoth.require("on_event")
|
||||
|
||||
local random_spawns = {
|
||||
|
|
|
@ -1011,8 +1011,7 @@ local types = { "Ancient Lich", "Ancient Wose", "Elvish Avenger" }
|
|||
|
||||
local result = wesnoth.synchronize_choice(function()
|
||||
-- Human choice
|
||||
local helper = wesnoth.require "helper"
|
||||
local T = helper.set_wml_tag_metatable {}
|
||||
local T = wml.tag
|
||||
local _ = wesnoth.textdomain "wesnoth"
|
||||
local dialog = {
|
||||
T.helptip { id = "helptip_large" },
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
name = prestart
|
||||
[lua]
|
||||
code = <<
|
||||
local T = wesnoth.require("lua/helper.lua").set_wml_tag_metatable {}
|
||||
local T = wml.tag
|
||||
|
||||
local function assert_equal(expect, status)
|
||||
if status ~= expect then
|
||||
|
|
Loading…
Add table
Reference in a new issue