public Config(PudgePlus main) { Main = main; ActivatePlugins(); Screen = new Vector2(Drawing.Width - 160, Drawing.Height); MultiSleeper = new MultiSleeper(); Menu = new MenuManager(this); Helpers = new Helpers(this); UpdateMode = new UpdateMode(this); DamageCalculation = new DamageCalculation(this); LinkenBreaker = new LinkenBreaker(this); AutoKillSteal = new AutoKillSteal(this); AutoAbility = new AutoAbility(this); Menu.ComboKeyItem.Item.ValueChanged += ComboKeyChanged; var key = KeyInterop.KeyFromVirtualKey((int)Menu.ComboKeyItem.Value.Key); Mode = new Mode(key, this); main.Context.Orbwalker.RegisterMode(Mode); Renderer = new Renderer(this); }
public override void Execute(Effectable actor) { Unit defUnit = (actor as Unit); Damage = DamageCalculation.GetDamage(atkUnit, defUnit, hitAdd, atkMult, atkAdd, friendly); defUnit.TakeDamage(Damage); }
protected virtual void Dispose(bool disposing) { if (Disposed) { return; } if (disposing) { Renderer.Dispose(); Main.Context.Orbwalker.UnregisterMode(Mode); Menu.ComboKeyItem.Item.ValueChanged -= ComboKeyChanged; AutoAbility.Dispose(); AutoKillSteal.Dispose(); DamageCalculation.Dispose(); UpdateMode.Dispose(); Main.Context.Particle.Dispose(); Menu.Dispose(); } Disposed = true; }
public Config(SkywrathMagePlus main) { Main = main; ActivatePlugins(); Screen = new Vector2(Drawing.Width - 160, Drawing.Height); MultiSleeper = new MultiSleeper(); Menu = new MenuManager(this); Abilities = new Abilities(this); Extensions = new Extensions(this); UpdateMode = new UpdateMode(this); DamageCalculation = new DamageCalculation(this); LinkenBreaker = new LinkenBreaker(this); AutoKillSteal = new AutoKillSteal(this); AutoCombo = new AutoCombo(this); SpamMode = new SpamMode(this); AutoDisable = new AutoDisable(this); WithoutFail = new WithoutFail(this); AutoAbility = new AutoAbility(this); Menu.ComboKeyItem.Item.ValueChanged += ComboKeyChanged; var key = KeyInterop.KeyFromVirtualKey((int)Menu.ComboKeyItem.Value.Key); Mode = new Mode(key, this); Main.Context.Orbwalker.RegisterMode(Mode); Renderer = new Renderer(this); }
public void ToAttack(EntityBase target, string attackName) { //In the end, the attackStat multiplied by the multiplier and rounded by int Debug.Log("DAMAGE : " + (Battlefield.turnList[0].attack * DamageCalculation.CalculateMultiplier(target, dataManager.GetAttackData(attackName)))); AttackSystem.Attack((Battlefield.turnList[0].attack * DamageCalculation.CalculateMultiplier(target, dataManager.GetAttackData(attackName))), target); Battlefield.nextTurn = true; }
public virtual void Dispose() { Renderer.Dispose(); AutoItem.Dispose(); Combo.Dispose(); KillSteal.Dispose(); DamageCalculation.Dispose(); Abilities.Dispose(); }
private void Awake() { hitCrystal = GameObject.Find("hitCrystal"); dodgeZone = GameObject.Find("DodgeZone"); gameModeManager = GameObject.Find("GameModeManager"); if (hitCrystal != null) { DC = hitCrystal.GetComponent <DamageCalculation>(); DZ = dodgeZone.GetComponent <DodgeZone>(); DC.takeDamage += DepleteMagicMeter; DZ.healDamage += FillMagicMeter; } }
public Config(NyxAssassinPlus main) { Main = main; Screen = new Vector2(Drawing.Width - 160, Drawing.Height); MultiSleeper = new MultiSleeper(); Menu = new MenuManager(this); UpdateMode = new UpdateMode(this); DamageCalculation = new DamageCalculation(this); LinkenBreaker = new LinkenBreaker(this); AutoKillSteal = new AutoKillSteal(this); MaxStunMode = new MaxStunMode(this); Menu.ComboKeyItem.Item.ValueChanged += ComboKeyChanged; var ModeKey = KeyInterop.KeyFromVirtualKey((int)Menu.ComboKeyItem.Value.Key); Mode = new Mode(Main.Context, ModeKey, this); Main.Context.Orbwalker.RegisterMode(Mode); Renderer = new Renderer(this); }
public Common() { TargetSelector = new TargetSelectorManager(MenuConfig); DamageCalculation = new DamageCalculation(this); LinkenBreaker = new LinkenBreaker(this); KillSteal = new KillSteal(this); Combo = new Combo(this); UpdateMode = new UpdateMode(this); AutoCombo = new AutoCombo(this); Farm = new Farm(this); AutoArcaneBolt = new AutoArcaneBolt(this); SpamArcaneBolt = new SpamArcaneBolt(this); Disable = new Disable(this); EulControl = new EulControl(this); ExecuteOrder = new ExecuteOrder(this); Renderer = new Renderer(this); }
public Damage(DamageCalculation damage) { _damage = damage; }
// returns the amount of damage the enemy will deal private int EnemyDamage() { return(Mathf.RoundToInt(DamageCalculation.CalculateDamage(attacking: enemy, taking: player, abilityused: enemyAbility))); }
public void Awake() { Instance = this; damageCalculation = DamageCalculation.Instance; }
public override void Initialize() { base.Initialize(); Instance = this; damageCalculation = DamageCalculation.Instance; }