Exemplo n.º 1
0
        public string setSubType()
        {
            List <string> patrons = new List <string>()
            {
                "Archfey", "Fiend", "Great Old One"
            };

            patron = patrons[NumberGen.gen(3)];
            if (patron == "Archfey")
            {
                subClass = new ArchfeyWarlock();
            }
            else if (patron == "Fiend")
            {
                subClass = new FiendWarlock();
            }
            else if (patron == "Great Old One")
            {
                subClass = new GreatOldOneWarlock();
            }

            initializeSubType();

            return(patron);
        }
Exemplo n.º 2
0
        public string setSubType()
        {
            List <string> domains = new List <string>()
            {
                "Knowledge", "Life", "Light", "Nature", "Tempest", "Trickery", "War"
            };

            domain = domains[NumberGen.gen(7)];

            if (domain == "Knowledge")
            {
                subClass = new KnowledgeCleric();
            }
            else if (domain == "Life")
            {
                subClass = new LifeCleric();
            }
            else if (domain == "Light")
            {
                subClass = new LightCleric();
            }
            else if (domain == "Nature")
            {
                subClass = new NatureCleric();
            }
            else if (domain == "Tempest")
            {
                subClass = new TempestCleric();
            }
            else if (domain == "Trickery")
            {
                subClass = new TrickeryCleric();
            }
            else if (domain == "War")
            {
                subClass = new WarCleric();
            }

            initializeSubType();

            return(domain);
        }
Exemplo n.º 3
0
        public string setSubType()
        {
            List <string> origins = new List <string> {
                "Draconic Bloodline", "Wild Magic"
            };

            origin = origins[NumberGen.gen(2)];
            if (origin == "Draconic Bloodline")
            {
                subClass = new DraconicBloodlineSorcerer();
            }
            else if (origin == "Wild Magic")
            {
                subClass = new WildMagicSorcerer();
            }

            initializeSubType();

            return(origin);
        }
Exemplo n.º 4
0
        public string setSubType()
        {
            List <string> fightingStyles = new List <string>()
            {
                "Archery", "Defense", "Dueling", "Great Weapon Fighting", "Protection", "Two-Weapon Fighting"
            };

            fightingStyle = fightingStyles[NumberGen.gen(6)];
            if (fightingStyle == "Archery")
            {
                subClass = new ArcheryFighter();
            }
            else if (fightingStyle == "Defense")
            {
                subClass = new DefenseFighter();
            }
            else if (fightingStyle == "Dueling")
            {
                subClass = new DuelingFighter();
            }
            else if (fightingStyle == "Great Weapon Fighting")
            {
                subClass = new GreatWeaponFightingFighter();
            }
            else if (fightingStyle == "Protection")
            {
                subClass = new ProtectionFighter();
            }
            else if (fightingStyle == "Two-Weapon Fighting")
            {
                subClass = new TwoWeaponFightingFighter();
            }

            initializeSubType();

            return(fightingStyle);
        }