예제 #1
0
        public static Specialization ChooseSpecialization(string pathName, Classes characterClass)
        {
            Specialization output = null;

            foreach (Specialization specialization in GetSpecializationList(characterClass))
            {
                if (specialization.Name == pathName)
                {
                    output = specialization;
                }
            }
            return(output);
        }
예제 #2
0
        public static List <Specialization> GetSpecializations()
        {
            #region "Berserker"

            Specialization berserker = new Specialization("Berserker",
                                                          "For some barbarians, rage is a means to an end - that end being violence. " +
                                                          "The Path of the Berserker is a path of untrammelled fury, slick with blood. " +
                                                          "As you enter the berserker's rage, you thrill in the chaos of battle, heedless of your own health or well-being.");

            berserker.AddFeature(new KeyValuePair <int, Feature>(3,
                                                                 new Feature("Frenzy", "Rage even harder than you could before to attack even more enemies.",
                                                                             "You can go into a frenzy when you rage.\n" +
                                                                             "If you do so, for the duration of your rage you can make a single melee weapon attack as a bonus action on each of your turns after this one. " +
                                                                             "When your rage ends, you suffer one level of exhaustion.")));

            berserker.AddFeature(new KeyValuePair <int, Feature>(6,
                                                                 new Feature("Mindless rage", "As you rage, it consumes your mind. Nothing else can occupy your thoughts but anger.",
                                                                             "You can't be charmed or frightened while raging. If you are charmed or frightened when you enter your rage. the effect is suspended for the duration of the rage.")));

            berserker.AddFeature(new KeyValuePair <int, Feature>(10,
                                                                 new Feature("Intimidating presence", "Your sheer presence on the battlefield is able to terrify your enemies.",
                                                                             "You can use your action to frighten someone with your menacing presence.\n" +
                                                                             "When you do so, choose one creature that you can see within 30 feet of you.\n" +
                                                                             "If the creature can see or hear you, it must succeed on a Wisdom saving throw (DC equal to 8 + your proficiency bonus + your Charisma modifier) or be frightened of you until the end of your next turn.\n" +
                                                                             "On subsequent turns, you can use your action to extend the duration of this effect on the frightened creature until the end of your next turn.\n" +
                                                                             "This effect ends if the creature ends its turn out of line of sight or more than 60 feet away from you.\n\n" +
                                                                             "If the creature succeeds on its saving throw. you can't use this feature on that creature again for 24 hours.")));

            berserker.AddFeature(new KeyValuePair <int, Feature>(14,
                                                                 new Feature("Retaliation", "Do not let anyone who harms you remain unpunished",
                                                                             "When you take damage from a creature that is within 5 feet of you, you can use your reaction to make a melee weapon attack against that creature.")));

            #endregion "Berserker"

            List <Specialization> output = new List <Specialization>
            {
                berserker
            };
            return(output);
        }