コード例 #1
0
        public static KHMedal CreateSellEvolveEXPMedal(List <HtmlNode> tr, string name, char star, string imageURL, List <HtmlNode> class_type_attributes, int offset)
        {
            var effect       = tr[9 - offset].Descendants("td").FirstOrDefault().InnerText;
            var effect_descr = tr[10 - offset].Descendants("td").FirstOrDefault().InnerText;

            var medal = new KHMiscMedal
            {
                Name               = RemoveWhitespace(name).Replace("_", " "),
                Star               = RemoveWhitespace(star.ToString()),
                ImageURL           = RemoveWhitespace(imageURL),
                Class              = RemoveWhitespace(class_type_attributes[0].InnerText),
                Type               = RemoveWhitespace(class_type_attributes[1].InnerText),
                Attribute_PSM      = RemoveWhitespace(class_type_attributes[2].InnerText),
                Attribute_UD       = RemoveWhitespace(class_type_attributes[3].InnerText),
                Effect             = RemoveWhitespace(effect),
                Effect_Description = effect_descr.Remove(effect_descr.Length - 1).Replace("&#91;1&#93;", "").Replace(",", ""),
            };

            return(medal);
        }
コード例 #2
0
        private static KHMedal CreateDalmationMedal(List <HtmlNode> tr, string name, char star, string imageURL)
        {
            var class_type   = tr[8].Descendants("td").ToList()[0].InnerText.Split('\n');
            var attribute    = tr[8].Descendants("td").ToList()[1].InnerText.Split('\n');
            var effect       = tr[9].Descendants("td").FirstOrDefault().InnerText;
            var effect_descr = tr[10].Descendants("td").FirstOrDefault().InnerText;

            var medal = new KHMiscMedal
            {
                Name               = RemoveWhitespace(name).Replace("_", " "),
                Star               = RemoveWhitespace(star.ToString()),
                ImageURL           = RemoveWhitespace(imageURL),
                Class              = RemoveWhitespace(class_type[0]),
                Type               = RemoveWhitespace(class_type[1]),
                Attribute_PSM      = RemoveWhitespace(attribute[0]),
                Attribute_UD       = RemoveWhitespace(attribute[1]),
                Effect             = RemoveWhitespace(effect),
                Effect_Description = effect_descr.Remove(effect_descr.Length - 1).Replace("&#91;1&#93;", ""),
            };

            return(medal);
        }