From c45e89de450b69c6884bfc3cac8c06090a8eaff8 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 18 Oct 2004 22:03:32 +0000 Subject: [PATCH] http://eressea.upb.de/mantis/view.php?id=302 - anzahl Helden und maximalanzahl im CR/NR --- src/common/gamecode/creport.c | 8 +++++++- src/common/gamecode/report.c | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/common/gamecode/creport.c b/src/common/gamecode/creport.c index 93cdfa8a9..cc048a403 100644 --- a/src/common/gamecode/creport.c +++ b/src/common/gamecode/creport.c @@ -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); diff --git a/src/common/gamecode/report.c b/src/common/gamecode/report.c index 8f36a5872..7ab0305d0 100644 --- a/src/common/gamecode/report.c +++ b/src/common/gamecode/report.c @@ -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);