本文整理汇总了C#中HRSim.Playfield.allMinionsGetDamage方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.allMinionsGetDamage方法的具体用法?C# Playfield.allMinionsGetDamage怎么用?C# Playfield.allMinionsGetDamage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.allMinionsGetDamage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// Deal 1 damage to all minions. If you have 12 or less Health, deal 3 damage instead.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = 1;
int heroHealth = (ownplay) ? p.playerFirst.ownHero.Hp : p.playerSecond.ownHero.Hp;
if(heroHealth <= 12) dmg = 3;
dmg = p.getSpellDamageDamage(dmg, ownplay);
p.allMinionsGetDamage(dmg);
}
示例2: onCardPlay
// Deal $1 damage to a random minion. Repeat until a minion dies.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
int minHp = 100000;
foreach (Minion m in p.playerFirst.ownMinions)
{
if (m.Hp < minHp) minHp = m.Hp;
}
foreach (Minion m in p.playerSecond.ownMinions)
{
if (m.Hp < minHp) minHp = m.Hp;
}
int dmgdone = (int)Math.Ceiling((double)minHp / (double)dmg) * dmg;
p.allMinionsGetDamage(dmgdone);
}
示例3: onCardPlay
// stellt bei allen dienern #4 leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int heal = p.getSpellHeal(4, ownplay);
p.allMinionsGetDamage(-heal);
}
示例4: onCardPlay
// fügt allen dienern $1 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
p.allMinionsGetDamage(dmg);
}
示例5: onDeathrattle
// spott/. todesröcheln:/ fügt allen dienern 1 schaden zu.
public override void onDeathrattle(Playfield p, Minion m)
{
p.allMinionsGetDamage(1);
}
示例6: onCardIsGoingToBePlayed
// After you cast a spell, deal 1 damage to ALL minions.
public override void onCardIsGoingToBePlayed(Playfield p, CardDB.Card c, bool ownplay, Minion m)
{
if (m.own == ownplay && c.type == CardDB.cardtype.SPELL) p.allMinionsGetDamage(1);
}