Ejemplo n.º 1
0
        private static List <ExportFeat> ToFeats(this Dictionary <string, List <Rule> > feats, Rules d20Rules)
        {
            var output = new List <ExportFeat>();

            foreach (var kvp in feats)
            {
                var rule = CompleteRule(kvp.Value[0], d20Rules);
                var feat = new ExportFeat()
                {
                    Name             = kvp.Key,
                    ShortDescription = rule.Specifics.SafeGetValue("Short Description").FixWhitespace(),
                    Text             = rule.Text.FixWhitespace()
                };
                output.Add(feat);
            }

            return(output);
        }
Ejemplo n.º 2
0
        private static List<ExportFeat> ToFeats(this Dictionary<string, List<Rule>> feats, Rules d20Rules)
        {
            var output = new List<ExportFeat>();
            foreach (var kvp in feats) {
                var rule = CompleteRule(kvp.Value[0], d20Rules);
                var feat = new ExportFeat() {
                    Name = kvp.Key,
                    ShortDescription = rule.Specifics.SafeGetValue("Short Description").FixWhitespace(),
                    Text = rule.Text.FixWhitespace()
                };
                output.Add(feat);
            }

            return output;
        }