|
Player12
An open source football management simulator
|
Functions | |
| std::optional< std::uint32_t > | appearanceMilestone (std::uint32_t before, std::uint32_t after) |
| std::optional< std::uint32_t > | goalMilestone (std::uint32_t before, std::uint32_t after) |
| bool | isPoorRun (std::string_view recent_form) |
| const char * | kindKey (StoryKind kind) |
| bool | isDilemma (StoryKind kind) |
| const char * | dilemmaTitleKey (StoryKind kind) |
| const char * | dilemmaBodyKey (StoryKind kind) |
| const char * | dilemmaOptionKey (StoryKind kind, int option) |
| const char * | dilemmaDoneKey (StoryKind kind, int option) |
| std::optional< StoryKind > | dilemmaForTitle (std::string_view title_key) |
| DilemmaEffects | dilemmaEffects (StoryKind kind, int option, const ClubProfile &profile) |
Variables | |
| constexpr int | WEEKLY_CAP = 2 |
| constexpr std::int32_t | LONG_INJURY_DAYS = 60 |
| constexpr float | BREAKOUT_RATING = 7.3f |
| constexpr int | BREAKOUT_MAX_AGE = 21 |
| constexpr int | DEBUT_MAX_AGE = 19 |
| constexpr int | POOR_RUN_MATCHES = 5 |
| constexpr std::int32_t | SAGA_WINDOW_DAYS = 30 |
| constexpr std::int32_t | CHOICE_DAYS = 21 |
| constexpr std::int32_t | DILEMMA_GAP_DAYS = 14 |
| constexpr std::int32_t | DILEMMA_KIND_COOLDOWN_DAYS = 180 |
| constexpr std::int32_t | DILEMMA_ANSWER_DAYS = 7 |
| constexpr double | DILEMMA_DAILY_CHANCE = 0.06 |
| constexpr float | DILEMMA_MAX_MORALE = 6.0f |
| constexpr float | DILEMMA_MAX_TRUST = 6.0f |
| constexpr float | DILEMMA_MAX_SQUAD_MORALE = 2.0f |
| constexpr float | DILEMMA_MAX_SHARPNESS = 10.0f |
| constexpr std::int64_t | DILEMMA_MAX_MONEY = 250'000 |
| constexpr StoryKind | FIRST_DILEMMA = StoryKind::CompassionateLeave |
| constexpr StoryKind | LAST_DILEMMA = StoryKind::TicketProtest |
| constexpr std::size_t | MAX_FOLLOWS = 25 |
| constexpr float | BIG_MATCH_RATING = 8.5f |
| constexpr int | BIG_MATCH_GOALS = 2 |
| constexpr std::int32_t | BIG_MATCH_GAP_DAYS = 7 |
| std::optional< std::uint32_t > Stories::appearanceMilestone | ( | std::uint32_t | before, |
| std::uint32_t | after | ||
| ) |
Appearance milestones crossed from before to after (e.g. 100).
| const char * Stories::dilemmaBodyKey | ( | StoryKind | kind | ) |
| const char * Stories::dilemmaDoneKey | ( | StoryKind | kind, |
| int | option | ||
| ) |
Body of the note filed once answer option is taken.
| DilemmaEffects Stories::dilemmaEffects | ( | StoryKind | kind, |
| int | option, | ||
| const ClubProfile & | profile | ||
| ) |
Effects of answer option (0 or 1) for a club of profile.
| std::optional< StoryKind > Stories::dilemmaForTitle | ( | std::string_view | title_key | ) |
The moment a title key belongs to, if any.
| const char * Stories::dilemmaOptionKey | ( | StoryKind | kind, |
| int | option | ||
| ) |
Label of answer option (0 or 1).
| const char * Stories::dilemmaTitleKey | ( | StoryKind | kind | ) |
Language keys of a moment's message (title and body take the player, the second player or rival club, and the money at stake).
| std::optional< std::uint32_t > Stories::goalMilestone | ( | std::uint32_t | before, |
| std::uint32_t | after | ||
| ) |
Goal milestones crossed from before to after (e.g. 50).
| bool Stories::isDilemma | ( | StoryKind | kind | ) |
True for the two-option decision moments.
| bool Stories::isPoorRun | ( | std::string_view | recent_form | ) |
True when the latest results (newest first, 'W'/'D'/'L') hold a poor run: POOR_RUN_MATCHES or more without a win.
| const char * Stories::kindKey | ( | StoryKind | kind | ) |
Language key of a story kind.
|
constexpr |
At most one big-match note per player in this many days.
|
constexpr |
...or this many goals.
|
constexpr |
A followed player's match makes news from this rating...
|
constexpr |
|
constexpr |
Mean recent rating of a young player that makes a breakout.
|
constexpr |
|
constexpr |
Senior debuts are told for players up to this age.
|
constexpr |
Days to answer before the moment lapses (without effects).
|
constexpr |
Chance per eligible day once the gap has passed.
|
constexpr |
At most one decision moment in this many days.
|
constexpr |
The same kind of moment does not come back for this many days.
|
constexpr |
|
constexpr |
Effect bounds (absolute values).
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Injuries at least this long make a comeback story.
|
constexpr |
Players the manager can follow at once.
|
constexpr |
Competitive matches without a win that make a poor run.
|
constexpr |
Bids within this many days that make a transfer saga.
|
constexpr |
Stories posted per rolling week at most.