diff --git "a/smartbot/MulliganProfiles/30\345\245\245\347\247\230\346\263\225" "b/smartbot/MulliganProfiles/30\345\245\245\347\247\230\346\263\225" new file mode 100644 index 0000000000000000000000000000000000000000..25c6008335ddfb1e1706bd1f0cf0f0904992ca89 --- /dev/null +++ "b/smartbot/MulliganProfiles/30\345\245\245\347\247\230\346\263\225" @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SmartBot.Database; +using SmartBot.Plugins.API; +//### Mage +//# 职业:法师 +//# 模式:狂野模式 +//# +//# 2x (1) 暗金教侍从 +//# 2x (2) 麦迪文的男仆 +//# 2x (2) 远古谜团 +//# 2x (2) 秘法学家 +//# 2x (2) 疯狂的科学家 +//# 2x (2) 匿名线人 +//# 2x (3) 非公平游戏 +//# 1x (3) 肯瑞托法师 +//# 2x (3) 爆炸符文 +//# 2x (3) 法术反制 +//# 2x (3) 异议 +//# 2x (4) 健谈的调酒师 +//# 2x (5) 云雾王子 +//# 2x (6) 暗金教水晶侍女 +//# 1x (6) 暗月先知塞格 +//# 2x (6) 契约咒术师 +//# +//AAEBAf0EAuwFleEDDvcN17YC67oCh70C3akD9KsDkeED558ExqAEo+QE/uwEvO0E/5IF26EFAA== +//# 想要使用这副套牌,请先复制到剪贴板,再在游戏中创建新套牌。 +//# 套牌详情请查看https://hsreplay.net/decks/rLyqKOPvOWn65WdD6cN0zd/ + + +namespace SmartBot.Mulligan +{ + [Serializable] + public class DefaultMulliganProfile : MulliganProfile + { + List CardsToKeep = new List(); + + private readonly List WorthySpells = new List + { + + }; + + public List HandleMulligan(List choices, Card.CClass opponentClass, + Card.CClass ownClass) + { + //德:DRUID 猎:HUNTER 法:MAGE 骑:PALADIN 牧:PRIEST 贼:ROGUE 萨:SHAMAN 术:WARLOCK 战:WARRIOR 瞎:DEMONHUNTER + bool HasCoin = choices.Count >= 4; + int DRUID = 0; + int HUNTER = 0; + int MAGE = 0; + int PALADIN = 0; + int PRIEST = 0; + int ROGUE = 0; + int SHAMAN = 0; + int WARLOCK = 0; + int WARRIOR = 0; + int DEMONHUNTER = 0; + int kuaigong = 0; + int mansu = 0; + int flag1 = 0;//暗金教侍从 Kabal Lackey ID:CFM_066 + int flag2 = 0;//匿名线人 Anonymous Informant ID:REV_841 + + foreach (Card.Cards card in choices) + { + if (card == Card.Cards.CFM_066) { flag1 += 1; } + if (card == Card.Cards.REV_841) { flag2 += 1; } + } + Bot.Log("对阵职业" + opponentClass); + + if (opponentClass == Card.CClass.PALADIN) + { + PALADIN += 1; + kuaigong += 1; + } + if (opponentClass == Card.CClass.DRUID) + { + DRUID += 1; + mansu += 1; + } + if (opponentClass == Card.CClass.HUNTER) + { + HUNTER += 1; + } + if (opponentClass == Card.CClass.MAGE) + { + MAGE += 1; + mansu += 1; + } + if (opponentClass == Card.CClass.PRIEST) + { + PRIEST += 1; + } + if (opponentClass == Card.CClass.ROGUE) + { + ROGUE += 1; + kuaigong += 1; + } + if (opponentClass == Card.CClass.SHAMAN) + { + SHAMAN += 1; + mansu += 1; + kuaigong += 1; + } + if (opponentClass == Card.CClass.WARLOCK) + { + WARLOCK += 1; + } + if (opponentClass == Card.CClass.WARRIOR) + { + WARRIOR += 1; + kuaigong += 1; + } + if (opponentClass == Card.CClass.DEMONHUNTER) + { + DEMONHUNTER += 1; + } + foreach (Card.Cards card in choices) + { + if (card == Card.Cards.FP1_004// 疯狂的科学家 Mad Scientist ID:FP1_004 + ) + { + if (!CardsToKeep.Contains(Card.Cards.FP1_004)) + { + Keep(card, "疯狂的科学家"); + } + } + if (card == Card.Cards.CFM_066// 暗金教侍从 Kabal Lackey ID:CFM_066 + ) + { + if (!CardsToKeep.Contains(Card.Cards.CFM_066)) + { + Keep(card, "暗金教侍从"); + } + } + if (card == Card.Cards.REV_841// 匿名线人 Anonymous Informant ID:REV_841 + ) + { + if (!CardsToKeep.Contains(Card.Cards.REV_841)) + { + Keep(card, "匿名线人"); + } + } + if (card == Card.Cards.DMF_107 && flag1 > 0 || flag2 > 0// 非公平游戏 Rigged Faire Game ID:DMF_107 + ) + { + if (!CardsToKeep.Contains(Card.Cards.DMF_107)) + { + Keep(card, "非公平游戏"); + } + } + if (card == Card.Cards.UNG_020 // 秘法学家 Arcanologist ID:UNG_020 + ) + { + if (!CardsToKeep.Contains(Card.Cards.UNG_020)) + { + Keep(card, "秘法学家"); + } + } + if (card == Card.Cards.ULD_726// 远古谜团 Ancient Mysteries ID:ULD_726 + ) + { + if (!CardsToKeep.Contains(Card.Cards.ULD_726)) + { + Keep(card, "远古谜团"); + } + } + if (card == Card.Cards.LOOT_108// 艾露尼斯 Aluneth ID:LOOT_108 + ) + { + if (!CardsToKeep.Contains(Card.Cards.LOOT_108)) + { + Keep(card, "艾露尼斯"); + } + } + + } + return CardsToKeep; + } + + private void Keep(Card.Cards id, string log = "") + { + CardsToKeep.Add(id); + if (log != "") + Bot.Log(log); + } + + } +} \ No newline at end of file