Player12
An open source football management simulator
Loading...
Searching...
No Matches
Mentoring Namespace Reference

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
 

Detailed Description

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.

Function Documentation

◆ developmentMultiplier()

float Mentoring::developmentMultiplier ( std::uint8_t  mentor_professionalism)

Development multiplier from the mentor's professionalism (1.0-1.04).

◆ influence()

float Mentoring::influence ( int  mentor_age)

0.6 at 25, rising to 1.0 from 33.

◆ receptiveness()

float Mentoring::receptiveness ( int  age)

1.0 up to 18, falling to 0.4 at 23.

◆ weeklyShift()

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].

Variable Documentation

◆ GLOOM_PER_WEEK

constexpr float Mentoring::GLOOM_PER_WEEK = 0.5f
inlineconstexpr

◆ MAX_DEVELOPMENT_BONUS

constexpr float Mentoring::MAX_DEVELOPMENT_BONUS = 0.04f
inlineconstexpr

◆ MAX_MENTEES

constexpr std::size_t Mentoring::MAX_MENTEES = 3
inlineconstexpr

◆ MAX_TOTAL_SHIFT

constexpr float Mentoring::MAX_TOTAL_SHIFT = 10.0f
inlineconstexpr

◆ MAX_WEEKLY_STEP

constexpr float Mentoring::MAX_WEEKLY_STEP = 0.1f
inlineconstexpr

◆ MENTEE_MAX_AGE

constexpr int Mentoring::MENTEE_MAX_AGE = 23
inlineconstexpr

◆ MENTOR_MIN_AGE

constexpr int Mentoring::MENTOR_MIN_AGE = 25
inlineconstexpr

◆ UNHAPPY_MENTOR_MORALE

constexpr float Mentoring::UNHAPPY_MENTOR_MORALE = 35.0f
inlineconstexpr

Below this morale the mentor's gloom rubs off (0.5 morale a week).

◆ WEEKLY_RATE

constexpr float Mentoring::WEEKLY_RATE = 0.006f
inlineconstexpr

Share of the trait gap closed per week at full receptiveness. [P]