本文整理汇总了C#中HREngine.Bots.Playfield.equipWeapon方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.equipWeapon方法的具体用法?C# Playfield.equipWeapon怎么用?C# Playfield.equipWeapon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HREngine.Bots.Playfield
的用法示例。
在下文中一共展示了Playfield.equipWeapon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = (ownplay) ? p.getSpellDamageDamage(1) : p.getEnemySpellDamageDamage(1);
if (p.cardsPlayedThisTurn >= 1) dmg = (ownplay) ? p.getSpellDamageDamage(2) : p.getEnemySpellDamageDamage(2);
p.minionGetDamageOrHeal(target, dmg);
p.equipWeapon(w, ownplay);
}
示例2: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
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.ownWeaponAttack += 2;
p.minionGetBuffed(p.ownHero, 2, 0);
}
else
{
p.enemyWeaponAttack += 2;
p.minionGetBuffed(p.enemyHero, 2, 0);
}
}
}
示例3: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
if (temp.Count <= 0) return;
p.minionGetBuffed(p.searchRandomMinion(temp, (ownplay ? Playfield.searchmode.searchLowestHP : Playfield.searchmode.searchHighestHP)), 1, 0);
}
示例4: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
foreach (Minion m in temp)
{
if (m.divineshild) p.minionGetBuffed(m, 1, 1);
}
}
示例5: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
for (int i = 0; i < 3; i++)
{
int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
p.callKid(kid, pos, ownplay);
}
p.equipWeapon(w, ownplay);
}
示例6: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
if (temp.Count <= 0) return;
Minion m = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestHP);
m.divineshild = true;
m.taunt = true;
}
示例7: 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.ownHeroAblility.card = card;
p.ownHeroName = HeroEnum.lordjaraxxus;
p.ownHero.Hp = own.Hp;
p.ownHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
}
else
{
p.enemyHeroAblility.card = card;
p.enemyHeroName = HeroEnum.lordjaraxxus;
p.enemyHero.Hp = own.Hp;
p.enemyHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
}
}
示例8: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
if (temp.Count <= 0) return;
// Drew: Null check for searchRandomMinion.
var found = p.searchRandomMinion(temp, Playfield.searchmode.searchLowestAttack);
if (found != null)
{
p.minionGetBuffed(found, 1, 0);
}
}
示例9: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
p.callKid(kid, pos, ownplay, false);
for (int i = 0; i < 2; i++)
{
pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count;
p.callKid(kid, pos + 1, ownplay, true); // spawnkid
}
p.equipWeapon(w, ownplay);
}
示例10: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay && p.ownWeaponDurability >= 1 && p.ownWeaponName == CardDB.cardName.poisonedblade)
{
p.ownWeaponAttack++;
return;
}
if (!ownplay && p.enemyWeaponDurability >= 1 && p.enemyWeaponName == CardDB.cardName.poisonedblade)
{
p.enemyWeaponAttack++;
return;
}
p.equipWeapon(weapon, ownplay);
}
示例11: 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.ownHeroAblility.card = card;
p.ownHeroName = HeroEnum.lordjaraxxus;
p.ownHero.Hp = own.Hp;
p.ownHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
p.ownAbilityReady = true;
}
else
{
p.enemyHeroAblility.card = card;
p.enemyHeroName = HeroEnum.lordjaraxxus;
p.enemyHero.Hp = own.Hp;
p.enemyHero.maxHp = own.maxHp;
p.equipWeapon(weapon, own.own);
p.enemyAbilityReady = true;
}
p.heroPowerActivationsThisTurn = 0;
}
示例12: 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.
//todo enemy
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (ownplay)
{
if (p.ownWeaponName != CardDB.cardName.unknown)
{
p.ownWeaponAttack++;
p.ownWeaponDurability++;
p.minionGetBuffed(p.ownHero, 1, 0);
}
else
{
p.equipWeapon(wcard, true);
}
}
}
示例13: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(w, ownplay);
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions;
if (temp.Count <= 0) return;
if (p.isServer)
{
Minion choosen = p.getRandomMinionFromSide_SERVER(ownplay, false);
if (choosen != null)
{
choosen.divineshild = true;
choosen.taunt = true;
}
return;
}
Minion m = p.searchRandomMinion(temp, (ownplay ? Playfield.searchmode.searchLowestAttack : Playfield.searchmode.searchHighestAttack));
m.divineshild = true;
m.taunt = true;
}
示例14: getBattlecryEffect
public override void getBattlecryEffect(Playfield p, Minion own, Minion target, int choice)
{
p.equipWeapon(w, true);
p.equipWeapon(w, false);
}
示例15: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.equipWeapon(card, ownplay);
if (ownplay) { p.owedRecall += 2; } else { p.enemyRecall += 2; };
}