当前位置: 首页>>代码示例>>C#>>正文


C# Spell.uptimeFactor方法代码示例

本文整理汇总了C#中Spell.uptimeFactor方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.uptimeFactor方法的具体用法?C# Spell.uptimeFactor怎么用?C# Spell.uptimeFactor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Spell的用法示例。


在下文中一共展示了Spell.uptimeFactor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: calculateDPS


//.........这里部分代码省略.........
                                                averageDoTBaseDamage: 0,
                                                SPDirectScaling: 0.4793,
                                                numOfTicks: 0);
            Haunt.applyCastTimeFactor(castTimeLostFactorAffli);
            Haunt.applyGCD(gcd);

            Spell IncinerateMoltenCore = new Spell(SpellName.IncinerateMoltenCore, Destruction,
                                                directSpellSchool: Fire,
                                                baseCasttime: 2.5,
                                                flatCasttimeReduction: 0.05 * emberstorm.pointsSpend,
                                                percentualCasttimeReduction: 10 * moltenCore.pointsSpend,
                                                hasteFactor: hasteFactor,
                                                manaCostOfBaseMana: 0.14,
                                                requiredBuffUptimeFactor: 0,
                                                averageDirectBaseDamage: 629.5,
                                                SPDirectScaling: 0.7139,
                                                directDamageFactor: 1 + (0.06 * moltenCore.pointsSpend));
            IncinerateMoltenCore.applyCastTimeFactor(castTimeLostFactorDestro);
            IncinerateMoltenCore.applyGCD(gcd);

            Spell DemonicEmpowerment = new Spell(SpellName.DemonicEmpowerment, Demonology);

            Spell Metamorphosis = new Spell(SpellName.Metamorphosis, Demonology,
                                                duration: metamorphosis.pointsSpend > 0 ? (glyphOfMetamorphosis ? 36 : 30) : 0,
                                                cooldown: 180 * (1 - (0.1 * nemesis.pointsSpend)));

            Spell ImmolationAura = new Spell(SpellName.ImmolationAura, Demonology,
                                                DoTSpellSchool: Fire,
                                                duration: 15,
                                                hasteAffectsDuration: true,
                                                hasteFactor: hasteFactor,
                                                cooldown: 30,
                                                manaCostOfBaseMana: 0.64,
                                                requiredBuffUptimeFactor: Metamorphosis.uptimeFactor(),
                                                averageDoTBaseDamage: 251,
                                                SPDoTScaling: 0, //CHECK
                                                numOfTicks: 15);
            ImmolationAura.applyGCD(gcd);

            Spell ShadowCleave = new Spell(SpellName.ShadowCleave, Demonology,
                                                directSpellSchool: Shadow,
                                                cooldown: 6,
                                                manaCostOfBaseMana: 0.04,
                                                requiredBuffUptimeFactor: Metamorphosis.uptimeFactor(),
                                                averageDirectBaseDamage: 110,
                                                SPDirectScaling: 0); //CHECK seems to be 1, but prolly not exactly 1

            Spell Shadowburn = new Spell(SpellName.Shadowburn, Destruction,
                                                cooldown: 10, //CHECK!
                                                manaCostOfBaseMana: 0.2,
                                                requiredBuffUptimeFactor: 1,
                                                reagent: Reagent.Soulshard,
                                                averageDirectBaseDamage: 820.5,
                                                SPDirectScaling: 0.4293);
            Shadowburn.applyGCD(gcd);

            Spell ShadowburnGlyphed = new Spell(SpellName.ShadowburnGlyphed,Destruction,
                                                cooldown: 10, //CHECK!
                                                manaCostOfBaseMana: 0.2,
                                                requiredBuffUptimeFactor: 0,
                                                reagent: Reagent.Soulshard,
                                                averageDirectBaseDamage: 820.5,
                                                SPDirectScaling: 0.4293,
                                                directCritChance: 20);
            ShadowburnGlyphed.applyGCD(gcd);
开发者ID:Marosa,项目名称:Calc,代码行数:66,代码来源:Warlock.cs


注:本文中的Spell.uptimeFactor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。