forked from github/server
fix for gate-scripts
This commit is contained in:
parent
fb4bf4f804
commit
3115e78b31
|
@ -1,16 +1,20 @@
|
||||||
function run_scripts()
|
function loadscript(name)
|
||||||
scripts = {
|
local script = scriptpath .. "/" .. name
|
||||||
"wedding-jadee.lua",
|
|
||||||
"eternath.lua",
|
|
||||||
"ponnuki.lua"
|
|
||||||
}
|
|
||||||
for index in scripts do
|
|
||||||
local script = scriptpath .. "/" .. scripts[index]
|
|
||||||
print("- loading " .. script)
|
print("- loading " .. script)
|
||||||
if pcall(dofile, script)==0 then
|
if pcall(dofile, script)==0 then
|
||||||
print("Could not load " .. script)
|
print("Could not load " .. script)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function run_scripts()
|
||||||
|
scripts = {
|
||||||
|
"eternath.lua",
|
||||||
|
"wedding-jadee.lua",
|
||||||
|
"ponnuki.lua"
|
||||||
|
}
|
||||||
|
for index in scripts do
|
||||||
|
loadscript(scripts[index])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function write_emails()
|
function write_emails()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
if gate_travel==nil then
|
if gate_travel==nil then
|
||||||
dofile("gates.lua")
|
loadscript("gates.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function eternath_exchange(b1, b2, size)
|
local function eternath_exchange(b1, b2, size)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- are used as age() functions for a building_action with b:addaction("name")
|
-- are used as age() functions for a building_action with b:addaction("name")
|
||||||
|
|
||||||
if gate_travel==nil then
|
if gate_travel==nil then
|
||||||
dofile("gates.lua")
|
loadscript("gates.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
hellgate = nil
|
hellgate = nil
|
||||||
|
|
Loading…
Reference in New Issue