From 09d3a99006d68846fc4c1def56e950e361bfbf17 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 18 Feb 2005 20:25:39 +0000 Subject: [PATCH] 50 Silber/Woche in den Pool Debug message --- src/eressea/lua/building.cpp | 2 +- src/scripts/hse3-run.lua | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/eressea/lua/building.cpp b/src/eressea/lua/building.cpp index 9b4fe1e5b..12389d090 100644 --- a/src/eressea/lua/building.cpp +++ b/src/eressea/lua/building.cpp @@ -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; } } diff --git a/src/scripts/hse3-run.lua b/src/scripts/hse3-run.lua index b27a4ce49..2282181ae 100644 --- a/src/scripts/hse3-run.lua +++ b/src/scripts/hse3-run.lua @@ -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()