当前位置: 首页>>代码示例>>C#>>正文


C# Playfield.lowerWeaponDurability方法代码示例

本文整理汇总了C#中HREngine.Bots.Playfield.lowerWeaponDurability方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.lowerWeaponDurability方法的具体用法?C# Playfield.lowerWeaponDurability怎么用?C# Playfield.lowerWeaponDurability使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HREngine.Bots.Playfield的用法示例。


在下文中一共展示了Playfield.lowerWeaponDurability方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onCardPlay

 public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
 {
     int damage = (ownplay) ? p.getSpellDamageDamage(p.ownWeaponAttack) : p.getEnemySpellDamageDamage(p.enemyWeaponAttack);
     
     p.allCharsOfASideGetDamage(!ownplay, damage);
     //destroy own weapon
     p.lowerWeaponDurability(1000, true);
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_CS2_233.cs

示例2: onMinionIsSummoned

 public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
 {
     if (triggerEffectMinion.own == summonedMinion.own )
     {
         p.minionGetBuffed(summonedMinion, 1, 1);
         p.lowerWeaponDurability(1, triggerEffectMinion.own);
     }
 }
开发者ID:JayMansel,项目名称:silverfish,代码行数:8,代码来源:Sim_EX1_366.cs

示例3: onCardPlay

        //   Destroy a random enemy minion. Combo: And your opponent's weapon.


        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            if(p.isServer)
            {
                Minion choosen = p.getRandomMinionFromSide_SERVER(!ownplay, false);
                if (choosen != null) p.minionGetDestroyed(choosen);
                if (p.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
                return;
            }

            List<Minion> temp = (ownplay)? p.enemyMinions : p.ownMinions;
            if (temp.Count >= 1)
            {
                p.minionGetDestroyed(p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP));
                
            }
            if (p.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
        }
开发者ID:peppert,项目名称:silverfish,代码行数:21,代码来源:Sim_GvG_047.cs

示例4: onCardPlay

        //   Destroy a random enemy minion. Combo: And your opponent's weapon.


        public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
        {
            List<Minion> temp = (ownplay)? p.enemyMinions : p.ownMinions;
            if (temp.Count >= 1)
            {
                p.minionGetDestroyed(p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP));
                
            }
            if (p.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
        }
开发者ID:John4Jobs,项目名称:silverfish,代码行数:13,代码来源:Sim_GvG_047.cs

示例5: getBattlecryEffect

//    kampfschrei:/ zerstört die waffe eures gegners. zieht ihrer haltbarkeit entsprechend karten.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            if (own.own)
            {
                //this.owncarddraw += enemyWeaponDurability;
                for (int i = 0; i < p.enemyWeaponDurability; i++)
                {
                    p.drawACard(CardDB.cardIDEnum.None, true);
                }
                p.lowerWeaponDurability(1000, false);
            }
            else
            {
                for (int i = 0; i < p.enemyWeaponDurability; i++)
                {
                    p.drawACard(CardDB.cardIDEnum.None, false);
                }
                p.lowerWeaponDurability(1000, true);
            }
		}
开发者ID:martdeboer,项目名称:silverfish,代码行数:21,代码来源:Sim_EX1_558.cs

示例6: getBattlecryEffect

//    kampfschrei:/ zieht 1 haltbarkeit von der waffe eures gegners ab.
		public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
		{
            p.lowerWeaponDurability(1, !own.own);
		}
开发者ID:JayMansel,项目名称:silverfish,代码行数:5,代码来源:Sim_NEW1_025.cs


注:本文中的HREngine.Bots.Playfield.lowerWeaponDurability方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。