From cba4e0cb956cabb3433b44f3750f9a7fc207a824 Mon Sep 17 00:00:00 2001 From: ymdqqqq Date: Sun, 17 Nov 2024 17:18:55 +0800 Subject: [PATCH] add 3 sim --- .../Sim_CORE_BT_292.cs" | 19 ++++++++++++++++--- .../Sim_CORE_TRL_307.cs" | 17 ++++++++++++++--- .../Sim_MAW_017.cs" | 15 +++++++++++++++ .../Sim_ETC_101.cs" | 1 - 4 files changed, 45 insertions(+), 7 deletions(-) diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_BT_292.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_BT_292.cs" index e8e03d90..5edb2af2 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_BT_292.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_BT_292.cs" @@ -11,7 +11,20 @@ namespace HREngine.Bots //使一个随从获得+2/+1。抽一张牌。 class Sim_CORE_BT_292 : SimTemplate { - - - } + public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) + { + p.minionGetBuffed(target, 2, 1); + p.drawACard(CardDB.cardIDEnum.SW_024, ownplay); + } + + + public override PlayReq[] GetPlayReqs() + { + return new PlayReq[] { + new PlayReq(CardDB.ErrorType2.REQ_TARGET_TO_PLAY), + new PlayReq(CardDB.ErrorType2.REQ_FRIENDLY_TARGET), + new PlayReq(CardDB.ErrorType2.REQ_MINION_TARGET), + }; + } + } } diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_TRL_307.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_TRL_307.cs" index fdec5f1c..7b67292e 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_TRL_307.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1637-\346\240\270\345\277\203/Sim_CORE_TRL_307.cs" @@ -11,7 +11,18 @@ namespace HREngine.Bots //恢复#4点生命值。抽一张牌。 class Sim_CORE_TRL_307 : SimTemplate { - - - } + public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) + { + int heal = (ownplay) ? p.getSpellHeal(4) : p.getEnemySpellHeal(4); + p.minionGetDamageOrHeal(target, -heal); + p.drawACard(CardDB.cardNameEN.unknown, ownplay); + } + + public override PlayReq[] GetPlayReqs() + { + return new PlayReq[] { + new PlayReq(CardDB.ErrorType2.REQ_TARGET_TO_PLAY), + }; + } + } } diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1691-\347\272\263\346\226\257\345\210\251\344\272\232\345\240\241\347\232\204\346\202\254\346\241\210/Sim_MAW_017.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1691-\347\272\263\346\226\257\345\210\251\344\272\232\345\240\241\347\232\204\346\202\254\346\241\210/Sim_MAW_017.cs" index 35be8fe3..21922e07 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1691-\347\272\263\346\226\257\345\210\251\344\272\232\345\240\241\347\232\204\346\202\254\346\241\210/Sim_MAW_017.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1691-\347\272\263\346\226\257\345\210\251\344\272\232\345\240\241\347\232\204\346\202\254\346\241\210/Sim_MAW_017.cs" @@ -11,7 +11,22 @@ namespace HREngine.Bots //战吼:如果你的牌库中没有中立卡牌,将一个随从的属性值变为1/1。 class Sim_MAW_017 : SimTemplate { + public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice) + { + //TODO:If there is no neutral cards in deck + if (target != null) { + p.minionSetAngrToX(target, 1); + p.minionSetLifetoX(target, 1); + } + } + public override PlayReq[] GetPlayReqs() + { + return new PlayReq[] { + new PlayReq(CardDB.ErrorType2.REQ_MINION_TARGET), + new PlayReq(CardDB.ErrorType2.REQ_TARGET_IF_AVAILABLE), + }; + } } } diff --git "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_101.cs" "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_101.cs" index aa3db839..a2be31b2 100644 --- "a/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_101.cs" +++ "b/Routines/DefaultRoutine/Silverfish/cards/1809-\344\274\240\345\245\207\351\237\263\344\271\220\350\212\202/Sim_ETC_101.cs" @@ -24,7 +24,6 @@ namespace HREngine.Bots { return new PlayReq[] { new PlayReq(CardDB.ErrorType2.REQ_MINION_TARGET), - new PlayReq(CardDB.ErrorType2.REQ_ENEMY_TARGET), new PlayReq(CardDB.ErrorType2.REQ_TARGET_IF_AVAILABLE), }; } -- Gitee