From 6773747f93ea5f5767cdab3560774b6966beca00 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 23 Oct 2010 01:12:23 -0700 Subject: [PATCH] bring script up to date with current syntax. --- scripts/eressea/adamant.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/eressea/adamant.lua b/scripts/eressea/adamant.lua index 66c260bdf..dae8b7929 100644 --- a/scripts/eressea/adamant.lua +++ b/scripts/eressea/adamant.lua @@ -27,7 +27,7 @@ end -- create a fixed path to a specific region local function create_path(from, to) local param = tostring(to.uid) - local b = add_building(from, "portal") + local b = building.create(from, "portal") b.name = "Weltentor" b.size = 1 b:add_action("tunnel_action", param) @@ -35,7 +35,7 @@ end -- create a wonky tunnel wth more than one exit local function create_tunnel(from, param) - local b = add_building(from, "portal") + local b = building.create(from, "portal") b.name = "Weltentor" b.size = 1 b:add_action("tunnel_action", param) @@ -59,8 +59,8 @@ function mkanchors() if not r:get_key("tnnL") then r:set_key("tnnL", true) if r:get_flag(0) then - -- RF_CHAOTIC - r:set_flag(0, true) + -- RF_CHAOTIC gets removed + r:set_flag(0, false) end r:set_resource("peasant", r:get_resource("peasant") + 1) end