本文整理汇总了C#中HRSim.Playfield.minionTransform方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.minionTransform方法的具体用法?C# Playfield.minionTransform怎么用?C# Playfield.minionTransform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.minionTransform方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getBattlecryEffect
CardDB.Card card2 = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_tk28); // squirrel
//todo better
// kampfschrei:/ verwandelt einen anderen zufälligen diener in einen teufelssaurier (5/5) oder ein eichhörnchen (1/1).
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
int oc = p.playerFirst.ownMinions.Count;
int ec = p.playerSecond.ownMinions.Count;
if (oc == 0 && ec == 0) return;
if (oc > ec)
{
List<Minion> temp = new List<Minion>(p.playerFirst.ownMinions);
temp.AddRange(p.playerSecond.ownMinions);
temp.Sort((a, b) => a.Hp.CompareTo(b.Hp));//transform the weakest
foreach (Minion m in temp)
{
p.minionTransform(m, card1);
break;
}
}
else
{
List<Minion> temp = new List<Minion>(p.playerFirst.ownMinions);
temp.AddRange(p.playerSecond.ownMinions);
temp.Sort((a, b) => -a.Hp.CompareTo(b.Hp));//transform the strongest
foreach (Minion m in temp)
{
p.minionTransform(m, card2);
break;
}
}
}
示例2: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 1)
{
p.minionTransform(own, cat);
}
if (choice == 2)
{
p.minionTransform(own, bear);
}
}
示例3: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (choice == 1)
{
p.minionTransform(own, fireCat52);
}
else if (choice == 2)
{
p.minionTransform(own, fireHawk25);
}
}
示例4: onTurnStartTrigger
// tauscht zu beginn eures zuges diesen diener gegen einen zufälligen diener auf eurer hand aus.
public override void onTurnStartTrigger(Playfield p, Minion triggerEffectMinion, bool turnStartOfOwner)
{
if (turnStartOfOwner && triggerEffectMinion.own == turnStartOfOwner)
{
List<Handmanager.Handcard> temp2 = new List<Handmanager.Handcard>();
foreach (Handmanager.Handcard hc in p.playerFirst.owncards)
{
if (hc.card.type == CardDB.cardtype.MOB) temp2.Add(hc);
}
temp2.Sort((a, b) => -a.card.Attack.CompareTo(b.card.Attack));//damage the stronges
foreach (Handmanager.Handcard mins in temp2)
{
CardDB.Card c = CardDB.Instance.getCardDataFromID(mins.card.cardIDenum);
p.minionTransform(triggerEffectMinion, c);
p.removeCard(mins, true);
p.drawACard(CardDB.cardName.alarmobot, true, true);
break;
}
return;
}
if (!turnStartOfOwner && triggerEffectMinion.own == turnStartOfOwner)
{
p.minionGetBuffed(triggerEffectMinion, 4, 4);
triggerEffectMinion.Hp = triggerEffectMinion.maxHp;
}
}
示例5: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
List<Minion> temp = (own.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
bool hasbeast = false;
foreach (Minion m in temp)
{
if ((TAG_RACE)m.handcard.card.race == TAG_RACE.PET)
{
hasbeast = true;
}
}
if(hasbeast) p.minionTransform(own, betterguy);
}
示例6: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.minionTransform(own, hawk);
}
示例7: getBattlecryEffect
// Battlecry: Transform a friendly minion into a random minion with the same Cost.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if(target == null) return;
p.minionTransform(target, target.handcard.card);
}
示例8: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.minionTransform(target, sheep);
}