zoukankan      html  css  js  c++  java
  • 帕奇斯、空降歹徒机制的实现

    首先是帕奇斯

    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;
                        }
                    }
                }
  • 相关阅读:
    iOS使用自签名证书实现HTTPS请求
    DB操作-用批处理执行Sql语句
    SSL通信-忽略证书认证错误
    oracle 19c awr 丢失 i/o信息
    this.$route.query刷新后类型改变
    wx.navigateTo在app.js中偶发性失效
    微信小程序new Date()转换日期格式时iphonex为NaN
    下载cnpm成功,cnpm -v却不识别
    element-ui的表单验证如何清除校验提示语
    5. 最长回文子串(动态规划算法)
  • 原文地址:https://www.cnblogs.com/dch0319/p/13353886.html
Copyright © 2011-2022 走看看