forked from github/server
parent
94c596c388
commit
09d3a99006
|
@ -50,7 +50,7 @@ lc_age(struct attrib * a)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (fun.type()!=LUA_TFUNCTION) {
|
if (fun.type()!=LUA_TFUNCTION) {
|
||||||
log_error(("Lua global object %s is not a function\n", fname));
|
log_error(("Lua global object %s is not a function, type is %u\n", fname, fun.type()));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,12 @@ function write_emails()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function refresh_pool()
|
||||||
|
for f in factions do
|
||||||
|
f:add_item("money", 50)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function process(orders)
|
function process(orders)
|
||||||
file = "" .. get_turn()
|
file = "" .. get_turn()
|
||||||
if read_game(file)~=0 then
|
if read_game(file)~=0 then
|
||||||
|
@ -46,6 +52,8 @@ function process(orders)
|
||||||
plan_monsters()
|
plan_monsters()
|
||||||
process_orders()
|
process_orders()
|
||||||
|
|
||||||
|
refresh_pool()
|
||||||
|
|
||||||
write_passwords()
|
write_passwords()
|
||||||
write_reports()
|
write_reports()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue