本文整理汇总了C#中HRSim.Playfield.equipWeapon方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.equipWeapon方法的具体用法?C# Playfield.equipWeapon怎么用?C# Playfield.equipWeapon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.equipWeapon方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
}
}
示例2: 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);
}
}
}
示例3: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
if (p.playerFirst.cardsPlayedThisTurn >= 1) dmg = p.getSpellDamageDamage(2, ownplay);
p.minionGetDamageOrHeal(target, dmg);
p.equipWeapon(w, ownplay);
}
示例4: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
for (int i = 0; i < 3; i++)
{
int pos = (ownplay) ? p.playerFirst.ownMinions.Count : p.playerSecond.ownMinions.Count;
p.callKid(kid, pos, ownplay);
}
p.equipWeapon(w, ownplay);
}
示例5: getBattlecryEffect
// kampfschrei:/ vernichtet euren helden und ersetzt ihn durch lord jaraxxus.
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
if (own.own)
{
p.playerFirst.ownHeroAblility.card = card;
p.playerFirst.ownHeroName = HeroEnum.lordjaraxxus;
p.playerFirst.ownHero.Hp = own.Hp;
p.playerFirst.ownHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
}
else
{
p.playerSecond.ownHeroAblility.card = card;
p.playerSecond.ownHeroName = HeroEnum.lordjaraxxus;
p.playerSecond.ownHero.Hp = own.Hp;
p.playerSecond.ownHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
}
}
示例6: 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;
if (temp.Count <= 0) return;
Minion m = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
if (m != null)
{
m.divineshild = true;
m.taunt = true;
}
}
示例7: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
}
示例8: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.equipWeapon(w, true);
p.equipWeapon(w, false);
}
示例9: getBattlecryEffect
CardDB.Card wcard = CardDB.Instance.getCardDataFromID(CardDB.cardIDEnum.EX1_398t);//battleaxe
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.equipWeapon(wcard,own.own);
}
示例10: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(card, ownplay);
if (ownplay) p.ueberladung += 2;
}