WC: Don't transclude macros into the Lua code
This commit is contained in:
parent
163bb2f52d
commit
f64c6c6c46
1 changed files with 8 additions and 6 deletions
|
@ -38,10 +38,12 @@ _ "World Conquest 3p" #enddef
|
|||
[generator]
|
||||
id="WC_II_{PLAYERS}p"
|
||||
config_name={WC_II_CAMPAIGN_NAME_{PLAYERS}P} + ""
|
||||
create_scenario = "
|
||||
nplayers={PLAYERS}
|
||||
create_scenario = <<
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua'); return wc_ii_generate_scenario({PLAYERS}, a)
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua')
|
||||
return wc_ii_generate_scenario(a.nplayers, a)
|
||||
end
|
||||
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
|
@ -51,14 +53,14 @@ _ "World Conquest 3p" #enddef
|
|||
print(res)
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
>>
|
||||
#ifdef EDITOR
|
||||
user_config = "
|
||||
user_config = <<
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua');
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/settings/settings_dialog.lua');
|
||||
return wc2_debug_settings({PLAYERS})
|
||||
return wc2_debug_settings(a.nplayers)
|
||||
end
|
||||
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
|
@ -67,7 +69,7 @@ _ "World Conquest 3p" #enddef
|
|||
else
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
>>
|
||||
#endif
|
||||
id_suffix=
|
||||
[scenario]
|
||||
|
|
Loading…
Add table
Reference in a new issue