Beispiel #1
0
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Inventiveness = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Imagination   = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Ambition      = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Modesty       = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Introspection = RandomValueGenerator.GenerateWeakAttributeValue();
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.CriticalSense = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Compassion    = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Determination = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Outlook        = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Gregariousness = RandomValueGenerator.GenerateWeakAttributeValue();
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Awareness     = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.CriticalSense = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Memory        = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Outlook     = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Imagination = RandomValueGenerator.GenerateWeakAttributeValue();
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Modesty   = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Tolerance = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Changing  = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Compassion = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Conscience = RandomValueGenerator.GenerateWeakAttributeValue();
        }
Beispiel #5
0
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Acuity         = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Expressiveness = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Inventiveness  = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Conscience   = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Selflessness = RandomValueGenerator.GenerateWeakAttributeValue();
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Charisma       = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Expressiveness = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Sociability    = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Ambition  = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.Willpower = RandomValueGenerator.GenerateWeakAttributeValue();
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            //Strong points
            traits.Compassion   = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Selflessness = RandomValueGenerator.GenerateStrongAttributeValue();
            traits.Tolerance    = RandomValueGenerator.GenerateStrongAttributeValue();

            //Weak points
            traits.Introspection = RandomValueGenerator.GenerateWeakAttributeValue();
            traits.SelfEsteem    = RandomValueGenerator.GenerateWeakAttributeValue();

            AddRandomWeakPoint(traits);
        }
        ///<inheritdoc/>
        protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits)
        {
            while (StrongPoints.Count < 4)
            {
                int randomTraitIndex = RandomValueGenerator.GenerateIntWithMaxValue(CharacterTraits.GetPersonalQualitiesCount() - 1);

                var property = traits.GetQualityPropertyByIndex(randomTraitIndex);

                if (property == null || StrongPoints.Contains(property.Name) || WeakPoints.Contains(property.Name))
                {
                    continue;
                }

                property.SetValue(traits, RandomValueGenerator.GenerateStrongAttributeValue());

                StrongPoints.Add(property.Name);
            }

            var weakPoints = traits.GetPersonalQualitiesValues().Where(quality => quality.Value <= 20).ToList();

            WeakPoints.AddRange(weakPoints.Select(x => x.Key).Take(2));

            while (WeakPoints.Count < 2)
            {
                int randomTraitIndex = RandomValueGenerator.GenerateIntWithMaxValue(CharacterTraits.GetPersonalQualitiesCount() - 1);

                var property = traits.GetQualityPropertyByIndex(randomTraitIndex);

                if (property == null || StrongPoints.Contains(property.Name) || WeakPoints.Contains(property.Name))
                {
                    continue;
                }

                property.SetValue(traits, RandomValueGenerator.GenerateWeakAttributeValue());

                WeakPoints.Add(property.Name);
            }
        }
Beispiel #9
0
        /// <summary>
        /// Adds 1 to 4 additional strong points
        /// </summary>
        /// <param name="traits"></param>
        protected void AddRandomStrongPoint(CharacterTraits traits)
        {
            int numberOfStrongPoints  = 4;
            int demographicPercentage = RandomValueGenerator.GeneratePercentileIntegerValue();

            if (demographicPercentage > int.Parse(TraitDistribution.StrongPointTier1) &&
                demographicPercentage <= int.Parse(TraitDistribution.StrongPointTier2))
            {
                numberOfStrongPoints = 5;
            }

            if (demographicPercentage > int.Parse(TraitDistribution.StrongPointTier2) &&
                demographicPercentage <= int.Parse(TraitDistribution.StrongPointTier3))
            {
                numberOfStrongPoints = 6;
            }
            if (demographicPercentage > int.Parse(TraitDistribution.StrongPointTier3))
            {
                numberOfStrongPoints = 7;
            }

            while (StrongPoints.Count < numberOfStrongPoints)
            {
                int randomTraitIndex = RandomValueGenerator.GenerateIntWithMaxValue(CharacterTraits.GetPersonalQualitiesCount() - 1);

                var property = traits.GetQualityPropertyByIndex(randomTraitIndex);

                if (property == null || StrongPoints.Contains(property.Name) || WeakPoints.Contains(property.Name))
                {
                    continue;
                }

                property.SetValue(traits, RandomValueGenerator.GenerateStrongAttributeValue());

                StrongPoints.Add(property.Name);
            }
        }