///<inheritdoc/> protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits) { //Strong points traits.Assertiveness = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Determination = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Expressiveness = RandomValueGenerator.GenerateStrongAttributeValue(); //Weak points traits.Inventiveness = RandomValueGenerator.GenerateWeakAttributeValue(); traits.Imagination = RandomValueGenerator.GenerateWeakAttributeValue(); }
///<inheritdoc/> protected override void AdjustQualitiesAccordingToArchetype(CharacterTraits traits) { //Strong points traits.Ambition = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Imagination = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Adaptiveness = RandomValueGenerator.GenerateStrongAttributeValue(); //Weak points traits.Tolerance = 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.Determination = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Tolerance = RandomValueGenerator.GenerateStrongAttributeValue(); traits.Willpower = RandomValueGenerator.GenerateStrongAttributeValue(); //Weak points traits.Changing = RandomValueGenerator.GenerateWeakAttributeValue(); traits.Imagination = 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(); }
///<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); } }
/// <summary> /// Adds 1 to 4 additional weak points /// </summary> /// <param name="traits"></param> protected void AddRandomWeakPoint(CharacterTraits traits) { int numberOfWeakPoints = 3; int demographicPercentage = RandomValueGenerator.GeneratePercentileIntegerValue(); if (demographicPercentage > int.Parse(TraitDistribution.WeakPointTier1) && demographicPercentage <= int.Parse(TraitDistribution.WeakPointTier2)) { numberOfWeakPoints = 4; } if (demographicPercentage > int.Parse(TraitDistribution.WeakPointTier2) && demographicPercentage <= int.Parse(TraitDistribution.WeakPointTier3)) { numberOfWeakPoints = 5; } if (demographicPercentage > int.Parse(TraitDistribution.WeakPointTier3)) { numberOfWeakPoints = 6; } while (WeakPoints.Count < numberOfWeakPoints) { 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); } }