private void Start() { Minioninfo = GetComponent <MinionInfo>(); attackTrigger.CreateTrigger(Minioninfo.AgroRange); attackTrigger.TriggerEnter += AttackTriggerEnter; attackTrigger.TriggerExit += AttackTriggerExit; targets = new List <Transform>(); movement = GetComponent <MinionMovement>(); }
private void SoulDefense(Info entity) { temp = entity as MinionInfo; if (temp) { if (!temp.SoulDefense) { temp.SoulDefense = true; applied.Add(temp); (Instantiate(Icon, temp.transform.position, temp.transform.rotation) as GameObject).transform.parent = temp.transform; } } }
private void ResetUpgrades() { mInfo = blueCasterMinion.GetComponent <MinionInfo>(); mInfo.MAXHP = 290.0f; mInfo.AttackSpeed = 0.7f; mInfo.Range = 50.0f; mInfo.Damage = 30.0f; mInfo = blueTankMinion.GetComponent <MinionInfo>(); mInfo.MAXHP = 515.0f; mInfo.AttackSpeed = 0.8f; mInfo.Damage = 60.0f; mInfo = blueStrikerMinion.GetComponent <MinionInfo>(); mInfo.MAXHP = 380.0f; mInfo.AttackSpeed = 0.8f; mInfo.Damage = 50.0f; }
public void UpgradeTankMinions(Team team) { if (Team.BLUE_TEAM == team) { MinionInfo info = blueTankMinion.GetComponent <MinionInfo>(); info.Damage += ShopManager.Instance.tankDamageUpgrade; info.MAXHP += ShopManager.Instance.tankHpUpgrade; info.AttackSpeed += ShopManager.Instance.tankAttackspeedUpgrade; } else { MinionInfo info = redTankMinion.GetComponent <MinionInfo>(); info.Damage += ShopManager.Instance.tankDamageUpgrade; info.MAXHP += ShopManager.Instance.tankHpUpgrade; info.AttackSpeed += ShopManager.Instance.tankAttackspeedUpgrade; } }
public void UpgradeCasterMinions(Team team) { if (Team.BLUE_TEAM == team) { MinionInfo info = blueCasterMinion.GetComponent <MinionInfo>(); info.Damage += ShopManager.Instance.casterDamageUpgrade; info.MAXHP += ShopManager.Instance.casterHpUpgrade; info.AttackSpeed += ShopManager.Instance.casterAttackspeedUpgrade; info.Range += ShopManager.Instance.casterRangeUpgrade; } else { MinionInfo info = redCasterMinion.GetComponent <MinionInfo>(); info.Damage += ShopManager.Instance.casterDamageUpgrade; info.MAXHP += ShopManager.Instance.casterHpUpgrade; info.AttackSpeed += ShopManager.Instance.casterAttackspeedUpgrade; info.Range += ShopManager.Instance.casterRangeUpgrade; } }
private void Start2() { agent = GetComponent <UnityEngine.AI.NavMeshAgent>(); m_state = m_prevState = Move_State.LANING_STATE; info = GetComponent <MinionInfo>(); interactive = GetComponent <Interactive>(); if (Team.RED_TEAM == info.team) { goal = GameManager.BluePortalTransform; if (agent.enabled) { agent.destination = goal.position; } } else { goal = GameManager.RedPortalTransform; } }
public static string BoatCommandCallback(object s, OnChatCommandReceivedArgs e, CommandCallbackArgs args) { var command = e.Command; var answer = ""; var channel = command.ChatMessage.Channel; var username = command.ChatMessage.Username; var assessmentOptions = new List <string> { "слабовато чел...", "а ты скилловый Jebaited" }; var pirates = new List <MinionInfo>(); string assessment; MinionInfo specialPirate = null; var allPirates = BotService.HearthstoneApiClient .GetBattlegroundsMinions(MinionType.Pirate, notImplemented: true).ToList(); if (command.ArgumentsAsList.Count != 0 && command.ArgumentsAsList[0] == "триплет" && e.Command.ChatMessage.IsMeOrBroadcaster()) { specialPirate = command.ArgumentsAsList[1] switch { "элизы" => allPirates.Single(n => n.Id == 61047), "амальгадона" => allPirates.Single(n => n.Id == 61444), _ => allPirates[Program.Rand.Next(0, allPirates.Count)] } } ; for (var i = 0; i < 3; i++) { var pirate = specialPirate ?? allPirates[Program.Rand.Next(0, allPirates.Count)]; pirates.Add(pirate); answer += $"{pirate}, "; } answer = answer.TrimEnd(' ', ','); if (pirates.All(n => pirates[0].Id == n.Id)) { switch (pirates[0].Id) { // Check for Elisa case 61047: assessment = "ТРИ ЭЛИЗЫ ЭТ КОНЕЧНО ПРИКОЛ, ДО ВСТРЕЧИ ЧЕРЕЗ ПОЛЧАСА LUL"; UtilityFunctions.TimeoutCommandUser(e.Command, args, TimeSpan.FromMinutes(30), "Выпало 3 Элизы с команды !лодка"); break; // Check for Amalgadon case 61444: assessment = "777, ЛОВИ ВИПКУ"; if (!command.ChatMessage.IsModerator) { args.ChannelBot.ChannelTwitchClient.SendMessage(channel, $"/vip {username}"); } break; // Just triple default: assessment = "найс триплет с лодки, жаль все равно отъедешь BloodTrail"; break; } } else { const int maxMark = 57; // Elisa x3 // Assess pirates var mark = pirates.Sum(pirate => pirate.Attack + pirate.Health + pirate.Battlegrounds.Tier); var quotient = (double)mark / maxMark; assessment = assessmentOptions[quotient > 0.6 ? 1 : 0]; } return($"YEP {answer} YEP , {assessment}"); }
private void Start() { Circle = transform.Find("Selection Circle").gameObject; info = GetComponent <MinionInfo>(); }