本文整理汇总了C#中HRSim.Playfield.minionGetBuffed方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionGetBuffed方法的具体用法?C# Playfield.minionGetBuffed怎么用?C# Playfield.minionGetBuffed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.minionGetBuffed方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onMinionIsSummoned
public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
{
if ((TAG_RACE)summonedMinion.handcard.card.race == TAG_RACE.MECHANICAL)
{
List<Minion> temp = (triggerEffectMinion.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
foreach (Minion m in temp)
{
//if we have allready a mechanical, we are buffed
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) return;
}
//we had no mechanical, but now!
if (triggerEffectMinion.own)
{
p.playerFirst.ownWeaponAttack += 2;
p.minionGetBuffed(p.playerFirst.ownHero, 2, 0);
}
else
{
p.playerSecond.ownWeaponAttack += 2;
p.minionGetBuffed(p.playerSecond.ownHero, 2, 0);
}
}
}
示例2: onDeathrattle
//todo list
public override void onDeathrattle(Playfield p, Minion m)
{
List<Minion> temp = new List<Minion>();
if (m.own)
{
List<Minion> temp2 = new List<Minion>(p.playerFirst.ownMinions);
temp2.Sort((a, b) => -a.Angr.CompareTo(b.Angr));
temp.AddRange(temp2);
}
else
{
List<Minion> temp2 = new List<Minion>(p.playerSecond.ownMinions);
temp2.Sort((a, b) => a.Angr.CompareTo(b.Angr));
temp.AddRange(temp2);
}
if (temp.Count >= 1)
{
if (m.own)
{
Minion target = temp[0];
if (temp.Count >= 2 && target.taunt && !temp[1].taunt) target = temp[1];
p.minionGetBuffed(target, 0, 3);
}
else
{
Minion target = temp[0];
if (temp.Count >= 2 && !target.taunt && temp[1].taunt) target = temp[1];
p.minionGetBuffed(target, 0, 3);
}
}
}
示例3: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
bool hasmech = false;
foreach (Minion m in temp)
{
//if we have allready a mechanical, we are buffed
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MECHANICAL) hasmech=true;
}
if (hasmech)
{
if (ownplay)
{
p.playerFirst.ownWeaponAttack += 2;
p.minionGetBuffed(p.playerFirst.ownHero, 2, 0);
}
else
{
p.playerSecond.ownWeaponAttack += 2;
p.minionGetBuffed(p.playerSecond.ownHero, 2, 0);
}
}
}
示例4: onCardPlay
CardDB.Card wcard = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_409t);//heavyaxe
// wenn ihr eine waffe habt, erhält sie +1/+1. legt anderenfalls eine waffe (1/3) an.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
if (p.playerFirst.ownWeaponName != CardDB.cardName.unknown)
{
p.playerFirst.ownWeaponAttack++;
p.playerFirst.ownWeaponDurability++;
p.minionGetBuffed(p.playerFirst.ownHero, 1, 0);
}
else
{
p.equipWeapon(wcard, true);
}
}
else
{
if (p.playerSecond.ownWeaponName != CardDB.cardName.unknown)
{
p.playerSecond.ownWeaponAttack++;
p.playerSecond.ownWeaponDurability++;
p.minionGetBuffed(p.playerSecond.ownHero, 1, 0);
}
else
{
p.equipWeapon(wcard, false);
}
}
}
示例5: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
foreach (Minion m in p.playerFirst.ownMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
}
foreach (Minion m in p.playerSecond.ownMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 0, 2);
}
}
示例6: getBattlecryEffect
// Taunt. Choose One - +1 Attack; or +1 Health.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 1)
{
p.minionGetBuffed(own, 1, 0);
}
if (choice == 2)
{
p.minionGetBuffed(own, 0, 1);
}
}
示例7: onMinionGotDmgTrigger
// Whenever your hero takes damage on your turn, gain +2/+2.
public override void onMinionGotDmgTrigger(Playfield p, Minion m, bool ownDmgdmin)
{
if (p.playerFirst.ownHero.anzGotDmg>=1 && m.own)
{
p.minionGetBuffed(m, 2 * p.playerFirst.ownHero.anzGotDmg, 2 * p.playerFirst.ownHero.anzGotDmg);
}
else if (p.playerSecond.ownHero.anzGotDmg>=1 && !m.own)
{
p.minionGetBuffed(m, 2 * p.playerSecond.ownHero.anzGotDmg, 2 * p.playerSecond.ownHero.anzGotDmg);
}
}
示例8: onAuraStarts
// alle anderen murlocs haben +2/+1.
public override void onAuraStarts(Playfield p, Minion own)
{
p.playerFirst.anzMurlocWarleader++;
foreach (Minion m in p.playerFirst.ownMinions)
{
if((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
}
foreach (Minion m in p.playerSecond.ownMinions)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.MURLOC && own.entitiyID != m.entitiyID) p.minionGetBuffed(m, 2, 1);
}
}
示例9: onAuraEnds
public override void onAuraEnds(Playfield p, Minion m)
{
p.playerFirst.anzMurlocWarleader--;
foreach (Minion mn in p.playerFirst.ownMinions)
{
if((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -2, -1);
}
foreach (Minion mn in p.playerSecond.ownMinions)
{
if ((TAG_RACE)mn.handcard.card.race == TAG_RACE.MURLOC && mn.entitiyID != m.entitiyID) p.minionGetBuffed(m, -2, -1);
}
}
示例10: onCardPlay
// wählt aus:/ verleiht einem diener +4 angriff; oder +4 leben und spott/.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (choice == 1)
{
p.minionGetBuffed(target, 4, 0);
}
if (choice == 2)
{
p.minionGetBuffed(target, 0, 4);
target.taunt = true;
}
}
示例11: onMinionDiedTrigger
// Whenever a friendly Beast dies, gain +2/+1.
public override void onMinionDiedTrigger(Playfield p, Minion m, Minion diedMinion)
{
int diedMinions = (m.own) ? p.tempTrigger.ownBeastDied : p.tempTrigger.enemyBeastDied;
if(p.tempTrigger.ownBeastDied > 0 && m.own)
{
p.minionGetBuffed(m, 2 * diedMinions, diedMinions); //p.minionGetBuffed(m, 2, 1);
}
else if(p.tempTrigger.enemyBeastDied > 0 && !m.own)
{
p.minionGetBuffed(m, 2 * diedMinions, diedMinions);
}
}
示例12: onTurnEndsTrigger
// verleiht am ende eures zuges einem zufälligen diener +1/+1.
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectMinion, bool turnEndOfOwner)
{
if (triggerEffectMinion.own == turnEndOfOwner)
{
Minion tm = null;
int ges = 1000;
foreach (Minion m in p.playerFirst.ownMinions)
{
if (m.Angr + m.Hp < ges)
{
tm = m;
ges = m.Angr + m.Hp;
}
}
foreach (Minion m in p.playerSecond.ownMinions)
{
if (m.Angr + m.Hp < ges)
{
tm = m;
ges = m.Angr + m.Hp;
}
}
if (ges <= 999)
{
p.minionGetBuffed(tm, 1, 1);
}
}
}
示例13: onMinionIsSummoned
// Whenever you summon a minion with Deathrattle, gain +1 Attack.
public override void onMinionIsSummoned(Playfield p, Minion triggerEffectMinion, Minion summonedMinion)
{
if (triggerEffectMinion.own == summonedMinion.own)
{
if (summonedMinion.handcard.card.deathrattle) p.minionGetBuffed(triggerEffectMinion,1,0);
}
}
示例14: onMinionDiedTrigger
public override void onMinionDiedTrigger(Playfield p, Minion m, Minion diedMinion)
{
int diedMinions = (m.own)? p.tempTrigger.ownMechanicDied : p.tempTrigger.enemyMechanicDied;
if (diedMinions >= 1)
{
List<Minion> temp = (m.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
bool hasmechanics = false;
foreach (Minion mTmp in temp) //check if we have more mechanics, or debuff him
{
if (mTmp.Hp >=1 && (TAG_RACE)mTmp.handcard.card.race == TAG_RACE.MECHANICAL) hasmechanics = true;
}
if (!hasmechanics)
{
if(m.own)
{
p.playerFirst.ownWeaponAttack -= 2;
p.minionGetBuffed(p.playerFirst.ownHero, -2, 0);
}
else
{
p.playerSecond.ownWeaponAttack -= 2;
p.minionGetBuffed(p.playerSecond.ownHero, -2, 0);
}
}
}
}
示例15: getBattlecryEffect
// Battlecry:</b> Give a friendly Mech +4 Health.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (target != null)
{
p.minionGetBuffed(target, 0, 4);
}
}