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


    首先是帕奇斯

    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;
                        }
                    }
                }
  • 相关阅读:
    html页面原生video标签隐藏下载按钮
    css解决多行溢出显示省略号
    移动端轮播图vue-awesome-swiper
    日常踩坑 — 相邻元素之间的margin合并问题。
    (a ==1 && a== 2 && a==3) 有可能是 true 吗?
    如何生成SSH key及查看SSH key
    端口号被占用报错解决方法。
    基于vue开发的element-ui树形控件报错问题解决
    Win10 桌面 通知中心 无法打开
    SolidWorks 杂
  • 原文地址:https://www.cnblogs.com/dch0319/p/13353886.html
Copyright © 2020-2023  润新知