From f89c414bcd17db2bcaf19dc023304ddfcc55f3a3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 28 Apr 2019 18:30:54 +0200 Subject: [PATCH] Bug 2580: Muschelplateau --- scripts/eressea/embassy.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/eressea/embassy.lua b/scripts/eressea/embassy.lua index 00b50b482..ef81d34cc 100644 --- a/scripts/eressea/embassy.lua +++ b/scripts/eressea/embassy.lua @@ -31,12 +31,12 @@ function embassy.update() if home==nil then return end - eressea.log.debug("updating embassies in " .. tostring(home)) + eressea.log.info("updating embassies in " .. tostring(home)) local u for u in home.units do - if u.faction:get_key('mupL')==0 then - if (u.faction:add_item('seashell', 1)>0) then - eressea.log.debug("new seashell for " .. tostring(u.faction)) + if not u.faction:get_key('mupL') then + if u.faction:add_item('seashell', 1) > 0 then + eressea.log.info("new seashell for " .. tostring(u.faction)) u.faction:set_key('mupL', get_turn()) end end