Exemplo n.º 1
0
        public void Execute(Utility.ComponentContainer components)
        {
            var familiar = familiars.ChooseOne();
            var summon   = new SummonFamiliar(familiar);

            components.Add(summon);
        }
Exemplo n.º 2
0
        public void Execute(Utility.ComponentContainer components)
        {
            var wizardCasting = components.Get <WizardCasting>();
            var school        = arcaneGateway.ChooseOne();

            wizardCasting.SetFocusSchool(school);
            components.Add(school);
        }
Exemplo n.º 3
0
        public void Execute(Settlement settlement)
        {
            var count = Randomly.Range(5, 15);

            for (int i = 0; i < count; i++)
            {
                settlement.Add(buildings.ChooseOne());
            }
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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();
            }
        }
Exemplo n.º 6
0
 public void Random(CharacterSheet character)
 {
     character.PersonalityType = personalities.ChooseOne();
     character.Ideal           = ideals.ChooseOne();
 }
Exemplo n.º 7
0
 public void Execute(Utility.ComponentContainer components)
 {
     components.Add(bloodlines.ChooseOne());
 }
Exemplo n.º 8
0
        public void ExpandTemplate(System.IO.TextWriter writer, dynamic context, object[] parameters)
        {
            var chosen = gateway.ChooseOne();

            writer.WriteSafeString(chosen.Name);
        }
Exemplo n.º 9
0
        public void Execute(Utility.ComponentContainer components)
        {
            var combat = combatStyleGateway.ChooseOne();

            components.Add(combat);
        }
Exemplo n.º 10
0
 public void ExecuteStep(CharacterSheet character)
 {
     character.Appearance.HairColor = hairColors.ChooseOne();
     character.Appearance.HairStyle = hairStyles.ChooseOne();
 }
Exemplo n.º 11
0
        public void ExecuteStep(CharacterSheet character)
        {
            var choose = options.ChooseOne();

            character.Add(choose.CreateModifier());
        }