Esempio n. 1
0
        // beginning of program
        private void Generator()
        {
            printDocument1.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage);


            btnMutate.Enabled = true;
            ClearForm();

            // refreshes lists
            Animal.NewAnimals();
            Powers.NewPowers();
            Paths.NewPaths();
            Gifts.NewGifts();
            Background.NewBackgrounds();
            Skills.NewSkills();
            Story.NewStories();

            // creates new blank character
            _character = Character.CreateDefaultCharacter();

            // roll stats, background, skills and story
            _character.IsPhysical = Dice.FlipCoin();
            _character.Stats      = Dice.RollStats(_character.IsPhysical, _character.Stats);
            _character.Sanity     = _character.Stats["Intelligence"] + _character.Stats["Willpower"];
            _character.Background = Background.ChooseBackground(_character.IsPhysical, _character.Background);
            _character.Skills     = Skills.AssignSkills(_character.Background.Skills, _character.Skills, _character.Background.SkillsLimit);
            _character.Story      = Story.ChooseStory(_character.Background.ID);

            DisplayHuman();
        }