/// <summary> /// Изменение характеристик игрока /// </summary> /// <param name="flag"></param> private void ChangeCharacteristics(bool flag) { if (!flag) { GameCharacter.NeedsWork = 0; } else { GameCharacter.NeedsWork = (int)(needsWork * Effort_Work.ReturnValue() / 100.0); } }
/// <summary> /// Начисление зарплаты /// </summary> /// <param name="sender"></param> /// <param name="even"></param> private void GetValue_Everyday(object sender, PropertyChangedEventArgs even) { if (_currentJob != null) { Event_Work(); _currentJob.WorkPlan += Effort_Work.ReturnValue(); TextOutput(labelWorkPlan, "Выполнение плана: " + _currentJob.WorkPlan + " %"); GameCharacter.Set("Money", _currentJob.Salary_End); _numberMonthsWorked += 1; if (_numberMonthsWorked == 6) { _numberMonthsWorked = 0; ImplementationPlan(); } } }