本文整理汇总了C#中Obj_AI_Base.GetMobTeam方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.GetMobTeam方法的具体用法?C# Obj_AI_Base.GetMobTeam怎么用?C# Obj_AI_Base.GetMobTeam使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.GetMobTeam方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: JungleMinManaPercent
public static float JungleMinManaPercent(Obj_AI_Base mob)
{
// Enable / Disable Min Mana
if (!ModeConfig.MenuFarm.Item("Farm.MinMana.Enable").GetValue<KeyBind>().Active)
{
return 0f;
}
// Don't Control Min Mana if I have blue buff
if (MenuMinMana.Item("MinMana.DontCheckBlueBuff").GetValue<bool>() && ObjectManager.Player.HasBlueBuff())
{
return 0f;
}
// Don't check min mana If I'm taking enemy blue / red
var dontCheckMinMana = MenuMinMana.Item("MinMana.DontCheckEnemyBuff").GetValue<StringList>().SelectedIndex;
if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
{
return 0f;
}
if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
{
return 0f;
}
return MenuMinMana.Item("MinMana.Jungle").GetValue<Slider>().Value;
}
示例2: JungleMinManaPercent
public static float JungleMinManaPercent(Obj_AI_Base mob)
{
// Enable / Disable Min Mana
if (!ModeConfig.MenuFarm["Farm.MinMana.Enable"].Cast<KeyBind>().CurrentValue)
{
return 0f;
}
// Don't Control Min Mana if I have blue buff
if (MenuLocal["MinMana.DontCheckBlueBuff"].Cast<CheckBox>().CurrentValue && ObjectManager.Player.HasBlueBuff())
{
return 0f;
}
// Don't check min mana If I'm taking enemy blue / red
var dontCheckMinMana = MenuLocal["MinMana.DontCheckEnemyBuff"].Cast<ComboBox>().CurrentValue;
if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
return MenuLocal["MinMana.Jungle"].Cast<Slider>().CurrentValue;
}
示例3: JungleMinManaPercent
public static float JungleMinManaPercent(Obj_AI_Base mob)
{
// Enable / Disable Min Mana
if (!ModeConfig.MenuFarm["Farm.MinMana.Enable"].Cast<KeyBind>().CurrentValue)
{
return 0f;
}
// Don't Control Min Mana
if (MenuLocal["MinMana.Jungle.DontCheckBlueBuff"].Cast<CheckBox>().CurrentValue &&
ObjectManager.Player.HasBuffInst("CrestoftheAncientGolem"))
{
return 0f;
}
var dontCheckMinMana =
MenuLocal["MinMana.Jungle.DontCheckEnemyBuff"].Cast<ComboBox>().CurrentValue;
if ((dontCheckMinMana == 1 || dontCheckMinMana == 3) &&
mob.GetMobTeam(Q.Range) == (GameObjectTeam)ObjectManager.Player.Team &&
(mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
if ((dontCheckMinMana == 2 || dontCheckMinMana == 3) &&
mob.GetMobTeam(Q.Range) != (GameObjectTeam)ObjectManager.Player.Team &&
(mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
// Return Min Mana Baron / Dragon
if (GetMobType(mob) == MobTypes.Baron || GetMobType(mob) == MobTypes.Dragon)
{
return MenuLocal["MinMana.Jungle.BigBoys"].Cast<Slider>().CurrentValue;
}
// Return Min Mana Ally Big / Small
if (mob.GetMobTeam(Q.Range) == (GameObjectTeam)ObjectManager.Player.Team)
{
return GetMobType(mob) == MobTypes.Big
? MenuLocal["MinMana.Jungle.AllyBig"].Cast<Slider>().CurrentValue
: MenuLocal["MinMana.Jungle.AllySmall"].Cast<Slider>().CurrentValue;
}
// Return Min Mana Enemy Big / Small
if (mob.GetMobTeam(Q.Range) != (GameObjectTeam)ObjectManager.Player.Team)
{
return GetMobType(mob) == MobTypes.Big
? MenuLocal["MinMana.Jungle.EnemyBig"].Cast<Slider>().CurrentValue
: MenuLocal["MinMana.Jungle.EnemySmall"].Cast<Slider>().CurrentValue;
}
return 0f;
}
示例4: JungleMinManaPercent
public static float JungleMinManaPercent(Obj_AI_Base mob)
{
// Enable / Disable Min Mana
if (!MenuLocal.Item("MinMana.Enable").GetValue<KeyBind>().Active)
{
return 0f;
}
// Don't Control Min Mana
if (MenuLocal.Item("MinMana.Jungle.DontCheckBlueBuff").GetValue<bool>() &&
ObjectManager.Player.HasBuffInst("CrestoftheAncientGolem"))
{
return 0f;
}
var dontCheckMinMana =
MenuLocal.Item("MinMana.Jungle.DontCheckEnemyBuff").GetValue<StringList>().SelectedIndex;
if ((dontCheckMinMana == 1 || dontCheckMinMana == 3) &&
mob.GetMobTeam(Q.Range) == (GameObjectTeam) ObjectManager.Player.Team &&
(mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
{
return 0f;
}
if ((dontCheckMinMana == 2 || dontCheckMinMana == 3) &&
mob.GetMobTeam(Q.Range) != (GameObjectTeam) ObjectManager.Player.Team &&
(mob.SkinName == "SRU_Blue" || mob.SkinName == "SRU_Red"))
{
return 0f;
}
// Return Min Mana Baron / Dragon
if (GetMobType(mob) == MobTypes.Baron || GetMobType(mob) == MobTypes.Dragon)
{
return MenuLocal.Item("MinMana.Jungle.BigBoys").GetValue<Slider>().Value;
}
// Return Min Mana Ally Big / Small
if (mob.GetMobTeam(Q.Range) == (GameObjectTeam) ObjectManager.Player.Team)
{
return GetMobType(mob) == MobTypes.Big
? MenuLocal.Item("MinMana.Jungle.AllyBig").GetValue<Slider>().Value
: MenuLocal.Item("MinMana.Jungle.AllySmall").GetValue<Slider>().Value;
}
// Return Min Mana Enemy Big / Small
if (mob.GetMobTeam(Q.Range) != (GameObjectTeam) ObjectManager.Player.Team)
{
return GetMobType(mob) == MobTypes.Big
? MenuLocal.Item("MinMana.Jungle.EnemyBig").GetValue<Slider>().Value
: MenuLocal.Item("MinMana.Jungle.EnemySmall").GetValue<Slider>().Value;
}
return 0f;
}
示例5: JungleMinManaPercent
public static float JungleMinManaPercent(Obj_AI_Base mob)
{
// Enable / Disable Min Mana
if (!getKeyBindItem(ModeConfig.MenuFarm, "Farm.MinMana.Enable"))
{
return 0f;
}
// Don't Control Min Mana if I have blue buff
if (getCheckBoxItem(MenuLocal, "MinMana.DontCheckBlueBuff") && ObjectManager.Player.HasBlueBuff())
{
return 0f;
}
// Don't check min mana If I'm taking enemy blue / red
var dontCheckMinMana = getBoxItem(MenuLocal, "MinMana.DontCheckEnemyBuff");
if ((dontCheckMinMana == 1 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) == (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
if ((dontCheckMinMana == 2 || dontCheckMinMana == 3)
&& mob.GetMobTeam(Q.Range) != (CommonManaManager.GameObjectTeam)ObjectManager.Player.Team
&& (mob.BaseSkinName == "SRU_Blue" || mob.BaseSkinName == "SRU_Red"))
{
return 0f;
}
return getSliderItem(MenuLocal, "MinMana.Jungle");
}