-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
182 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_140p.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using SilverFish.Enums; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Tome of Origination | ||
/// 源生魔典 | ||
/// </summary> | ||
public class Sim_ULD_140p : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Hero Power Draw a card. It costs 0. | ||
/// 英雄技能 抽一张牌。其法力值消耗为 0点。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
p.drawACard(CardName.unknown, ownplay); | ||
if (ownplay) | ||
{ | ||
p.owncards[p.owncards.Count - 1].manacost = 0; | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_155p.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Ramkahen Roar | ||
/// 拉穆卡恒的咆哮 | ||
/// </summary> | ||
public class Sim_ULD_155p : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Hero Power Give your minions +2 Attack. | ||
/// 英雄技能 使你的所有随从获得+2攻击力。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions; | ||
foreach (Minion m in temp) | ||
{ | ||
p.minionGetBuffed(m, 2, 0); | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_326t.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using SilverFish.Enums; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Mirage Blade | ||
/// 幻象之刃 | ||
/// </summary> | ||
public class Sim_ULD_326t : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Your hero is Immune while attacking. | ||
/// 你的英雄在攻击时具有免疫。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
CardDB.Card weapon = CardDB.Instance.getCardDataFromID(CardIdEnum.ULD_326t); | ||
p.equipWeapon(weapon, ownplay); | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_431p.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Emperor Wraps | ||
/// 帝王裹布 | ||
/// </summary> | ||
public class Sim_ULD_431p : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Hero Power Summon a 2/2 copy of a friendly minion. | ||
/// 英雄技能 召唤一个友方随从的2/2的复制。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
List<Minion> temp = (ownplay) ? p.ownMinions : p.enemyMinions; | ||
int pos = temp.Count; | ||
if (pos < 7) | ||
{ | ||
p.CallKid(target.handcard.card, pos, ownplay); | ||
temp[pos].setMinionToMinion(target); | ||
p.minionSetAngrToX(target, 2); | ||
p.minionSetLifetoX(target, 2); | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_433p.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using SilverFish.Enums; | ||
using System; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Ascendant Scroll | ||
/// 升格卷轴 | ||
/// </summary> | ||
public class Sim_ULD_433p : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Hero Power Add a random Mage spell to your hand. It costs 2 less. | ||
/// 英雄技能 随机将一张法师法术牌置入你的手牌。该牌的法力值消耗减少2点。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
p.drawACard(CardName.unknown, ownplay, true); | ||
p.owncards[p.owncards.Count - 1].manacost = Math.Max(p.owncards[p.owncards.Count - 1].manacost -= 2, 0); | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
DefaultRoutine/Chuck.SilverFish/cards/04Expansion/012ULD/Sim_ULD_724p.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using SilverFish.Enums; | ||
|
||
namespace Chuck.SilverFish.cards._04Expansion._012ULD | ||
{ | ||
/// <summary> | ||
/// Obelisk's Eye | ||
/// 方尖碑之眼 | ||
/// </summary> | ||
public class Sim_ULD_724p : SimTemplate | ||
{ | ||
/// <summary> | ||
/// Hero Power Restore 3 Health. If you target a minion, also give it +3/+3. | ||
/// 英雄技能 恢复3点生命值。如果你的目标是一个随从,则同时使其获得+3/+3。 | ||
/// </summary> | ||
/// <param name="p"></param> | ||
/// <param name="ownplay"></param> | ||
/// <param name="target"></param> | ||
/// <param name="choice"></param> | ||
public override void onCardPlay(Playfield p, bool ownplay, Minion target, int choice) | ||
{ | ||
int heal = 3; | ||
if (ownplay) | ||
{ | ||
if (p.anzOwnAuchenaiSoulpriest > 0 || p.embracetheshadow > 0) heal = -heal; | ||
if (p.doublepriest >= 1) heal *= (3 * p.doublepriest); | ||
} | ||
else | ||
{ | ||
if (p.anzEnemyAuchenaiSoulpriest >= 1) heal = -heal; | ||
if (p.enemydoublepriest >= 1) heal *= (3 * p.enemydoublepriest); | ||
} | ||
p.minionGetDamageOrHeal(target, -heal); | ||
|
||
if (target.handcard.card.type == CardType.Minion) | ||
{ | ||
p.minionGetBuffed(target, 3, 3); | ||
} | ||
} | ||
} | ||
} |