forked from github/server
not writing aliases for monsters should make things go faster
This commit is contained in:
parent
57623bb2a7
commit
18485ee6f1
2 changed files with 6 additions and 4 deletions
|
@ -47,11 +47,13 @@ function write_aliases()
|
||||||
file = io.open(basepath .. "/aliases", "w")
|
file = io.open(basepath .. "/aliases", "w")
|
||||||
for faction in factions() do
|
for faction in factions() do
|
||||||
local unit
|
local unit
|
||||||
|
if faction.email ~= "" then
|
||||||
file:write("partei-" .. itoa36(faction.id) .. ": " .. faction.email .. "\n")
|
file:write("partei-" .. itoa36(faction.id) .. ": " .. faction.email .. "\n")
|
||||||
for unit in faction.units do
|
for unit in faction.units do
|
||||||
file:write("einheit-" .. itoa36(unit.id) .. ": " .. faction.email .. "\n")
|
file:write("einheit-" .. itoa36(unit.id) .. ": " .. faction.email .. "\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
|
@ -79,7 +79,7 @@ function test_md5()
|
||||||
read_game("571.dat", "binary")
|
read_game("571.dat", "binary")
|
||||||
-- read_orders("orders.571")
|
-- read_orders("orders.571")
|
||||||
run_turn()
|
run_turn()
|
||||||
write_game("572.txt", "text")
|
-- write_game("572.txt", "text")
|
||||||
end
|
end
|
||||||
|
|
||||||
loadscript("default.lua")
|
loadscript("default.lua")
|
||||||
|
|
Loading…
Reference in a new issue