static void Main(string[] args) { var p = new Pudge(); p.AddItem(new Aganim()); Console.WriteLine(p.ToString()); }
public PudgeCombo(Pudge hero) : base(hero) { this.Pudge = hero; Entity.OnBoolPropertyChange += this.OnHookCast; this.hookUpdateHandler = UpdateManager.Subscribe(this.HookHitCheck, 0, false); this.ComboHandler = UpdateManager.Run(this.HookAllies); }
public PudgeOrbwalker(Pudge hero) : base(hero) { this.hero = hero; Entity.OnBoolPropertyChange += this.OnHookCast; this.hookUpdateHandler = UpdateManager.Subscribe(this.HookHitCheck, 0, false); }
public void ÑalculatePowerOfHero_Returned_int_39() { var hero = new Pudge(); hero.AddItem(new Aganim()); var expected = (Logic.ÑalculatePowerOfItems(hero.Items) + hero.Agility + hero.Strength + hero.Intelligence) / 3 + hero.Items.Count; Assert.AreEqual(expected, Logic.CalculatePowerOfHero(hero)); }
public void Throw() { IsReturning = false; var commonEngine = Pudge.World.GetEngine <ICommonEngine>(); var pudgeEngine = Pudge.World.GetEngine <IPudgeWorldEngine>(); StartingLocation = commonEngine.GetAbsoluteLocation(Pudge.ObjectId); Pudge.SpawnHook(StartingLocation, Id); commonEngine.SetAbsoluteSpeed(Id, Speed = CalculateSpeed(StartingLocation)); Pudge.World.Clocks.AddTrigger(new HookTrigger(this)); if (Pudge.IsBuffActivated(PudgeEvent.Invisible)) { Pudge.DeleteBuff(PudgeEvent.Invisible); pudgeEngine.SetTransparent(Pudge.ObjectId, false); } pudgeEngine.PlayAnimation(Pudge.ObjectId, Animation.HookStart); }
public PudgeOrbwalker(Pudge hero) : base(hero) { this.hero = hero; }
public PudgeCommand(Pudge pudge) { _pudge = pudge; }