forked from github/server
- Text zu heal_all
This commit is contained in:
parent
f40ff92eb9
commit
b651c03b8e
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue