コード例 #1
0
ファイル: AreaTable.cs プロジェクト: Necromonicon/MyWowTools
        public bool FixRow(Locale lang)
        {
            if (parentZone != 0)
            {
                return(false);
            }

            if (territory != 0)
            {
                return(true);
            }

            string name_str = DBC.GetString(GetType(), name);

            if (name_str.IndexOf("reuse", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("unused", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("test", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("do not use", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.EndsWith(" Sea") ||
                name_str.StartsWith("Transport"))
            {
                return(false);
            }

            return(true);
        }
コード例 #2
0
        internal static void FixIcon(Type T, uint id)
        {
            string icon = DBC.GetString(T, id);

            if (!String.IsNullOrEmpty(icon))
            {
                DBC.SetString(T, id, Path.GetFileNameWithoutExtension(icon).Urlize());
            }
        }
コード例 #3
0
ファイル: Map.cs プロジェクト: Necromonicon/MyWowTools
        public int   PhasingMap;                // 19

        public bool FixRow(Locale lang)
        {
            string name = DBC.GetString(GetType(), this.InternalName);

            if (!String.IsNullOrEmpty(name))
            {
                DBC.SetString(GetType(), this.InternalName, name.Enumize());
            }

            return(true);
        }
コード例 #4
0
        public bool FixRow(Locale lang)
        {
            string systemname = DBC.GetString(GetType(), this.nameSystem);

            if (!String.IsNullOrEmpty(systemname))
            {
                DBC.SetString(GetType(), this.nameSystem, systemname.ToLower());
            }

            return(true);
        }
コード例 #5
0
        public bool FixRow(Locale lang)
        {
            if (this.name != 0)
            {
                string name = DBC.GetString(GetType(), this.name);
                if (name.IndexOf("OBSOLETE", StringComparison.InvariantCultureIgnoreCase) != -1)
                {
                    return(false);
                }
            }

            return(true);
        }
コード例 #6
0
ファイル: QuestSort.cs プロジェクト: Necromonicon/MyWowTools
        public bool FixRow(Locale lang)
        {
            string name_str = DBC.GetString(GetType(), name);

            if (name_str.IndexOf("reuse", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("unused", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("test", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("do not use", StringComparison.InvariantCultureIgnoreCase) != -1)
            {
                return(false);
            }

            return(true);
        }
コード例 #7
0
        public bool FixRow(Locale lang)
        {
            if (reputationListID < 0)
            {
                return(false);
            }

            string name_str = DBC.GetString(GetType(), name);

            if (name_str.IndexOf("reuse", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("unused", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("test", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.IndexOf("do not use", StringComparison.InvariantCultureIgnoreCase) != -1 ||
                name_str.StartsWith(" "))
            {
                return(false);
            }

            side = 0;

            return(true);
        }
コード例 #8
0
        public bool FixRow(Locale lang)
        {
            string orig;

            switch (group)
            {
            case 12:    // Cataclysm Heroic
            case 5:     // Wrath of the Lich King Heroic
            case 3:     // Burning Crusade Heroic
                orig = DBC.GetString(typeof(LFGDungeons), name);
                if (!s_translations[lang]["Heroic"].Any(v => orig.EndsWith(v)))
                {
                    orig += s_translations[lang]["Heroic"][0];
                }
                systemName = DBC.CreateString(typeof(LFGDungeons), orig.Enumize());
                fullName   = DBC.CreateString(typeof(LFGDungeons), orig);
                break;

            case 13:    // Cataclysm Normal
            case 4:     // Wrath of the Lich King Normal
            case 2:     // Burning Crusade Normal
                orig = DBC.GetString(typeof(LFGDungeons), name);
                if (!s_translations[lang]["Normal"].Any(v => orig.EndsWith(v)))
                {
                    orig += s_translations[lang]["Normal"][0];
                }
                systemName = DBC.CreateString(typeof(LFGDungeons), orig.Enumize());
                fullName   = DBC.CreateString(typeof(LFGDungeons), orig);
                break;

            case 14:    // Cataclysm Raid (25)
            case 9:     // Wrath of the Lich King Raid (25)
                orig = DBC.GetString(typeof(LFGDungeons), name);
                if (!s_translations[lang]["25"].Any(v => orig.EndsWith(v)))
                {
                    orig += s_translations[lang]["25"][0];
                }
                systemName = DBC.CreateString(typeof(LFGDungeons), orig.Enumize());
                fullName   = DBC.CreateString(typeof(LFGDungeons), orig);
                break;

            case 15:    // Cataclysm Raid (10)
            case 8:     // Wrath of the Lich King Raid (10)
                orig = DBC.GetString(typeof(LFGDungeons), name);
                if (!s_translations[lang]["10"].Any(v => orig.EndsWith(v)))
                {
                    orig += s_translations[lang]["10"][0];
                }
                systemName = DBC.CreateString(typeof(LFGDungeons), orig.Enumize());
                fullName   = DBC.CreateString(typeof(LFGDungeons), orig);
                break;

            case 7:     // Burning Crusade Raid
            case 6:     // Classic Raid
            case 11:    // World Events
            case 0:     // other (zones)
            case 1:     // Classic Dungeons
            default:
                systemName = DBC.CreateString(typeof(LFGDungeons), DBC.GetString(typeof(LFGDungeons), name).Enumize());
                fullName   = name;
                break;
            }

            return(true);
        }