Do not load helper.lua where it is not used any more
(cherry-picked from commit 4b6681a300
)
This commit is contained in:
parent
cb1bc56478
commit
1c88a6d8c8
38 changed files with 0 additions and 44 deletions
|
@ -23,7 +23,6 @@ return {
|
|||
end
|
||||
math.randomseed(os.time())
|
||||
|
||||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local M = wesnoth.map
|
||||
|
|
|
@ -6,7 +6,6 @@ return {
|
|||
|
||||
-- More generic grunt rush (and can, in fact, be used with other unit types as well)
|
||||
|
||||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local T = wml.tag
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local FAU = wesnoth.require "ai/micro_ais/cas/ca_fast_attack_utils.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local M = wesnoth.map
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local T = wml.tag
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
|
||||
local ca_healer_initialize = {}
|
||||
|
||||
function ca_healer_initialize:evaluation()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local M = wesnoth.map
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local M = wesnoth.map
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
|
||||
local function get_dog(cfg)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local M = wesnoth.map
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local M = wesnoth.map
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local M = wesnoth.map
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
local LS = wesnoth.require "location_set"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local H = wesnoth.require "helper"
|
||||
|
||||
local function get_lurker(cfg)
|
||||
-- We simply pick the first of the lurkers, they have no strategy
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
|
||||
local ca_protect_unit_finish, PU_unit, PU_goal = {}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local LS = wesnoth.require "location_set"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
|
||||
local function get_guardian(cfg)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
local M = wesnoth.map
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
local AH = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
|
||||
local LS = wesnoth.require "location_set"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
|
||||
function wesnoth.micro_ais.fast_ai(cfg)
|
||||
local optional_keys = {
|
||||
"attack_hidden_enemies", "[avoid]", "dungeon_mode",
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
local H = wesnoth.require "helper"
|
||||
|
||||
local function handle_default_recruitment(cfg)
|
||||
-- Also need to delete/add the default recruitment CA
|
||||
if cfg.action == 'add' then
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
-- same side).
|
||||
-- For the time being, we only allow key=value style variables.
|
||||
|
||||
local H = wesnoth.require "helper"
|
||||
|
||||
local micro_ai_self_data = {}
|
||||
|
||||
function micro_ai_self_data.modify_mai_self_data(self_data, ai_id, action, vars_table)
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
-- with different ai_CA values affecting the same unit)
|
||||
-- For the time being, we only allow key=value style variables.
|
||||
|
||||
local H = wesnoth.require "helper"
|
||||
|
||||
local micro_ai_unit_variables = {}
|
||||
|
||||
function micro_ai_unit_variables.modify_mai_unit_variables(unit, ai_id, action, vars_table)
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
first_time_only=no
|
||||
[lua]
|
||||
code = <<
|
||||
H = wesnoth.dofile("lua/helper.lua")
|
||||
local tests_table = {}
|
||||
function register_test(_name, _description)
|
||||
tests_table[_name] = _description
|
||||
|
|
|
@ -654,7 +654,6 @@
|
|||
# wmllint: markcheck off
|
||||
code= <<
|
||||
local ai_helper = wesnoth.require "ai/lua/ai_helper.lua"
|
||||
local H = wesnoth.require "helper"
|
||||
local delf = wesnoth.get_units { id = 'Delfador' }[1]
|
||||
local sceptre_loc= wesnoth.special_locations.sceptre
|
||||
local path = wesnoth.find_path(delf, sceptre_loc[1], sceptre_loc[2], {ignore_units = true, viewing_side = 0}) -- # wmllint: noconvert
|
||||
|
|
|
@ -4,7 +4,6 @@ local labels = {}
|
|||
local wml_label = wesnoth.wml_actions.label
|
||||
local replace_map = wesnoth.wml_actions.replace_map
|
||||
|
||||
local helper = wesnoth.require "helper"
|
||||
local wml_actions = wesnoth.wml_actions
|
||||
local T = wml.tag
|
||||
local vars = wml.variables
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
-- Allows the player to choose whether they want to play Konrad or Li’sar
|
||||
-- for the tutorial
|
||||
|
||||
local helper = wesnoth.require "helper"
|
||||
local T = wml.tag
|
||||
local wml_actions = wesnoth.wml_actions
|
||||
local _ = wesnoth.textdomain "wesnoth-tutorial"
|
||||
|
|
|
@ -3669,7 +3669,6 @@ unplagueable: $wml_unit.status.unplagueable"
|
|||
|
||||
[lua]
|
||||
code = <<
|
||||
local helper = wesnoth.require "helper"
|
||||
for i, v in ipairs(wml.array_access.get_proxy("temp_villages_area")) do
|
||||
wesnoth.put_unit({ type = "Goblin Spearman", side = 2 }, v.x, v.y)
|
||||
end
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#define ASPECT_NOTIFICATION
|
||||
<<
|
||||
local H = wesnoth.require('helper')
|
||||
local expected = wml.array_access.get('expected')
|
||||
local aspect = wml.variables['test_attribute']
|
||||
if ai.aspects[aspect] ~= expected[wesnoth.current.turn].value then
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
name=start
|
||||
[lua]
|
||||
code=<<
|
||||
local H = wesnoth.require "helper"
|
||||
local function continue()
|
||||
wesnoth.wml_actions.continue{}
|
||||
end
|
||||
|
|
2
join.lua
2
join.lua
|
@ -11,8 +11,6 @@ local function plugin()
|
|||
|
||||
local events, context, info
|
||||
|
||||
local helper = wesnoth.require "helper"
|
||||
|
||||
local function find_test_game(info)
|
||||
local g = info.game_list()
|
||||
if g then
|
||||
|
|
Loading…
Add table
Reference in a new issue