Exemple #1
0
        private List <string> ParseModifiers()
        {
            List <string> modifiers = new List <string>();

            modifiers.Add(StatBlockParser.StringModifier(Strength));
            modifiers.Add(StatBlockParser.StringModifier(Dexterity));
            modifiers.Add(StatBlockParser.StringModifier(Constitution));
            modifiers.Add(StatBlockParser.StringModifier(Intelligence));
            modifiers.Add(StatBlockParser.StringModifier(Wisdom));
            modifiers.Add(StatBlockParser.StringModifier(Charisma));

            return(modifiers);
        }
Exemple #2
0
 public Stats(dynamic jsonObject)
 {
     Name            = jsonObject.name;
     HitPoints       = jsonObject.HitPoints;
     Speed           = jsonObject.Speed;
     Strength        = (byte)jsonObject.STR;
     Dexterity       = (byte)jsonObject.DEX;
     Constitution    = (byte)jsonObject.CON;
     Intelligence    = (byte)jsonObject.INT;
     Wisdom          = (byte)jsonObject.WIS;
     Charisma        = (byte)jsonObject.CHA;
     ChallengeRating = StatBlockParser.ParseChallengeRating(jsonObject.Challenge);
     ArmourClass     = StatBlockParser.ParseAC(jsonObject.ArmorClass);
     ImgURL          = jsonObject.img_url;
     SetModifiers();
 }