Kleine Änderung

This commit is contained in:
Enno Rehling 2003-12-17 22:10:59 +00:00
parent 8dc3ca4987
commit d0abe91d9c
2 changed files with 3 additions and 5 deletions

View File

@ -34,9 +34,6 @@ function run_wdw()
-- siegbedingungen ausgeben -- siegbedingungen ausgeben
dofile("wdw-standings.lua") dofile("wdw-standings.lua")
if 1 == 1 then
return -1
end
-- write out the initial reports (no need to run a turn) -- write out the initial reports (no need to run a turn)
write_passwords() write_passwords()

View File

@ -19,12 +19,12 @@ function get_position(aid)
local pos = positions[aid] local pos = positions[aid]
-- hack, because i have no coordinates yet: -- hack, because i have no coordinates yet:
if pos.terrain ~= "ocean" then if pos ~= nil and pos.terrain ~= "ocean" then
return pos return pos
else else
-- find a region. let's use the region number 'aid' in the list, -- find a region. let's use the region number 'aid' in the list,
-- so everyone gets their own -- so everyone gets their own
print("cannot place alliance " .. aid .. " at " .. pos.x .. ", " .. pos.y) -- print("cannot place alliance " .. aid .. " at " .. pos.x .. ", " .. pos.y)
for pos in regions() do for pos in regions() do
if pos.terrain ~= "ocean" then if pos.terrain ~= "ocean" then
if aid==0 then if aid==0 then
@ -72,6 +72,7 @@ function make_faction(position, alliance, number, email, race)
u:add_item(get_gem(ano), numalliances-1) u:add_item(get_gem(ano), numalliances-1)
u:add_item(get_gem(ano+1), 2) u:add_item(get_gem(ano+1), 2)
u:add_item(get_gem(ano+2), 2) u:add_item(get_gem(ano+2), 2)
u:add_item("log", 50)
end end
local sk local sk