Esempio n. 1
0
        private void DisplaySettler(Game game, Model.Settler.Settler settler)
        {
            if (settler == null)
            {
                CustomConsole.WriteLine($"{CustomConsole.Red}ERROR: No such settler exists");
            }
            else
            {
                CustomConsole.WriteLine($"{settler.Name}");
                CustomConsole.TitleLine();
                CustomConsole.WriteLine($"Age: {Date.DaysToYears(Date.AgeInDays(settler, game.Settlement))}");

                foreach (var(skill, xp) in settler.Experience)
                {
                    CustomConsole.WriteLine($"{SkillLevel.XPtoLevel(xp)} {skill}");
                }
            }
        }