本文整理汇总了C#中HRSim.Playfield.getSpellDamageDamage方法的典型用法代码示例。如果您正苦于以下问题:C# Playfield.getSpellDamageDamage方法的具体用法?C# Playfield.getSpellDamageDamage怎么用?C# Playfield.getSpellDamageDamage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRSim.Playfield
的用法示例。
在下文中一共展示了Playfield.getSpellDamageDamage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: onCardPlay
// fügt einem feind $4 schaden und allen anderen feinden $1 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
int dmg1 = p.getSpellDamageDamage(4, ownplay);
List<Minion> temp = (ownplay) ? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
p.minionGetDamageOrHeal(target, dmg1);
foreach (Minion m in temp)
{
if (m.entitiyID != target.entitiyID)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
if (ownplay)
{
if (p.playerSecond.ownHero.entitiyID != target.entitiyID)
{
p.minionGetDamageOrHeal(p.playerSecond.ownHero, dmg);
}
}
else
{
if (p.playerFirst.ownHero.entitiyID != target.entitiyID)
{
p.minionGetDamageOrHeal(p.playerFirst.ownHero, dmg);
}
}
}
示例3: onCardPlay
// fügt einem diener $5 schaden und benachbarten dienern $2 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg1 = p.getSpellDamageDamage(5, ownplay);
int dmg2 = p.getSpellDamageDamage(2, ownplay);
List<Minion> temp = (target.own) ? p.playerFirst.ownMinions : p.playerSecond.ownMinions;
p.minionGetDamageOrHeal(target, dmg1);
foreach (Minion m in temp)
{
if (m.zonepos + 1 == target.zonepos || m.zonepos - 1 == target.zonepos) p.minionGetDamageOrHeal(m, dmg2);
}
}
示例4: onCardPlay
// verursacht $4 schaden. verursacht stattdessen $6 schaden, wenn euer held max. 12 leben hat.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = 0;
if (ownplay)
{
dmg = (p.playerFirst.ownHero.Hp <= 12) ? p.getSpellDamageDamage(6, ownplay) : p.getSpellDamageDamage(4, ownplay);
}
else
{
dmg = (p.playerSecond.ownHero.Hp <= 12) ? p.getSpellDamageDamage(6, ownplay) : p.getSpellDamageDamage(4, ownplay);
}
p.minionGetDamageOrHeal(target, dmg);
}
示例5: onCardPlay
// wählt aus:/ fügt einem diener $5 schaden zu; oder fügt allen feindlichen dienern $2 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
if (choice == 1)
{
int dmg = p.getSpellDamageDamage(5, ownplay);
p.minionGetDamageOrHeal(target, dmg);
}
if (choice == 2)
{
int damage = p.getSpellDamageDamage(2, ownplay);
p.allMinionOfASideGetDamage(!ownplay, damage);
}
}
示例6: onCardPlay
//todo make it better :D
//Fügt allen Feinden $2 Schaden zu. Stellt bei allen befreundeten Charakteren #2 Leben wieder her.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(2, ownplay);
int heal = p.getSpellHeal(2, ownplay);
if (ownplay)
{
p.minionGetDamageOrHeal(p.playerFirst.ownHero, -heal);
p.minionGetDamageOrHeal(p.playerSecond.ownHero, dmg);
foreach (Minion m in p.playerFirst.ownMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.playerSecond.ownMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
else
{
p.minionGetDamageOrHeal(p.playerSecond.ownHero, -heal);
p.minionGetDamageOrHeal(p.playerFirst.ownHero, dmg);
foreach (Minion m in p.playerSecond.ownMinions)
{
p.minionGetDamageOrHeal(m, -heal);
}
foreach (Minion m in p.playerFirst.ownMinions)
{
p.minionGetDamageOrHeal(m, dmg);
}
}
}
示例7: onCardPlay
// fügt dem feindlichen helden $3 schaden zu.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(3, ownplay);
p.minionGetDamageOrHeal(ownplay ? p.playerSecond.ownHero : p.playerFirst.ownHero, dmg);
}
示例8: onCardPlay
// todo ask the posibility manager!
// zieht eine karte und verursacht schaden, der ihren kosten entspricht.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
p.drawACard(p.getArandomCardFromDeck(ownplay), ownplay);
int dmg = p.getSpellDamageDamage(3, ownplay);
p.minionGetDamageOrHeal(target, dmg);
}
示例9: onCardPlay
// fügt einem feindlichen charakter $1 schaden zu und friert/ ihn ein.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(1, ownplay);
target.frozen = true;
p.minionGetDamageOrHeal(target, dmg);
}
示例10: onCardPlay
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int damage = p.getSpellDamageDamage(p.playerFirst.ownWeaponAttack, ownplay);
p.allCharsOfASideGetDamage(!ownplay, damage);
//destroy own weapon
p.lowerWeaponDurability(1000, true);
}
示例11: onCardPlay
// Deal 3 damage. If your hand is empty, draw a card.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(3, ownplay);
p.minionGetDamageOrHeal(target, dmg);
int cardsCount = (ownplay) ? p.playerFirst.owncards.Count : p.playerSecond.owncards.Count;
if (cardsCount <= 0) p.drawACard(p.getArandomCardFromDeck(ownplay), ownplay);
}
示例12: onCardPlay
// fügt dem feindlichen helden $2 schaden zu. combo:/ lasst die karte in eurem nächsten zug wieder auf eure hand zurückkehren.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(2, ownplay);
p.minionGetDamageOrHeal(ownplay ? p.playerSecond.ownHero : p.playerFirst.ownHero, dmg);
//if (p.playerFirst.cardsPlayedThisTurn >= 1) //p.evaluatePenality -= 5;
}
示例13: onCardPlay
// fügt einem diener $1 schaden zu. zieht eine karte.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int damage = p.getSpellDamageDamage(1, ownplay);
//this.owncarddraw++;
p.minionGetDamageOrHeal(target, damage);
p.drawACard(p.getArandomCardFromDeck(ownplay), ownplay);
}
示例14: onCardPlay
// Deal 1 damage to all minions. If you have 12 or less Health, deal 3 damage instead.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = 1;
int heroHealth = (ownplay) ? p.playerFirst.ownHero.Hp : p.playerSecond.ownHero.Hp;
if(heroHealth <= 12) dmg = 3;
dmg = p.getSpellDamageDamage(dmg, ownplay);
p.allMinionsGetDamage(dmg);
}
示例15: onCardPlay
//Deal 2 damage to all enemy minions and Freeze them.
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice)
{
int dmg = p.getSpellDamageDamage(2, ownplay);
p.allMinionOfASideGetDamage(!ownplay, dmg, true);
List<Minion> temp = (ownplay) ? p.playerSecond.ownMinions : p.playerFirst.ownMinions;
foreach (Minion t in temp)
{
t.frozen = true;
}
}