forked from github/server
startbedingungen nur noch an einer stelle. immer 4200 silber, 30 logs, 30 stone.
This commit is contained in:
parent
f4e2573b58
commit
c403a43146
|
@ -1,8 +1,10 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<equipment>
|
<equipment>
|
||||||
|
<!-- removed. only used by the mapper's seed function.
|
||||||
<item name="conquesttoken" amount="1"/>
|
<item name="conquesttoken" amount="1"/>
|
||||||
<item name="log" amount="30"/>
|
<item name="log" amount="30"/>
|
||||||
<item name="stone" amount="30"/>
|
<item name="stone" amount="30"/>
|
||||||
<item name="money" amount="2000"/>
|
<item name="money" amount="4200"/>
|
||||||
|
-->
|
||||||
</equipment>
|
</equipment>
|
||||||
|
|
||||||
|
|
|
@ -25,19 +25,21 @@ function process(orders)
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- run the turn:
|
||||||
|
read_orders(orders)
|
||||||
|
|
||||||
|
plan_monsters()
|
||||||
|
process_orders()
|
||||||
|
|
||||||
-- initialize starting equipment for new players
|
-- initialize starting equipment for new players
|
||||||
-- probably not necessary, since mapper sets new players, not server
|
-- probably not necessary, since mapper sets new players, not server
|
||||||
add_equipment("conquesttoken", 1);
|
add_equipment("conquesttoken", 1);
|
||||||
add_equipment("wood", 30);
|
add_equipment("wood", 30);
|
||||||
add_equipment("stone", 30);
|
add_equipment("stone", 30);
|
||||||
add_equipment("money", 2000 + get_turn() * 10);
|
add_equipment("money", 4200);
|
||||||
|
|
||||||
-- run the turn:
|
-- use newfactions file to place out new players
|
||||||
read_orders(orders)
|
autoseed(basepath .. "/newfactions")
|
||||||
plan_monsters()
|
|
||||||
|
|
||||||
--
|
|
||||||
process_orders()
|
|
||||||
|
|
||||||
write_passwords()
|
write_passwords()
|
||||||
write_reports()
|
write_reports()
|
||||||
|
|
|
@ -6,6 +6,21 @@ function loadscript(name)
|
||||||
end
|
end
|
||||||
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()
|
function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
"eternath.lua",
|
"eternath.lua",
|
||||||
|
@ -44,13 +59,6 @@ function process(orders)
|
||||||
return -1
|
return -1
|
||||||
end
|
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:
|
-- run the turn:
|
||||||
read_orders(orders)
|
read_orders(orders)
|
||||||
run_scripts()
|
run_scripts()
|
||||||
|
@ -58,17 +66,16 @@ function process(orders)
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
localechange = { en = { "y7hq" } }
|
change_locales()
|
||||||
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
|
|
||||||
|
|
||||||
|
-- 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")
|
autoseed(basepath .. "/newfactions")
|
||||||
|
|
||||||
write_passwords()
|
write_passwords()
|
||||||
|
|
Loading…
Reference in New Issue