protected override void OnLoaded() { base.OnLoaded(); if (StorageSize == 0) { StorageSize = Globals.StorageSize; } Buffs.First(x => x.Type == BuffType.HuntGold).Stats = new Stats { [Stat.AvailableHuntGoldCap] = 15 }; }
protected override void OnLoaded() { base.OnLoaded(); if (StorageSize == 0) { StorageSize = Globals.StorageSize; } Buffs.First(x => x.Type == BuffType.HuntGold).Stats = new Stats { [Stat.AvailableHuntGoldCap] = 5 }; Buffs.First(x => x.Type == BuffType.HuntGold).TickFrequency = TimeSpan.FromMinutes(20); }
public override bool IsCritical(DamageTypes type, AbilityTypes ability) { var chance = CriticalChance; if (type == DamageTypes.Fire) { chance += this.SkillValue(SkillType.Devastation, false) / 100; } if (ability == AbilityTypes.Iceball) { chance += this.AbilityValue(AbilityUpgradeType.IceballCrit) / 100; } if ((ability == AbilityTypes.Iceball || ability == AbilityTypes.Fireball || ability == AbilityTypes.Wand) && Buffs.Any(b => b is RageBuff)) { var buff = Buffs.First(b => b is RageBuff); Buffs.Remove(buff); chance += buff.CritChanceFactor; } return(Globals.Random.NextDouble() < chance); }