Пример #1
0
 static AISpellSettings()
 {
     DefaultCooldownsByCategory[0] = new CooldownRange(30000, 60000);
     DefaultCooldownsByCategory[1] = new CooldownRange(30000, 60000);
     DefaultCooldownsByCategory[2] = new CooldownRange(30000, 60000);
     DefaultCooldownsByCategory[3] = new CooldownRange(5000, 10000);
 }
Пример #2
0
        internal void InitializeAfterLoad()
        {
            CooldownRange categoryCooldown =
                AISpellSettings.GetDefaultCategoryCooldown(this.Spell.GetAISpellCooldownCategory());

            if (this.Cooldown.MinDelay < 0)
            {
                this.Cooldown.MinDelay = categoryCooldown.MinDelay;
            }
            if (this.Cooldown.MaxDelay >= 0)
            {
                return;
            }
            this.Cooldown.MaxDelay = categoryCooldown.MaxDelay;
        }
Пример #3
0
        internal void InitializeAfterLoad()
        {
            CooldownRange categoryCooldown =
                GetDefaultCategoryCooldown(Spell.GetAISpellCooldownCategory());

            if (Cooldown.MinDelay < 0)
            {
                Cooldown.MinDelay = categoryCooldown.MinDelay;
            }
            if (Cooldown.MaxDelay >= 0)
            {
                return;
            }
            Cooldown.MaxDelay = categoryCooldown.MaxDelay;
        }
Пример #4
0
 public static void SetDefaultCategoryCooldown(AISpellCooldownCategory cat, int min, int max)
 {
     DefaultCooldownsByCategory[(int)cat] = new CooldownRange(min, max);
 }
Пример #5
0
 public static void SetDefaultCategoryCooldown(AISpellCooldownCategory cat, int min, int max)
 {
     DefaultCooldownsByCategory[(int)cat] = new CooldownRange(min, max);
 }