From b651c03b8e54c41a74b0b408326a9c1f600144e0 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 20 Jan 2002 10:38:03 +0000 Subject: [PATCH] - Text zu heal_all --- src/eressea/korrektur.c | 16 ++++++++++++++++ src/res/de/messages.xml | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index c5e393827..fcb18f9e4 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -2750,14 +2750,30 @@ heal_all(void) { region *r; unit *u; + faction *f; + + for(f=factions; f; f=f->next) { + freset(f, FL_DH); + } + for(r=regions; r; r=r->next) { for(u=r->units;u;u=u->next) { int max_hp = unit_max_hp(u) * u->number; if(u->hp < max_hp) { u->hp = max_hp; + fset(u->faction, FL_DH); } } } + + for(f=factions; f; f=f->next) { + if(fval(f,FL_DH)) { + add_message(&f->msgs, new_message(f, "healall")); + freset(f, FL_DH); + } + } + + return 0; } void diff --git a/src/res/de/messages.xml b/src/res/de/messages.xml index 872ced07a..c64f09c0e 100644 --- a/src/res/de/messages.xml +++ b/src/res/de/messages.xml @@ -7402,5 +7402,20 @@ + + + + + + + Diese Woche haben die Strahlen der Sonne Eresseas eine besondere heilende Kraft. + + + + + This week, the sun of Eressea has special healing powers. + + +