50 Silber/Woche in den Pool

Debug message
This commit is contained in:
Enno Rehling 2005-02-18 20:25:39 +00:00
parent 94c596c388
commit 09d3a99006
2 changed files with 9 additions and 1 deletions

View File

@ -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;
} }
} }

View File

@ -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()