/// <summary> /// Начать обучение /// </summary> /// <param name="finalJob">Работа</param> public void MyStudyFunc(CurrentStudy finalStudy) { _currentStudy = finalStudy; EnableButtom(buttonDeduct, true); EnableButtom(buttonEducation, false); CurrentWork(); _intelligenceLimitation = GameCharacter.Restrictions_Intelligence; GameCharacter.Restrictions_Intelligence = _currentStudy.RestrictionsIntellect; _flagStudy = false; }
/// <summary> /// Отчислиться /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonDeduct_Click(object sender, EventArgs e) { if (_currentStudy != null) { _currentStudy = null; EnableButtom(buttonDeduct, false); EnableButtom(buttonEducation, true); //false если не выполнил план или отчислился if (!_flagStudy) { //Вернуть уровень интеллекта на прошлый уровень GameCharacter.Restrictions_Intelligence = _intelligenceLimitation; } CurrentWork(); } }