Beispiel #1
0
        public static CustomReturnRune GetRuneType(CustomRune rune)
        {
            CustomReturnRune cus = new CustomReturnRune();

            cus.customRune = rune;
            cus.color      = Color.Green;
            cus.RuneType   = "unknown";
            try
            {
                if (rune.current)
                {
                    cus.RuneType = rune.rune.RuneType.ToString();
                }
                else
                {
                    return(cus);
                }
                switch (cus.RuneType)
                {
                case "unknown": cus.color = Color.Green; break;

                case "DoubleDamage": cus.RuneType = "Double Damage"; cus.color = Color.Cyan; break;

                case "Invisibility": cus.color = Color.Purple; break;

                case "Illusion": cus.color = Color.Yellow; break;

                case "Haste": cus.color = Color.Red; break;

                case "Bounty": cus.color = Color.Orange; break;

                case "Regeneration": cus.color = Color.Lime; break;

                case "Arcane": cus.color = Color.MediumPurple; break;

                default: cus.color = Color.Green; cus.RuneType = "UNHANDELED RUNE"; break;
                }
                return(cus);
            }
            catch
            {
                cus.RuneType = "gone";
                return(cus);
            }
        }
Beispiel #2
0
        public static CustomReturnRune GetRuneType(CustomRune rune)
        {
            CustomReturnRune cus = new CustomReturnRune();
            cus.customRune = rune;
            cus.color = Color.Green;
            cus.RuneType = "unknown";
            try
            {

                if (rune.current)
                    cus.RuneType = rune.rune.RuneType.ToString();
                else
                    return cus;
                switch (cus.RuneType)
                {
                    case "unknown": cus.color = Color.Green; break;
                    case "DoubleDamage": cus.RuneType = "Double Damage"; cus.color = Color.Cyan; break;
                    case "Invisibility": cus.color = Color.Purple; break;
                    case "Illusion": cus.color = Color.Yellow; break;
                    case "Haste": cus.color = Color.Red; break;
                    case "Bounty": cus.color = Color.Orange; break;
                    case "Regeneration": cus.color = Color.Lime; break;
                    case "Arcane": cus.color = Color.MediumPurple; break;
                    default: cus.color = Color.Green; cus.RuneType = "UNHANDELED RUNE"; break;
                }
                return cus;
            }
            catch
            {
                cus.RuneType = "gone";
                return cus;
            }
        }