forked from github/server
parent
94c596c388
commit
09d3a99006
|
@ -50,7 +50,7 @@ lc_age(struct attrib * a)
|
|||
return -1;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,12 @@ function write_emails()
|
|||
end
|
||||
end
|
||||
|
||||
function refresh_pool()
|
||||
for f in factions do
|
||||
f:add_item("money", 50)
|
||||
end
|
||||
end
|
||||
|
||||
function process(orders)
|
||||
file = "" .. get_turn()
|
||||
if read_game(file)~=0 then
|
||||
|
@ -45,6 +51,8 @@ function process(orders)
|
|||
|
||||
plan_monsters()
|
||||
process_orders()
|
||||
|
||||
refresh_pool()
|
||||
|
||||
write_passwords()
|
||||
write_reports()
|
||||
|
|
Loading…
Reference in New Issue