startbedingungen nur noch an einer stelle. immer 4200 silber, 30 logs, 30 stone.

This commit is contained in:
Enno Rehling 2005-04-09 09:11:41 +00:00
parent f4e2573b58
commit c403a43146
3 changed files with 36 additions and 25 deletions

View File

@ -1,8 +1,10 @@
<?xml version="1.0"?>
<equipment>
<!-- removed. only used by the mapper's seed function.
<item name="conquesttoken" amount="1"/>
<item name="log" amount="30"/>
<item name="stone" amount="30"/>
<item name="money" amount="2000"/>
<item name="money" amount="4200"/>
-->
</equipment>

View File

@ -25,20 +25,22 @@ function process(orders)
return -1
end
-- run the turn:
read_orders(orders)
plan_monsters()
process_orders()
-- initialize starting equipment for new players
-- probably not necessary, since mapper sets new players, not server
add_equipment("conquesttoken", 1);
add_equipment("wood", 30);
add_equipment("stone", 30);
add_equipment("money", 2000 + get_turn() * 10);
add_equipment("money", 4200);
-- run the turn:
read_orders(orders)
plan_monsters()
-- use newfactions file to place out new players
autoseed(basepath .. "/newfactions")
--
process_orders()
write_passwords()
write_reports()

View File

@ -6,6 +6,21 @@ function loadscript(name)
end
end
function change_locales()
local localechange = { }
-- local localechange = { en = { "y7hq" } }
for loc, flist in localechange do
for index, name in flist do
f = get_faction(atoi36(name))
if f ~= nil then
f.locale = loc
print("LOCALECHANGE ", f, loc)
end
end
end
end
function run_scripts()
scripts = {
"eternath.lua",
@ -44,13 +59,6 @@ function process(orders)
return -1
end
-- initialize starting equipment for new players
-- probably not necessary, since mapper sets new players, not server
add_equipment("conquesttoken", 1);
add_equipment("wood", 30);
add_equipment("stone", 30);
add_equipment("money", 2000 + get_turn() * 10);
-- run the turn:
read_orders(orders)
run_scripts()
@ -58,17 +66,16 @@ function process(orders)
plan_monsters()
process_orders()
localechange = { en = { "y7hq" } }
for loc, flist in localechange do
for index, name in flist do
f = get_faction(atoi36(name))
if f ~= nil then
f.locale = loc
print("LOCALECHANGE ", f, loc)
end
end
end
change_locales()
-- initialize starting equipment for new players
-- probably not necessary, since mapper sets new players, not server
add_equipment("conquesttoken", 1);
add_equipment("log", 30);
add_equipment("stone", 30);
add_equipment("money", 4200);
-- use newfactions file to place out new players
autoseed(basepath .. "/newfactions")
write_passwords()