﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test_1
{
    class Thief
    {
        private int thiefStrenghtStats = 4, thiefAgilityStats = 5, thiefVitalytyStats = 6, thiefDefensStats = 4, thiefIntelectStats = 16, thiefCharismaStats = 10, looper = 1, minimumTotalStat = 0;

        public Thief()
        {
            do
            {
                Utility utility = new Utility();
                thiefStrenghtStats = thiefStrenghtStats + utility.statsModifier(thiefStrenghtStats);
                thiefAgilityStats = thiefAgilityStats + utility.statsModifier(thiefAgilityStats);
                thiefVitalytyStats = thiefVitalytyStats + utility.statsModifier(thiefVitalytyStats);
                thiefDefensStats = thiefDefensStats + utility.statsModifier(thiefDefensStats);
                thiefIntelectStats = thiefIntelectStats + utility.statsModifier(thiefIntelectStats);
                thiefCharismaStats = thiefCharismaStats + utility.statsModifier(thiefCharismaStats);

                minimumTotalStat = thiefStrenghtStats + thiefAgilityStats + thiefVitalytyStats + thiefDefensStats + thiefIntelectStats + thiefCharismaStats;

                if (minimumTotalStat >= 35)
                {
                    looper = 0;
                }

            } while (looper == 1);
        }

        public void thiefWriter()
        {
            Console.Write("__________________________________________________\n\nYour stats are:\n");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.Write("Strenght");
            Console.ResetColor();
            Console.Write(": " + thiefStrenghtStats);

            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.Write("\n\nAgility");
            Console.ResetColor();
            Console.Write(": " + thiefAgilityStats);

            Console.ForegroundColor = ConsoleColor.DarkCyan;
            Console.Write("\n\nVitalyty");
            Console.ResetColor();
            Console.Write(": " + thiefVitalytyStats);

            Console.ForegroundColor = ConsoleColor.DarkGray;
            Console.Write("\n\nDefens");
            Console.ResetColor();
            Console.Write(": " + thiefDefensStats);

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.Write("\n\nIntelect");
            Console.ResetColor();
            Console.Write(": " + thiefIntelectStats);

            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.Write("\n\nCharisma");
            Console.ResetColor();
            Console.Write(": " + thiefCharismaStats);

            Console.WriteLine("\n\n__________________________________________________");
            Console.ReadKey();
        }
    }
}
