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


C# Obj_AI_Base.GetRendBuff方法代码示例

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


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

示例1: GetRawRendDamage

 public static float GetRawRendDamage(Obj_AI_Base target)
 {
     var stacks = (target.HasRendBuff() ?  target.GetRendBuff().Count : 0) - 1;
     if (stacks > -1)
     {
         var index = Spells.E.Level - 1;
         return (RawRendDamage[index] + Player.Instance.TotalAttackDamage * (RawRendDamageMultiplier[index]) * (1+stacks * RawRendDamagePerSpearMultiplier[index]));
     }
     return 0;
 }
开发者ID:ReSrReCTion,项目名称:elobuddy,代码行数:10,代码来源:Damages.cs

示例2: GetRawRendDamage

        public static float GetRawRendDamage(Obj_AI_Base target, int customStacks = -1)
        {
            var stacks = (customStacks > -1 ? customStacks : target.HasRendBuff() ? target.GetRendBuff().Count : 0) - 1;
            if (stacks > -1)
            {
                var index = SpellManager.E.Level - 1;
                return RawRendDamage[index] + stacks * RawRendDamagePerSpear[index] +
                       Player.Instance.TotalAttackDamage * (RawRendDamageMultiplier[index] + stacks * RawRendDamagePerSpearMultiplier[index]);
            }

            return 0;
        }
开发者ID:mezer123,项目名称:EloBuddy,代码行数:12,代码来源:Damages.cs

示例3: GetRawRendDamage

        /// <summary>
        ///     TODO The get raw rend damage.
        /// </summary>
        /// <param name="target">
        ///     TODO The target.
        /// </param>
        /// <param name="customStacks">
        ///     TODO The custom stacks.
        /// </param>
        /// <returns>
        ///     The <see cref="float" />.
        /// </returns>
        public static float GetRawRendDamage(Obj_AI_Base target)
        {
            var stacks = (target.HasRendBuff() ? target.GetRendBuff().Count : 0) - 1;
            if (stacks > -1)
            {
                var index = SpellManager.Spell[SpellSlot.E].Level - 1;
                return RawRendDamage[index] + stacks * RawRendDamagePerSpear[index] +
                       EloBuddy.Player.Instance.TotalAttackDamage * (RawRendDamageMultiplier[index] + stacks * RawRendDamagePerSpearMultiplier[index]);
            }

            return 0;
        }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:24,代码来源:Damages.cs

示例4: GetRawRendDamage

        public static float GetRawRendDamage(Obj_AI_Base target, int customStacks = -1)
        {
            // Get buff
            var buff = target.GetRendBuff();

            if (buff != null || customStacks > -1)
            {
                return (rawRendDamage[SpellManager.E.Level - 1] + rawRendDamageMultiplier[SpellManager.E.Level - 1] * player.TotalAttackDamage()) + // Base damage
                       ((customStacks < 0 ? buff.Count : customStacks) - 1) * // Spear count
                       (rawRendDamagePerSpear[SpellManager.E.Level - 1] + rawRendDamagePerSpearMultiplier[SpellManager.E.Level - 1] * player.TotalAttackDamage()); // Damage per spear
            }

            return 0;
        }
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:14,代码来源:Damages.cs

示例5: GetRawRendDamage

        public static float GetRawRendDamage(Obj_AI_Base target, int customStacks = -1, BuffInstance rendBuff = null)
        {
            rendBuff = rendBuff ?? target.GetRendBuff();
            var stacks = (customStacks > -1 ? customStacks : rendBuff != null ? rendBuff.Count : 0) - 1;
            if (stacks > -1)
            {
                var index = Player.Instance.Spellbook.GetSpell(SpellSlot.E).Level - 1;
                return RawRendDamage[index] + stacks * RawRendDamagePerSpear[index] + Player.Instance.TotalAttackDamage * (RawRendDamageMultiplier[index] + stacks * RawRendDamagePerSpearMultiplier[index]);
            }

            return 0;
        }
开发者ID:Xelamats,项目名称:PortAIO,代码行数:12,代码来源:Rend.cs


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