private static void _SearchGunAndBuffs() { List <PackAsset> cards = new List <PackAsset>(_bot.Hand.FindAll(card => card.CardType == ECardType.Weapon)); cards.AddRange(_bot.Hand.FindAll(card => card.CardType == ECardType.Buff)); if (cards.Count == 0) { return; } foreach (PackAsset card in cards) { if (card.CardType == ECardType.Weapon && Actions.GetScope(card) > Actions.GetScope(_bot.Weapon)) { _bot.Weapon = card; _bot.UsingCard(card); } else if (card.CardName == ECardName.Appaloosa || card.CardName == ECardName.Mustang || card.CardName == ECardName.Rage || card.CardName == ECardName.Barrel) { if (!_bot.Buffs.Find(buff => buff.CardName == card.CardName)) { _bot.AddBuff(card); _bot.UsingCard(card); } } } }
private static void _Jail(Player init, Bot defendant, PackAsset currentCard) { init.Hand.Remove(currentCard); init.UsedCard.Add(currentCard); defendant.InJail = true; defendant.AddBuff(currentCard); GlobalVeriables.Instance.CardZone.ClearCardSpawn(); Actions.ShowPlayerCards(); }