本文整理汇总了C#中HRSim.Playfield.lowerWeaponDurability方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.lowerWeaponDurability方法的具体用法?C# Playfield.lowerWeaponDurability怎么用?C# Playfield.lowerWeaponDurability使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.lowerWeaponDurability方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int damage = p.getSpellDamageDamage(p.playerFirst.ownWeaponAttack, ownplay);
p.allCharsOfASideGetDamage(!ownplay, damage);
//destroy own weapon
p.lowerWeaponDurability(1000, true);
}
示例2: 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.playerSecond.ownWeaponDurability; i++)
{
p.drawACard(p.getArandomCardFromDeck(true), true);
}
p.lowerWeaponDurability(1000, false);
}
else
{
for (int i = 0; i < p.playerSecond.ownWeaponDurability; i++)
{
p.drawACard(p.getArandomCardFromDeck(false), false);
}
p.lowerWeaponDurability(1000, true);
}
}
示例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)
{
List<Minion> temp = (ownplay)? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
if (temp.Count >= 1)
{
// Drew: Null check for searchRandomMinion.
var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
if (found != null)
{
p.minionGetDestroyed(found);
}
}
if (p.playerFirst.cardsPlayedThisTurn >= 1) p.lowerWeaponDurability(1000, !ownplay);
}
示例4: 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);
}