public void SpellListsCanBeBuiltManually() { var spellList = new SpellList(); spellList.Add(1, "Cure Light Wounds"); spellList.Add(4, "Cure Moderate Wounds"); }
public void AddingDuplicateSpellsDoesNotDuplicate() { var spellList = new SpellList(); spellList.Add(1, "Cure Light Wounds"); spellList.Add(1, "Cure Light Wounds"); spellList.Add(1, "Cure Light Wounds"); Assert.Equal(new string[] { "Cure Light Wounds" }, spellList.GetAllSpells(1)); }
static Lux() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 1175, SkillShotType.Linear, 250, 1200, 70) { AllowedCollisionCount = 1 }; W = new Spell.Skillshot(SpellSlot.W, 1075, SkillShotType.Linear, 0, 1400, 85) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Circular, 250, 1400, 335) { AllowedCollisionCount = int.MaxValue }; R = new Spell.Skillshot(SpellSlot.R, 3340, SkillShotType.Linear, int.MaxValue, 500, 110) { AllowedCollisionCount = int.MaxValue }; SpellList.Add(Q); SpellList.Add(E); SpellList.Add(R); AutoMenu.CreateCheckBox("FleeQ", "Flee Q"); AutoMenu.CreateCheckBox("FleeW", "Flee W"); AutoMenu.CreateCheckBox("FleeE", "Flee E"); AutoMenu.CreateCheckBox("W", "W incoming Dmg self"); AutoMenu.CreateCheckBox("Wallies", "W incoming Dmg allies"); AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q"); AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E"); AutoMenu.CreateCheckBox("GapW", "Anti-GapCloser W"); AutoMenu.CreateCheckBox("IntQ", "Interrupter Q"); ComboMenu.CreateSlider("RAOE", "R AOE HIT {0}", 3, 1, 5); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); if (spell != R && spell != W) { HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); } KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Game.OnTick += Lux_SkillshotDetector; Game.OnTick += Lux_PopE; SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected; }
static Akali() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Targeted(SpellSlot.Q, 600); W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular); E = new Spell.Active(SpellSlot.E, 325); R = new Spell.Targeted(SpellSlot.R, 700); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); if (spell != R) { HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } }
static Kalista() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 1150, SkillShotType.Linear, 250, 2100, 80) { AllowedCollisionCount = 0 }; W = new Spell.Skillshot(SpellSlot.W, 5000, SkillShotType.Circular, 250, 2100, 80); E = new Spell.Active(SpellSlot.E, 1000); R = new Spell.Active(SpellSlot.R, 1100); SpellList.Add(Q); SpellList.Add(E); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; }
static Syndra() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 820, SkillShotType.Circular, 600, int.MaxValue, 125); W = new Spell.Skillshot(SpellSlot.W, 925, SkillShotType.Circular, 350, 1500, 130); E = new Spell.Skillshot(SpellSlot.E, 695, SkillShotType.Cone, 250, 2500, 50); R = new Spell.Targeted(SpellSlot.R, 695); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); if (spell != R) { HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); } KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; }
static Temp() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Active(SpellSlot.Q, 600); W = new Spell.Skillshot(SpellSlot.W, 1200, SkillShotType.Linear, 0, int.MaxValue, 60); E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 4500, SkillShotType.Linear, 250, 1600, 100) { AllowedCollisionCount = 0 }; SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } }
public void InventSpell(Spell spell) { // TODO: multiple spells in a season // TODO: foci // TODO: Working from Lab Text double labTotal = GetLabTotal(spell.BaseArts, Activity.InventSpells); if (spell == _partialSpell) { // continue previous spell work _partialSpellProgress += labTotal - spell.Level; if (_partialSpellProgress >= _partialSpell.Level) { SpellList.Add(_partialSpell); _partialSpell = null; _partialSpellProgress = 0; } } if (labTotal <= spell.Level) { throw new ArgumentException("This mage cannot invent this spell!"); } else if (labTotal >= spell.Level * 2) { SpellList.Add(spell); _partialSpell = null; _partialSpellProgress = 0; } else { _partialSpell = spell; _partialSpellProgress = labTotal - spell.Level; } }
public void CanReturnASpellsLevelFromTheName() { var spellList = new SpellList(); spellList.Add(3, "Fireball"); Assert.Equal(3, spellList.GetSpellLevel("Fireball")); }
static Taliyah() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 2000, 60) { AllowedCollisionCount = 0 }; W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Circular, 250, int.MaxValue, 180); E = new Spell.Skillshot(SpellSlot.E, 700, SkillShotType.Cone, 250, 1000, 120); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; }
static Alistar() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); if (spell != R && spell != E) { HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } } AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q"); AutoMenu.CreateCheckBox("IntQ", "Interrupter Q"); AutoMenu.CreateCheckBox("GapW", "Anti-GapCloser W"); AutoMenu.CreateCheckBox("IntW", "Interrupter W"); Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; }
static TwistedFate() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 1400, SkillShotType.Linear, 0, 1000, 40) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Active(SpellSlot.W, 800); SpellList.Add(Q); SpellList.Add(W); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; }
static Viktor() { Q = new Spell.Targeted(SpellSlot.Q, 670); W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular, 500, int.MaxValue, 250) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Skillshot(SpellSlot.E, 1225, SkillShotType.Linear, 250, int.MaxValue, 100) { AllowedCollisionCount = int.MaxValue }; R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, int.MaxValue, 450) { AllowedCollisionCount = int.MaxValue }; SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R && i != W) { HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.AddSeparator(0); } KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); }); AutoMenu.Add("Wmode", new ComboBox("GapCloser W Mode", 1, "Place On Self", "Place On Enemy")); AutoMenu.CreateCheckBox("GapW", "Auto W Anti-GapCloser"); AutoMenu.CreateCheckBox("IntW", "Auto W Interrupter"); AutoMenu.CreateCheckBox("IntR", "Auto R Interrupter"); AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions"); ComboMenu.CreateSlider("RAOE", "R AoE Hit Count {0}", 2, 1, 6); ComboMenu.CreateSlider("RMulti", "Mutilply R Damage By X{0} Times", 3, 1, 10); LaneClearMenu.CreateSlider("Ehits", "E Hit Count {0}", 3, 1, 20); Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; }
static Gangplank() { Init(); Q = new Spell.Targeted(SpellSlot.Q, 625); W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular, 250, int.MaxValue, 325); R = new Spell.Skillshot(SpellSlot.R, int.MaxValue, SkillShotType.Circular, 250, int.MaxValue, 600); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); //HarassMenu = MenuIni.AddSubMenu("Harass"); JungleClearMenu = MenuIni.AddSubMenu("JungleClear"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); DrawMenu = MenuIni.AddSubMenu("Drawings"); SpellList.Add(Q); SpellList.Add(E); SpellList.Add(R); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R) { //HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); //HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.AddSeparator(0); JungleClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); JungleClearMenu.AddSeparator(0); DrawMenu.CreateCheckBox(i.Slot, "Draw " + i.Slot); if (i != E) { //HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); JungleClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); } } KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); }); AutoMenu.CreateCheckBox("CC", "Auto W CC Buffs"); AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions"); AutoMenu.CreateKeyBind("EQMOUSE", "E > Q To Mouse", false, KeyBind.BindTypes.HoldActive, 'S'); ComboMenu.CreateSlider("RAOE", "R AoE Hit {0}", 3, 1, 6); KillStealMenu.CreateSlider("Rdmg", "Multipy R Damage By X{0}", 3, 1, 12); LaneClearMenu.CreateCheckBox("QLH", "LastHit Mode Q"); LaneClearMenu.CreateSlider("EKill", "Minions Kill Count {0}", 2, 0, 10); LaneClearMenu.CreateSlider("EHits", "Minions To Hit With E {0}", 3, 0, 10); DrawMenu.CreateCheckBox("Barrels", "Enable Barrels Drawings"); Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; Spellbook.OnCastSpell += Spellbook_OnCastSpell; }
static Gangplank() { Init(); Q = new Spell.Targeted(SpellSlot.Q, 625); W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular, 500, int.MaxValue, 325); R = new Spell.Skillshot(SpellSlot.R, int.MaxValue, SkillShotType.Circular, 500, int.MaxValue, 600); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); //HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); SpellList.Add(Q); SpellList.Add(E); SpellList.Add(R); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R) { //HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); //HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.AddSeparator(0); if (i != E) { //HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); } } KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); }); MenuIni.AddGroupLabel("For W CC Cleaner Check Activator > Qss"); //AutoMenu.CreateCheckBox("CC", "Auto W CC Buffs"); AutoMenu.CreateCheckBox("AutoQ", "Auto Q Barrels", false); AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions"); ComboMenu.CreateCheckBox("FB", "Place First Barrel"); ComboMenu.CreateSlider("RAOE", "R AoE Hit {0}", 3, 1, 6); KillStealMenu.CreateCheckBox("RSwitch", "Use Only Upgrades Damage"); KillStealMenu.CreateSlider("Rdmg", "Multipy R Damage By X{0}", 3, 1, 12); LaneClearMenu.CreateCheckBox("QLH", "LastHit Mode Q"); LaneClearMenu.CreateSlider("EKill", "Minions Kill Count {0}", 2, 0, 10); LaneClearMenu.CreateSlider("EHits", "Minions To Hit With E {0}", 3, 0, 10); Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; Spellbook.OnCastSpell += Spellbook_OnCastSpell; }
static Blitzcrank() { MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); Q = new Spell.Skillshot(SpellSlot.Q, 925, SkillShotType.Linear, 250, 1800, 70); { Q.AllowedCollisionCount = 0; } W = new Spell.Active(SpellSlot.W); E = new Spell.Active(SpellSlot.E, 300); R = new Spell.Active(SpellSlot.R, 600); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); ComboMenu.CreateCheckBox("UseRaoe", "Use R AOE"); ComboMenu.CreateSlider("RAOE", "R AOE {0}", 3, 1, 5); AutoMenu.CreateCheckBox("DashQ", "Q on dashing Targets"); AutoMenu.CreateCheckBox("FleeW", "Flee W"); AutoMenu.CreateCheckBox("TurretQ", "Under Turret Q"); AutoMenu.CreateCheckBox("TurretE", "Under Turret E"); AutoMenu.CreateCheckBox("TurretR", "Under Turret R"); AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q"); AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E"); AutoMenu.CreateCheckBox("GapR", "Anti-GapCloser R"); AutoMenu.CreateCheckBox("IntQ", "Interrupter Q"); AutoMenu.CreateCheckBox("IntE", "Interrupter E"); AutoMenu.CreateCheckBox("IntR", "Interrupter R"); foreach (var spell in SpellList) { ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); if (spell != R) { HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60); } KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot); } Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Dash.OnDash += Dash_OnDash; Game.OnTick += FuckEmUpUnderTurret; }
public SpellCastingTests() { spellList = SpellList.CreateForTesting("bard"); spellList.Add(1, "magic missile"); var gateway = EntityGateway <SpellList> .LoadWithSingleItem(spellList); bard = CharacterTestTemplates.BardyBard(); spellCasting = new SpellCasting(configuration, gateway); bard.Add(spellCasting); }
public Spell(StageDataPackage StageData) { this.StageData = StageData; Position = MyPlane.Position; Damage = 10; LifeTime = 300; SpellList.Add(this); StageData.VibrateStart(LifeTime); BackgroundBlack backgroundBlack = new BackgroundBlack(StageData, Position); }
public Spell_Koishi(StageDataPackage StageData) { this.StageData = StageData; Position = MyPlane.Position; Damage = 0; Region = 1000; LifeTime = 60; SpellList.Add(this); new BulletRemover_Small(StageData, MyPlane.OriginalPosition).Region = 150; StageData.SoundPlay("se_focusrot.wav"); }
static Syndra() { Eball = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Linear, 600, 2400, 80) { AllowedCollisionCount = int.MaxValue, DamageType = DamageType.Magical }; SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(Eball); SpellList.Add(R); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R) { HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot, i != E); HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot, i != E); LaneClearMenu.CreateSlider(i.Slot + "hit", i.Slot + " Hit {0} Minions", 3, 1, 20); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.AddSeparator(0); } KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); }); AutoMenu.CreateCheckBox("QEgap", "Auto QE Anti-Gapcloser"); AutoMenu.CreateCheckBox("QEint", "Auto QE Interrupter"); AutoMenu.CreateCheckBox("Egap", "Auto E Anti-Gapcloser"); AutoMenu.CreateCheckBox("Eint", "Auto E Interrupter"); AutoMenu.CreateCheckBox("Wunk", "Auto W Unkillable Minions"); ComboMenu.CreateCheckBox("QE", "Use QE"); HarassMenu.CreateCheckBox("QE", "Use QE"); KillStealMenu.CreateCheckBox("QE", "QE KillSteal"); Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; }
static Sion() { Q = new Spell.Skillshot(SpellSlot.Q, 740, SkillShotType.Linear, 250, int.MaxValue, 200, DamageType.Physical) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Active(SpellSlot.W, 500); E = new Spell.Skillshot(SpellSlot.E, 750, SkillShotType.Linear, 250, 1250, 70) { AllowedCollisionCount = -1 }; R = new Spell.Skillshot(SpellSlot.R, 850, SkillShotType.Linear, 250, 950, 300) { AllowedCollisionCount = -1 }; SpellList.Add(Q); SpellList.Add(E); SpellList.Add(R); MenuIni = MainMenu.AddMenu(MenuName, MenuName); AutoMenu = MenuIni.AddSubMenu("Auto"); ComboMenu = MenuIni.AddSubMenu("Combo"); HarassMenu = MenuIni.AddSubMenu("Harass"); JungleClearMenu = MenuIni.AddSubMenu("JungleClear"); LaneClearMenu = MenuIni.AddSubMenu("LaneClear"); KillStealMenu = MenuIni.AddSubMenu("KillSteal"); DrawMenu = MenuIni.AddSubMenu("Drawings"); SpellList.ForEach( i => { ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); if (i != R) { HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); HarassMenu.AddSeparator(0); LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); LaneClearMenu.CreateSlider(i.Slot + "hit", i.Slot + " Hits {0}", 3, 1, 20); LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); LaneClearMenu.AddSeparator(0); JungleClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot); JungleClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60); JungleClearMenu.AddSeparator(0); KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal"); } DrawMenu.CreateCheckBox(i.Slot, "Draw " + i.Slot); }); Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Spellbook.OnStopCast += Spellbook_OnStopCast; }
public void Initialize(ComponentContainer components) { sourceClass = components.Get <ClassLevel>(); domains = components.GetAll <Domain>(); CastingAbility = components.Get <AbilityScores>().GetAbility(castingAbilityType); SpellList = new SpellList(); foreach (var d in domains) { for (int spellLevel = 0; spellLevel < d.Spells.Length; spellLevel++) { SpellList.Add(spellLevel + 1, d.Spells[spellLevel]); } } }
private void LoadSpellData() { Q = new Spell(SpellSlot.Q, 600); W = new Spell(SpellSlot.W); E = new Spell(SpellSlot.E, 610); R = new Spell(SpellSlot.R, 700); R.SetSkillshot(0.25f, 175, 700, false, SkillshotType.SkillshotCircle); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }
private void SetUpSpells() { //intalize spell Q = new Spell(SpellSlot.Q, 675); W = new Spell(SpellSlot.W, 375); E = new Spell(SpellSlot.E, 700); R = new Spell(SpellSlot.R, 550); Q.SetTargetted(400, 1400); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }
public Spell_Sanae(StageDataPackage StageData) { this.StageData = StageData; Position = MyPlane.Position; Damage = 36; Region = 4; LifeTime = 300; ScaleVelocity = 0.1f; MaxScale = 200f; BackgroundBlack backgroundBlack = new BackgroundBlack(StageData, Position); StageData.SoundPlay("se_cat00.wav"); StageData.SoundPlay("se_nep00.wav"); SpellList.Add(this); }
private void LoadSpells() { Q = new Spell(SpellSlot.Q, 950); W = new Spell(SpellSlot.W); E = new Spell(SpellSlot.E, 140); R = new Spell(SpellSlot.R, 600); Q.SetSkillshot(0.22f, 70f, 1800, true, SkillshotType.SkillshotLine); R.SetSkillshot(0.25f, 600, float.MaxValue, false, SkillshotType.SkillshotCircle); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }
private void LoadSpellData() { Q = new Spell(SpellSlot.Q, 1080); W = new Spell(SpellSlot.W); E = new Spell(SpellSlot.E, 400); R = new Spell(SpellSlot.R, 825); Q.SetSkillshot(0.25f, 80f, 1200f, true, SkillshotType.SkillshotLine); E.SetSkillshot(0.1f, 400f, float.MaxValue, false, SkillshotType.SkillshotCircle); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }
public Spell_PlaneB(StageDataPackage StageData) { this.StageData = StageData; OriginalPosition = MyPlane.OriginalPosition; Damage = 45; Region = 30; LifeTime = 390; Direction = Math.PI / 2.0; SpellList.Add(this); new BackgroundBlack(StageData, Position).LifeTime = 410; MyPlane.HighSpeed = 1.6f; MyPlane.LowSpeed = 0.8f; new EmitterSaveEnegy3(StageData, Position).SetBinding(this); StageData.SoundPlay("boss_change.wav"); }
private void LoadSpell() { //intalize spell Q = new Spell(SpellSlot.Q, 650); W = new Spell(SpellSlot.W, 900); E = new Spell(SpellSlot.E, 1005); R = new Spell(SpellSlot.R, 650); W.SetSkillshot(1.25f, 230f, float.MaxValue, false, SkillshotType.SkillshotCircle); E.SetSkillshot(.2f, 330f, float.MaxValue, false, SkillshotType.SkillshotCircle); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }
private void SetUpSpells() { //intalize spell Q = new Spell(SpellSlot.Q, 900); W = new Spell(SpellSlot.W, 800); E = new Spell(SpellSlot.E, 875); R = new Spell(SpellSlot.R, 850); Q.SetSkillshot(0.25f, 100, 1600, false, SkillshotType.SkillshotLine); E.SetSkillshot(0.25f, 60, 1200, true, SkillshotType.SkillshotLine); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); }