- Text zu heal_all

This commit is contained in:
Christian Schlittchen 2002-01-20 10:38:03 +00:00
parent f40ff92eb9
commit b651c03b8e
2 changed files with 31 additions and 0 deletions

View File

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

View File

@ -7403,4 +7403,19 @@
</locale>
</message>
<message name="healall">
<type>
</type>
<locale name="de">
<nr section="events">
<text>Diese Woche haben die Strahlen der Sonne Eresseas eine besondere heilende Kraft.</text>
</nr>
</locale>
<locale name="en">
<nr section="events">
<text>This week, the sun of Eressea has special healing powers.</text>
</nr>
</locale>
</message>
</messages>