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


C# Obj_AI_Base.CalculateDamageOnUnit方法代码示例

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


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

示例1: GetCalculatedDamage

        private static float GetCalculatedDamage(Obj_AI_Base target, DamageType type, float rawdamage)
        {
            var damage = 0f;
            damage += target.CalculateDamageOnUnit(target, type, rawdamage);

            return damage;
        }
开发者ID:HeheheM,项目名称:EloBuddy-2,代码行数:7,代码来源:DamageLib.cs

示例2: LuxPassiveDamage

 /// <summary>
 /// Gets Lux Passive Damage
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>The damage that the passive will do.</returns>
 private static float LuxPassiveDamage(Obj_AI_Base target)
 {
     if (target.HasBuff("luxilluminatingfraulein"))
     {
         return target.CalculateDamageOnUnit(target, DamageType.Magical, (float)(10 + (8 * Player.Instance.Level) * (Player.Instance.FlatMagicDamageMod * 0.2)));
     }
     return 0;
 }
开发者ID:kunoz,项目名称:EloBuddy,代码行数:13,代码来源:Program.cs

示例3: EDamage

 /// <summary>
 /// Calculates the Damage done with E
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>Returns the Damage done with E</returns>
 private static float EDamage(Obj_AI_Base target)
 {
     return target.CalculateDamageOnUnit(target, DamageType.Magical,
         new[] {0, 55, 95, 135, 175, 215}[Program.E.Level] + (Player.Instance.TotalMagicalDamage*0.6f));
 }
开发者ID:KarmaPanda,项目名称:EloBuddy,代码行数:10,代码来源:Extensions.cs

示例4: RDamage

 /// <summary>
 /// Calculates the Damage Done with R
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>Returns the Damage done with R</returns>
 private static float RDamage(Obj_AI_Base target)
 {
     return target.CalculateDamageOnUnit(target, DamageType.Magical,
         (float) (new[] {0, 50, 81.25, 112.5}[Program.R.Level] + (Player.Instance.TotalMagicalDamage*0.125f)));
 }
开发者ID:kunoz,项目名称:EloBuddy,代码行数:10,代码来源:DamageLibrary.cs

示例5: EDamage

 /// <summary>
 /// Calculates the Damage done with E
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>Returns the Damage done with E</returns>
 private static float EDamage(Obj_AI_Base target)
 {
     return target.CalculateDamageOnUnit(target, DamageType.Magical,
         new[] {0, 10, 20, 30, 40, 50}[Program.E.Level] + (Player.Instance.TotalMagicalDamage*0.3f));
 }
开发者ID:kunoz,项目名称:EloBuddy,代码行数:10,代码来源:DamageLibrary.cs

示例6: QDamage

 /// <summary>
 /// Calculates the Damage done with Q
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>Returns the Damage done with Q</returns>
 private static float QDamage(Obj_AI_Base target)
 {
     return target.CalculateDamageOnUnit(target, DamageType.Magical,
         new[] {0, 80, 125, 170, 215, 260}[Program.Q.Level] + (Player.Instance.TotalMagicalDamage*0.8f));
 }
开发者ID:kunoz,项目名称:EloBuddy,代码行数:10,代码来源:DamageLibrary.cs

示例7: GetQDamage

 public static float GetQDamage(Obj_AI_Base target)
 {
     var damage = 45f;
     float calcdamage;
     var AP = Program._Player.FlatMagicDamageMod;
     foreach (var soldier in Orbwalker.ValidAzirSoldiers)
     {
         if (Orbwalker.ValidAzirSoldiers.Count == 2)
         {
             damage += ((Program._Q.Level * 20) + ((50f / 100f) * AP) * 2);
         }
         if (Orbwalker.ValidAzirSoldiers.Count == 1)
         {
             damage += ((Program._Q.Level * 20) + ((50f / 100f) * AP));
         }
         if (Orbwalker.ValidAzirSoldiers.Count == 0)
         {
             damage = 0;
         }
     }
     calcdamage = target.CalculateDamageOnUnit(target, DamageType.Magical, damage);
     return calcdamage;
 }
开发者ID:HeheheM,项目名称:EloBuddy-2,代码行数:23,代码来源:Damage.cs

示例8: GetSoldierDamage

        public static float GetSoldierDamage(Obj_AI_Base target)
        {
            var damage = 45f;
            float calcdamage;
            var AP = Program._Player.FlatMagicDamageMod;
            foreach (var soldier in Orbwalker.ValidAzirSoldiers)
            {
                if (soldier.IsValid && soldier != null)
                {
                    if (Orbwalker.ValidAzirSoldiers.Count == 2)
                    {
                        damage += (((Program._Player.Level * 5) + ((60f / 100f) * AP)) * 2);
                    }
                    if (Orbwalker.ValidAzirSoldiers.Count == 1)
                    {
                        damage += (((Program._Player.Level * 5) + ((60f / 100f) * AP)));
                    }
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) ||
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                damage = (Program.Menu["mDamageBuffer"].Cast<Slider>().CurrentValue/100f)*damage;
            }

            calcdamage = target.CalculateDamageOnUnit(target, DamageType.Magical, damage);
            return calcdamage;
        }
开发者ID:HeheheM,项目名称:EloBuddy-2,代码行数:29,代码来源:Damage.cs

示例9: GetIgniteDamage

        public static float GetIgniteDamage(Obj_AI_Base target)
        {
            var damage = 20f;
            float calcdamage;

            damage += (Program._Player.Level*20);

            calcdamage = target.CalculateDamageOnUnit(target, DamageType.True, damage);

            if (Program._Ignite == null || !Program._Ignite.IsReady())
                calcdamage = 0;

            return calcdamage;
        }
开发者ID:HeheheM,项目名称:EloBuddy-2,代码行数:14,代码来源:Damage.cs

示例10: GetKSQDamage

        public static float GetKSQDamage(Obj_AI_Base target)
        {
            var damage = 45f;
            float calcdamage;
            var AP = Program._Player.FlatMagicDamageMod;

            damage += ((Program._Q.Level*20) + ((50f/100f)*AP));

            calcdamage = target.CalculateDamageOnUnit(target, DamageType.Magical, damage);
            return calcdamage;
        }
开发者ID:HeheheM,项目名称:EloBuddy-2,代码行数:11,代码来源:Damage.cs

示例11: GetDamage

        /// <summary>
        /// Gets Q + AA Damage Totally Done to Target
        /// </summary>
        /// <param name="target">The Target</param>
        /// <returns>Damage Totally Done to Target</returns>
        public static double GetDamage(Obj_AI_Base target)
        {
            double dmgItem = 0;

            if (Item.HasItem(3057) && (Item.CanUseItem(3057) || Player.HasBuff("sheen"))
                && PlayerInstance.BaseAttackDamage > dmgItem)
            {
                dmgItem = PlayerInstance.GetAutoAttackDamage(target);
            }

            if (Item.HasItem(3025) && (Item.CanUseItem(3025) || Player.HasBuff("itemfrozenfist"))
                && PlayerInstance.BaseAttackDamage * 1.25 > dmgItem)
            {
                dmgItem = PlayerInstance.GetAutoAttackDamage(target) * 1.25;
            }

            return target.CalculateDamageOnUnit(target, DamageType.Mixed, new float[] { 0, 30, 50, 70, 90, 110 }[Q.Level] + PlayerInstance.FlatPhysicalDamageMod + PlayerInstance.GetBuffCount("NasusQStacks")) + PlayerInstance.GetAutoAttackDamage(target) + dmgItem;
        }
开发者ID:kunoz,项目名称:EloBuddy,代码行数:23,代码来源:Program.cs

示例12: WDamage

 /// <summary>
 /// Calculates the Damage done with W
 /// </summary>
 /// <param name="target">The Target</param>
 /// <returns>Returns the Damage done with W</returns>
 private static float WDamage(Obj_AI_Base target)
 {
     return target.CalculateDamageOnUnit(target, DamageType.Magical,
         new[] { 0, 120, 170, 220, 270, 320 }[Program.Q.Level] + (Player.Instance.TotalMagicalDamage * 1.0f));
 }
开发者ID:TroopSoft,项目名称:EloBuddy,代码行数:10,代码来源:damage.cs


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