university add courses for basic school

This commit is contained in:
2024-05-23 22:18:20 +03:00
parent 02f5da669f
commit 83917edcc6
14 changed files with 374 additions and 112 deletions
+8 -3
View File
@@ -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;
}
}