forked from github/server
- anzahl Helden und maximalanzahl im CR/NR
This commit is contained in:
parent
3858781bd5
commit
c45e89de45
|
@ -1144,6 +1144,12 @@ report_computer(FILE * F, faction * f, const faction_list * addresses,
|
||||||
fprintf(F, "%d;Anzahl Immigranten\n", count_migrants(f));
|
fprintf(F, "%d;Anzahl Immigranten\n", count_migrants(f));
|
||||||
fprintf(F, "%d;Max. Immigranten\n", count_maxmigrants(f));
|
fprintf(F, "%d;Max. Immigranten\n", count_maxmigrants(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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\";Parteiname\n", f->name);
|
||||||
fprintf(F, "\"%s\";email\n", f->email);
|
fprintf(F, "\"%s\";email\n", f->email);
|
||||||
fprintf(F, "\"%s\";banner\n", f->banner);
|
fprintf(F, "\"%s\";banner\n", f->banner);
|
||||||
|
|
|
@ -2054,6 +2054,14 @@ report(FILE *F, faction * f, const faction_list * addresses,
|
||||||
count_migrants(f), maxmig);
|
count_migrants(f), maxmig);
|
||||||
centre(F, buf, true);
|
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) {
|
if (f->age > 1 && f->lastorders != turn) {
|
||||||
rnl(F);
|
rnl(F);
|
||||||
|
|
Loading…
Reference in New Issue