コード例 #1
0
        private void Mutate()
        {
            btnMutate.Enabled  = false;
            _character.Mutated = true;

            // roll path, animal, powers and gifts
            _character.Paths = Paths.ChoosePath(_character.Story.ID);
            _character.Stats[_character.Paths.Modifier]++;
            _character.Sanity = _character.Stats["Intelligence"] + _character.Stats["Willpower"] - 1;
            _character.Luck++;
            _character.Animal = Animal.ChooseAnimal(_character.Paths.ID);
            _character.Powers = Powers.AssignPowers(_character.Animal.Powers, _character.Powers);
            _character.Gifts  = Gifts.AssignGifts(_character.Paths.Name);
            if (_character.Powers.Exists(a => a.ID == 28 || a.ID == 38 || a.ID == 47 || a.ID == 48))
            {
                _character.Injuries++;
            }

            DisplayMutant();
        }