コード例 #1
0
        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
            };
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Zerd.cs プロジェクト: zwand19/zerds
        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);
        }