帕奇斯、空降歹徒机制的实现

首先是帕奇斯

CFM_637
海盗帕奇斯(Patches the Pirate)
Patches the Pirate
海盗帕奇斯
After you play a Pirate, summon this minion from your deck.
在你使用一张海盗牌后,从你的牌库中召唤该随从。
Cost:1
Attack:1
Health:1
Set:GANGS
Class:NEUTRAL

silvefish_HB.cs:

模仿noDuplicates添加定义

if (CardDB.Instance.getCardDataFromID(item.Key).cardIDenum == CardDB.cardIDEnum.CFM_637) patchesInDeck = true;

Hrtprozis.cs:

同样模仿noDuplicates添加定义

 空降歹徒:

DRG_056
空降歹徒(Parachute Brigand)
Parachute Brigand
空降歹徒
After you play a Pirate, summon this minion from your hand.
在你使用一张海盗牌后,从你的手牌中召唤该随从。
Cost:2
Attack:2
Health:2
Set:DRAGONS
Class:NEUTRAL

搜索public void placeAmobSomewhere(Handmanager.Handcard hc, int choice, int zonepos)

在            m.playedFromHand = true;下添加

            CardDB.Card patches = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.CFM_637);
            CardDB.Card parachuteBrigand = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.DRG_056);
            if (hc.card.race == SF_TAG_RACE.PIRATE)
            {
                List<Handmanager.Handcard> tmp = this.owncards;
                for (int i = 0; i < this.owncards.Count; i++)
                {
                    Handmanager.Handcard handcard = tmp[i];
                    if (handcard.card.cardIDenum == CardDB.cardIDEnum.DRG_056 && this.ownMinions.Count < 7)
                    {
                        this.callKid(parachuteBrigand, zonepos, true);
                        this.removeCard(handcard);
                    }
                }
                if (this.prozis.patchesInDeck && this.ownMinions.Count < 7)
                {
                    this.callKid(patches, zonepos, true);
                    this.prozis.patchesInDeck = false;
                    foreach (var dc in this.prozis.turnDeck)
                    {
                        if (dc.Key == CardDB.cardIDEnum.CFM_637) this.prozis.turnDeck.Remove(dc.Key);
                        this.ownDeckSize--;
                        break;
                    }
                }
            }

 

posted @ 2020-07-21 10:59  魔王的骑士  阅读(521)  评论(2编辑  收藏  举报