Feature #1010 ยป 0056-Add-MOST-CULTURAL-historian-report-type.patch
| server/report.c | ||
|---|---|---|
|
#include "achievements.h"
|
||
|
#include "calendar.h"
|
||
|
#include "connection.h"
|
||
|
#include "culture.h"
|
||
|
#include "events.h"
|
||
|
#include "game.h"
|
||
|
#include "government.h"
|
||
| ... | ... | |
|
HISTORIAN_ADVANCED = 1,
|
||
|
HISTORIAN_MILITARY = 2,
|
||
|
HISTORIAN_HAPPIEST = 3,
|
||
|
HISTORIAN_LARGEST = 4};
|
||
|
HISTORIAN_LARGEST = 4,
|
||
|
HISTORIAN_CULTURAL = 5};
|
||
|
#define HISTORIAN_FIRST HISTORIAN_RICHEST
|
||
|
#define HISTORIAN_LAST HISTORIAN_LARGEST
|
||
|
#define HISTORIAN_LAST HISTORIAN_CULTURAL
|
||
|
static const char *historian_message[] = {
|
||
|
/* TRANS: year <name> reports ... */
|
||
| ... | ... | |
|
/* TRANS: year <name> reports ... */
|
||
|
N_("%s %s reports on the HAPPIEST Civilizations in the World."),
|
||
|
/* TRANS: year <name> reports ... */
|
||
|
N_("%s %s reports on the LARGEST Civilizations in the World.")
|
||
|
N_("%s %s reports on the LARGEST Civilizations in the World."),
|
||
|
/* TRANS: year <name> reports ... */
|
||
|
N_("%s %s reports on the MOST CULTURAL Civilizations in the World.")
|
||
|
};
|
||
|
static const char *historian_name[] = {
|
||
| ... | ... | |
|
case HISTORIAN_LARGEST:
|
||
|
size[j].value = total_player_citizens(pplayer);
|
||
|
break;
|
||
|
case HISTORIAN_CULTURAL:
|
||
|
size[j].value = player_culture(pplayer) /
|
||
|
(1 + city_list_size(pplayer->cities));
|
||
|
break;
|
||
|
}
|
||
|
size[j].player = pplayer;
|
||
|
j++;
|
||