private void AddScore(ref float score_variable, ref bool score_enabled, ref MSMDGProgressBar bar)
{
if (score_enabled && bar.Visible)
{
score_variable += PERSON_HELPED_SCORE_INCREASE;
if (score_variable > 1)
{
score_variable = 1;
mood += MDG_COMPLETE_MOOD_BONUS;
score_enabled = false;
}
bar.Progress = score_variable;
}
}