Exemple #1
0
        /// <summary>
        /// Get localized passives
        /// </summary>
        /// <returns></returns>
        public static List <string> GetLocalizedPassives()
        {
            List <string> passives          = new List <string>();
            List <string> ETC_PASSIVE_NAMES = new List <string>()
            {
                "ui_ability_speeddice",
                "ui_filter_dice",
                "ui_dice_slash",
                "ui_dice_penetrate",
                "ui_dice_hit",
                "ui_dice_guard",
                "ui_dice_evasion",
                "ui_buf_burn",
                "ui_buf_paralysis",
                "ui_buf_bleeding",
                "ui_buf_vulnerable",
                "ui_buf_weak",
                "ui_buf_disarm",
                "ui_buf_binding",
                "ui_buf_protection",
                "ui_buf_strength",
                "ui_buf_endurance",
                "ui_buf_quickness",
                "ui_ability_energy"
            };

            ETC_PASSIVE_NAMES.ForEach((string ETC_PASSIVE_NAME) =>
            {
                passives.Add(LocalizedGameDescriptions.GetDescriptionForETC(ETC_PASSIVE_NAME));
            });
            return(passives);
        }
Exemple #2
0
        /// <summary>
        /// Get full description for DropBook
        /// </summary>
        /// <param name="dropBookID">Drop book ID to use</param>
        /// <returns>Dropbook description</returns>
        public static string GetFullDescriptionForDropBook(string dropBookID)
        {
            List <XmlDataNode> foundDataNodes = DM.GameInfos.staticInfos["DropBook"].rootDataNode.GetXmlDataNodesByPathWithXmlInfo("BookUse",
                                                                                                                                   attributeToCheck: new Dictionary <string, string>()
            {
                { "ID", dropBookID }
            });

            if (foundDataNodes.Count <= 0)
            {
                foundDataNodes = DM.EditGameData_DropBookInfo.StaticDropBookInfo.rootDataNode.GetXmlDataNodesByPathWithXmlInfo("BookUse",
                                                                                                                               attributeToCheck: new Dictionary <string, string>()
                {
                    { "ID", dropBookID }
                });
            }

            if (foundDataNodes.Count > 0)
            {
                XmlDataNode DROP_BOOK_NODE = foundDataNodes[0];
                string      DROP_BOOK_DES  = LocalizedGameDescriptions.GetDescriptionForETC(DROP_BOOK_NODE.GetInnerTextByPath("TextId"));
                string      CHAPTER_DES    = LocalizedGameDescriptions.GetDescriptionForChapter(DROP_BOOK_NODE.GetInnerTextByPath("Chapter"));

                return($"{CHAPTER_DES} / {DROP_BOOK_DES}:{dropBookID}");
            }
            else
            {
                return($"Drop Book ID :{dropBookID}");
            }
        }