本文整理汇总了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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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);
}