public void Execute(Utility.ComponentContainer components) { var familiar = familiars.ChooseOne(); var summon = new SummonFamiliar(familiar); components.Add(summon); }
public void Execute(Utility.ComponentContainer components) { var wizardCasting = components.Get <WizardCasting>(); var school = arcaneGateway.ChooseOne(); wizardCasting.SetFocusSchool(school); components.Add(school); }
public void Execute(Settlement settlement) { var count = Randomly.Range(5, 15); for (int i = 0; i < count; i++) { settlement.Add(buildings.ChooseOne()); } }
public void Initialize(ComponentContainer components) { this.sourceLevels = components.Get <ClassLevel>(); var energyType = energyTypes.ChooseOne(); damageResistance = new EnergyResistance(energyType, CalculateResistance); var defense = components.Get <DefenseStats>(); defense.AddDamageResistance(damageResistance); }
public void ExecuteStep(CharacterSheet character) { var facial = character.Appearance; facial.EyeColor = eyeColors.ChooseOne(); facial.HairColor = hairColors.ChooseOne(); facial.HairStyle = hairStyles.ChooseOne(); if (character.Gender == Gender.Male) { facial.FacialHair = facialHair.ChooseOne(); } }
public void Random(CharacterSheet character) { character.PersonalityType = personalities.ChooseOne(); character.Ideal = ideals.ChooseOne(); }
public void Execute(Utility.ComponentContainer components) { components.Add(bloodlines.ChooseOne()); }
public void ExpandTemplate(System.IO.TextWriter writer, dynamic context, object[] parameters) { var chosen = gateway.ChooseOne(); writer.WriteSafeString(chosen.Name); }
public void Execute(Utility.ComponentContainer components) { var combat = combatStyleGateway.ChooseOne(); components.Add(combat); }
public void ExecuteStep(CharacterSheet character) { character.Appearance.HairColor = hairColors.ChooseOne(); character.Appearance.HairStyle = hairStyles.ChooseOne(); }
public void ExecuteStep(CharacterSheet character) { var choose = options.ChooseOne(); character.Add(choose.CreateModifier()); }