university add courses for basic school
This commit is contained in:
@@ -18,7 +18,7 @@ public class Player : BaseCharacter
|
||||
private List<EducationInfoSO> _completedCourses = new();
|
||||
public EducationInfoSO ActiveCourse { get; set; }
|
||||
public EducationSkill Education { get; set; }
|
||||
|
||||
private int _educationPoints = 0;
|
||||
private ContainerItem _containerItem;
|
||||
|
||||
private string _locationName;
|
||||
@@ -160,8 +160,13 @@ public class Player : BaseCharacter
|
||||
ActiveCourse.PlayerProgress += time.Hours;
|
||||
if (ActiveCourse.PlayerProgress >= ActiveCourse.Duration)
|
||||
{
|
||||
Education++;
|
||||
print($"Congratulation player finish curse {ActiveCourse.Description} and his education now {Education.ToString()}");
|
||||
_educationPoints++;
|
||||
if(_educationPoints == 2)
|
||||
{
|
||||
Education++;
|
||||
print($"Congratulation player finish {Education - 1} and his education now {Education}");
|
||||
}
|
||||
_completedCourses.Add(ActiveCourse);
|
||||
ActiveCourse = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user