本文整理汇总了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方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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, int customStacks = -1)
{
// Get buff
var buff = target?.GetRendBuff();
if (buff == null && customStacks <= -1) return 0;
if (buff != null)
return RawRendDamage[SpellManager.Spell[SpellSlot.E].Level - 1]
+ RawRendDamageMultiplier[SpellManager.Spell[SpellSlot.E].Level - 1]
* Player.TotalAttackDamage + // Base damage
((customStacks < 0 ? buff.Count : customStacks) - 1) * // Spear count
(RawRendDamagePerSpear[SpellManager.Spell[SpellSlot.E].Level - 1]
+ RawRendDamagePerSpearMultiplier[SpellManager.Spell[SpellSlot.E].Level - 1]
* Player.TotalAttackDamage); // Damage per spear
return 0;
}
示例2: 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, int customStacks = -1)
{
// Get buff
var buff = target?.GetRendBuff();
if (buff == null && customStacks <= -1) return 0;
if (buff != null)
return RawRendDamage[ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level-1]
+ RawRendDamageMultiplier[ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level-1]
* Player.FlatPhysicalDamageMod + // Base damage
((customStacks < 0 ? buff.Count : customStacks) - 1) * // Spear count
(RawRendDamagePerSpear[ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level-1]
+ RawRendDamagePerSpearMultiplier[ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level-1]
* Player.FlatPhysicalDamageMod); // Damage per spear
return 0;
}