本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}