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


C# Spell.totalDamagePerCast方法代码示例

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


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

示例1: calculateDPS


//.........这里部分代码省略.........
                                                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);

            Spell Conflagrate = new Spell(SpellName.Conflagrate, Destruction,
                                                directSpellSchool: Fire,
                                                DoTSpellSchool: Fire,
                                                duration: 6,
                                                cooldown: 10,
                                                manaCostOfBaseMana: 0.16,
                                                requiredBuffUptimeFactor: Immolate.uptimeFactor() / (glyphOfConflagrate ? 1 : 2),
                                                averageDirectBaseDamage: Immolate.totalDamagePerCast(_spellpower) * 0.6,
                                                averageDoTBaseDamage: Immolate.totalDamagePerCast(_spellpower) * 0.6 * 0.4,
                                                numOfTicks: 3); //CHECK
            Conflagrate.applyGCD(gcd);

            Spell IncinerateMoltenCoreBackdraft = new Spell(SpellName.IncinerateMoltenCoreBackdraft, Destruction,
                                                directSpellSchool: Fire,
                                                baseCasttime: 2.5,
                                                flatCasttimeReduction: 0.05 * emberstorm.pointsSpend,
                                                percentualCasttimeReduction: moltenCoreCastTimeFactor * backdraftFactor,
                                                hasteFactor: hasteFactor,
                                                manaCostOfBaseMana: 0.14,
                                                requiredBuffUptimeFactor: 0 /* molten core uptime * (3 / confla cd) ofso.. */,
                                                averageDirectBaseDamage: 629.5,
                                                SPDirectScaling: 0.7139);
            IncinerateMoltenCoreBackdraft.applyCastTimeFactor(castTimeLostFactorDestro);
            IncinerateMoltenCoreBackdraft.applyGCD(gcd * backdraftFactor);

            Spell IncinerateBackdraft = new Spell(SpellName.IncinerateBackdraft, Destruction,
                                                directSpellSchool: Fire,
                                                baseCasttime: 2.5,
                                                flatCasttimeReduction: 0.05 * emberstorm.pointsSpend,
                                                percentualCasttimeReduction: backdraftFactor,
                                                hasteFactor: hasteFactor,
                                                manaCostOfBaseMana: 0.14,
                                                requiredBuffUptimeFactor: 0 /* (3 / confla cd) ofso.. */,
                                                averageDirectBaseDamage: 629.5,
                                                SPDirectScaling: 0.7139);
            IncinerateBackdraft.applyGCD(gcd * backdraftFactor);

            Spell Shadowfury = new Spell(SpellName.Shadowfury, Destruction,
                                                directSpellSchool: Shadow,
                                                cooldown: 20,
开发者ID:Marosa,项目名称:Calc,代码行数:67,代码来源:Warlock.cs


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