|
Player12
An open source football management simulator
|
Bounded, slow personality transfer from mentor to youngster. More...
Functions | |
| float | receptiveness (int age) |
| float | influence (int mentor_age) |
| float | weeklyShift (float mentor_value, float mentee_value, float receptiveness, float influence, float already_shifted) |
| float | developmentMultiplier (std::uint8_t mentor_professionalism) |
Variables | |
| constexpr int | MENTOR_MIN_AGE = 25 |
| constexpr int | MENTEE_MAX_AGE = 23 |
| constexpr std::size_t | MAX_MENTEES = 3 |
| constexpr float | WEEKLY_RATE = 0.006f |
| constexpr float | MAX_WEEKLY_STEP = 0.1f |
| constexpr float | MAX_TOTAL_SHIFT = 10.0f |
| constexpr float | MAX_DEVELOPMENT_BONUS = 0.04f |
| constexpr float | UNHAPPY_MENTOR_MORALE = 35.0f |
| constexpr float | GLOOM_PER_WEEK = 0.5f |
Bounded, slow personality transfer from mentor to youngster.
Personality changes little in young adulthood: meta-analyses of longitudinal studies find mean-level shifts of a fraction of a standard deviation per decade, larger in the late teens and early twenties, with social roles (a first job, a mentor) among the drivers (Roberts, Walton & Viechtbauer 2006). Each week a mentee's professionalism and temperament move a small share of the gap towards the mentor's, scaled by the youngster's receptiveness (age) and the mentor's standing (age and experience), at most 0.1 points a week (about five a season) and 10 points in total. A professional mentor also adds up to 4% to the youngster's development; an unhappy mentor spreads his mood instead.
| float Mentoring::developmentMultiplier | ( | std::uint8_t | mentor_professionalism | ) |
Development multiplier from the mentor's professionalism (1.0-1.04).
| float Mentoring::influence | ( | int | mentor_age | ) |
0.6 at 25, rising to 1.0 from 33.
| float Mentoring::receptiveness | ( | int | age | ) |
1.0 up to 18, falling to 0.4 at 23.
| float Mentoring::weeklyShift | ( | float | mentor_value, |
| float | mentee_value, | ||
| float | receptiveness, | ||
| float | influence, | ||
| float | already_shifted | ||
| ) |
Weekly trait move towards mentor_value, bounded so that the total shift never leaves [-MAX_TOTAL_SHIFT, MAX_TOTAL_SHIFT].
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Below this morale the mentor's gloom rubs off (0.5 morale a week).
|
inlineconstexpr |
Share of the trait gap closed per week at full receptiveness. [P]