bring script up to date with current syntax.

This commit is contained in:
Enno Rehling 2010-10-23 01:12:23 -07:00
parent 337dfab982
commit 6773747f93
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ end
-- create a fixed path to a specific region -- create a fixed path to a specific region
local function create_path(from, to) local function create_path(from, to)
local param = tostring(to.uid) local param = tostring(to.uid)
local b = add_building(from, "portal") local b = building.create(from, "portal")
b.name = "Weltentor" b.name = "Weltentor"
b.size = 1 b.size = 1
b:add_action("tunnel_action", param) b:add_action("tunnel_action", param)
@ -35,7 +35,7 @@ end
-- create a wonky tunnel wth more than one exit -- create a wonky tunnel wth more than one exit
local function create_tunnel(from, param) local function create_tunnel(from, param)
local b = add_building(from, "portal") local b = building.create(from, "portal")
b.name = "Weltentor" b.name = "Weltentor"
b.size = 1 b.size = 1
b:add_action("tunnel_action", param) b:add_action("tunnel_action", param)
@ -59,8 +59,8 @@ function mkanchors()
if not r:get_key("tnnL") then if not r:get_key("tnnL") then
r:set_key("tnnL", true) r:set_key("tnnL", true)
if r:get_flag(0) then if r:get_flag(0) then
-- RF_CHAOTIC -- RF_CHAOTIC gets removed
r:set_flag(0, true) r:set_flag(0, false)
end end
r:set_resource("peasant", r:get_resource("peasant") + 1) r:set_resource("peasant", r:get_resource("peasant") + 1)
end end