本文整理汇总了C#中HRSim.Playfield.minionGetTempBuff方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetTempBuff方法的具体用法?C# Playfield.minionGetTempBuff怎么用?C# Playfield.minionGetTempBuff使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetTempBuff方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
// verleiht euren charakteren +2 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
List<Minion> temp = (ownplay) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
foreach (Minion t in temp)
{
p.minionGetTempBuff(t, 2, 0);
}
p.minionGetTempBuff(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, 2, 0);
}
示例2: onCardPlay
// heldenfähigkeit/\n+1 angriff in diesem zug.\n+1 rüstung.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
p.minionGetTempBuff(p.playerFirst.ownHero, 1, 0);
p.minionGetArmor(p.playerFirst.ownHero,1);
}
else
{
p.minionGetTempBuff(p.playerSecond.ownHero, 1, 0);
p.minionGetArmor(p.playerSecond.ownHero,1);
}
}
示例3: getBattlecryEffect
// Your Mechs cost (1) less.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (target != null)
{
p.minionGetTempBuff(target, -2, 0);
}
}
示例4: onCardPlay
// Restore #4 Health to your hero and gain +2 Attack this turn.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
int heal = p.getSpellHeal(4, ownplay);
p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
p.minionGetTempBuff(p.playerFirst.ownHero, 2, 0);
}
else
{
int heal = p.getSpellHeal(4, ownplay);
p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
p.minionGetTempBuff(p.playerSecond.ownHero, 2, 0);
}
}
示例5: onCardPlay
// verleiht einem befreundeten charakter +3 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetTempBuff(target, 3,0);
}
示例6: onCardPlay
// fügt einem diener $1 schaden zu. der diener erhält +2 angriff.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
p.minionGetDamageOrHeal(target, dmg);
p.minionGetTempBuff(target, 2,0);
}
示例7: onCardPlay
// verleiht eurem helden +4 angriff in diesem zug.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionGetTempBuff(ownplay ? p.playerFirst.ownHero : p.playerSecond.ownHero, 4, 0);
}