Example #1
0
        public void AddSpell(CommonSpell spell)
        {
            char slot = char.MinValue;

            switch (spell.Slot)
            {
            case (SpellSlot.Q):
                slot = 'q';
                break;

            case (SpellSlot.W):
                slot = 'w';
                break;

            case (SpellSlot.E):
                slot = 'e';
                break;

            case (SpellSlot.R):
                slot = 'r';
                break;
            }

            spell.UseOnComboMenu     = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tocombo", slot));
            spell.UseOnHarasMenu     = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}toharas", slot));
            spell.UseOnLaneClearMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tolaneclear", slot));
            spellList.Add(spell);
        }
Example #2
0
        public static void Load(ICommonChampion champion)
        {
            CommonSpell q = new CommonSpell(SpellSlot.Q, 625, TargetSelector.DamageType.Magical);
            CommonSpell w = new CommonSpell(SpellSlot.W, 550, TargetSelector.DamageType.Magical);
            CommonSpell e = new CommonSpell(SpellSlot.E, 0, TargetSelector.DamageType.Magical);
            CommonSpell r = new CommonSpell(SpellSlot.R, 600, TargetSelector.DamageType.Magical);

            q.SetTargetted(0.25f, 1400f);
            w.SetSkillshot(0.5f, 250f, float.MaxValue, false, SkillshotType.SkillshotCone);
            r.SetSkillshot(0.2f, 250f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            champion.Spells.AddSpell(q);
            champion.Spells.AddSpell(w);
            champion.Spells.AddSpell(e);
            champion.Spells.AddSpell(r);
        }
Example #3
0
 public void RemoveSpell(CommonSpell spell)
 {
     spellList.Remove(spell);
 }
Example #4
0
 public void RemoveSpell(CommonSpell spell)
 {
     spellList.Remove(spell);
 }
Example #5
0
        public void AddSpell(CommonSpell spell)
        {
            char slot = char.MinValue;

            switch (spell.Slot)
            {
                case (SpellSlot.Q):
                    slot = 'q';
                    break;
                case (SpellSlot.W):
                    slot = 'w';
                    break;
                case (SpellSlot.E):
                    slot = 'e';
                    break;
                case (SpellSlot.R):
                    slot = 'r';
                    break;
            }

            spell.UseOnComboMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tocombo", slot));
            spell.UseOnHarasMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}toharas", slot));
            spell.UseOnLaneClearMenu = KoreanUtils.GetParam(champion.MainMenu, string.Format("use{0}tolaneclear", slot));
            spellList.Add(spell);
        }