帕奇斯、空降歹徒機制的實現


首先是帕奇斯

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;
                    }
                }
            }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM