- anzahl Helden und maximalanzahl im CR/NR
This commit is contained in:
Enno Rehling 2004-10-18 22:03:32 +00:00
parent 3858781bd5
commit c45e89de45
2 changed files with 15 additions and 1 deletions

View File

@ -1144,7 +1144,13 @@ report_computer(FILE * F, faction * f, const faction_list * addresses,
fprintf(F, "%d;Anzahl Immigranten\n", count_migrants(f));
fprintf(F, "%d;Max. Immigranten\n", count_maxmigrants(f));
}
fprintf(F, "\"%s\";Parteiname\n", f->name);
i = countheroes(f);
if (i>0) fprintf(F, "%d;heroes\n", i);
i = maxheroes(f);
if (i>0) fprintf(F, "%d;max_heroes\n", i);
fprintf(F, "\"%s\";Parteiname\n", f->name);
fprintf(F, "\"%s\";email\n", f->email);
fprintf(F, "\"%s\";banner\n", f->banner);
fputs("OPTIONEN\n", F);

View File

@ -2054,6 +2054,14 @@ report(FILE *F, faction * f, const faction_list * addresses,
count_migrants(f), maxmig);
centre(F, buf, true);
}
{
int maxh = maxheroes(f);
if (maxh) {
sprintf(buf, "Deine Partei hat %d Helden und kann maximal %d Helden ernennen.",
countheroes(f), maxh);
centre(F, buf, true);
}
}
if (f->age > 1 && f->lastorders != turn) {
rnl(F);