- added bunde module to the maven build

- bundle module now builds the distributable tar.gz file
- fixed gui test cases which needed files from moved res directory
This commit is contained in:
teferi
2014-02-28 10:04:20 +00:00
parent 3ae604d414
commit 5de0bacd5f
30 changed files with 205 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/sh
cd "`dirname \"$0\"`"
java -Xmx1024m -jar $project.build.finalName$

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

View File

@@ -1,3 +0,0 @@
#!/bin/sh
cd "`dirname \"$0\"`"
java -Xmx1024m -jar $project.build.finalName$

View File

@@ -25,7 +25,7 @@ public final class NewConstants {
public static final String PROFILE_TEMPLATE_FILE = PROFILE_FILE + ".example";
// data that is only in the program dir
private static final String _RES_ROOT = "res/";
private static final String _RES_ROOT = NewConstants.class.getResource("/").getFile();
private static final String _LIST_DIR = _RES_ROOT + "lists/";
public static final String KEYWORD_LIST_FILE = _LIST_DIR + "NonStackingKWList.txt";
public static final String TYPE_LIST_FILE = _LIST_DIR + "TypeLists.txt";

View File

@@ -127,8 +127,7 @@ public class DeckHintsTest {
* @return the CardPrinted
*/
protected PaperCard readCard(String filename) {
String firstLetter = filename.substring(0, 1);
File dir = new File(NewConstants.CARD_DATA_DIR, firstLetter);
File dir = new File(NewConstants.CARD_DATA_DIR);
File txtFile = new File(dir, filename);
CardRules.Reader crr = new CardRules.Reader();

View File

@@ -0,0 +1,10 @@
Name:Acidic Slime
ManaCost:3 G G
Types:Creature Ooze
PT:2/2
K:Deathtouch
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDestroy | TriggerDescription$ When CARDNAME enters the battlefield, destroy target artifact, enchantment, or land.
SVar:TrigDestroy:DB$ Destroy | ValidTgts$ Artifact,Enchantment,Land | TgtPrompt$ Select an artifact, enchantment, or land.
SVar:PlayMain1:TRUE
SVar:Picture:http://www.wizards.com/global/images/magic/general/acidic_slime.jpg
Oracle:Deathtouch (Any amount of damage this deals to a creature is enough to destroy it.)\nWhen Acidic Slime enters the battlefield, destroy target artifact, enchantment, or land.

View File

@@ -0,0 +1,7 @@
Name:Ajani's Sunstriker
ManaCost:W W
Types:Creature Cat Cleric
PT:2/2
K:Lifelink
SVar:Picture:http://www.wizards.com/global/images/magic/general/ajanis_sunstriker.jpg
Oracle:Lifelink (Damage dealt by this creature also causes you to gain that much life.)

View File

@@ -0,0 +1,7 @@
Name:Assault Griffin
ManaCost:3 W
Types:Creature Griffin
PT:3/2
K:Flying
SVar:Picture:http://www.wizards.com/global/images/magic/general/assault_griffin.jpg
Oracle:Flying

View File

@@ -0,0 +1,8 @@
Name:Auramancer
ManaCost:2 W
Types:Creature Human Wizard
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChangeZone | OptionalDecider$ You | TriggerDescription$ When CARDNAME enters the battlefield, you may return target enchantment card from your graveyard to your hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Hand | ValidTgts$ Enchantment.YouCtrl
SVar:Picture:http://www.wizards.com/global/images/magic/general/auramancer.jpg
Oracle:When Auramancer enters the battlefield, you may return target enchantment card from your graveyard to your hand.

View File

@@ -0,0 +1,13 @@
Name:Crown of Empires
ManaCost:2
Types:Artifact
A:AB$ Tap | Cost$ 3 T | ValidTgts$ Creature | TgtPrompt$ Select target creature | ConditionCheckSVar$ M12Complete | ConditionSVarCompare$ EQ0 | SubAbility$ DBControl | SpellDescription$ Tap target creature. Gain control of that creature instead if you control artifacts named Scepter of Empires and Throne of Empires.
SVar:DBControl:DB$ GainControl | Defined$ Targeted | ConditionCheckSVar$ M12Complete
SVar:RemRandomDeck:True
DeckHints:Name$Scepter of Empires|Throne of Empires
SVar:M12Complete:Count$Compare AllM12Empires GT0.1.0
SVar:AllM12Empires:SVar$X/Times.Y
SVar:X:Count$Valid Artifact.namedScepter of Empires+YouCtrl
SVar:Y:Count$Valid Artifact.namedThrone of Empires+YouCtrl
SVar:Picture:http://www.wizards.com/global/images/magic/general/crown_of_empires.jpg
Oracle:{3}, {T}: Tap target creature. Gain control of that creature instead if you control artifacts named Scepter of Empires and Throne of Empires.

View File

@@ -0,0 +1,11 @@
Name:Griffin Rider
ManaCost:1 W
Types:Creature Human Knight
PT:1/1
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 3 | AddToughness$ 3 | AddKeyword$ Flying | CheckSVar$ X | SVarCompare$ GE1 | Description$ As long as you control a Griffin, CARDNAME gets +3/+3 and has flying.
SVar:X:Count$Valid Griffin.YouCtrl
SVar:BuffedBy:Griffin
SVar:RemRandomDeck:True
DeckHints:Type$Griffin
SVar:Picture:http://www.wizards.com/global/images/magic/general/griffin_rider.jpg
Oracle:As long as you control a Griffin creature, Griffin Rider gets +3/+3 and has flying.

View File

@@ -0,0 +1,7 @@
Name:Llanowar Elves
ManaCost:G
Types:Creature Elf Druid
PT:1/1
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add {G} to your mana pool.
SVar:Picture:http://resources.wizards.com/magic/cards/9ed/en-us/card83515.jpg
Oracle:{T}: Add {G} to your mana pool.

View File

@@ -0,0 +1,10 @@
Name:Mwonvuli Beast Tracker
ManaCost:1 G G
Types:Creature Human Scout
PT:2/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ ScoutSearch | TriggerDescription$ When CARDNAME enters the battlefield, search your library for a creature card with deathtouch, hexproof, reach or trample and reveal it. Shuffle your library, then put that card on top of it.
SVar:ScoutSearch:DB$ ChangeZone | Origin$ Library | Destination$ Library | LibraryPosition$ 0 | ChangeNum$ 1 | ChangeType$ Creature.withDeathtouch+YouCtrl,Creature.withHexproof+YouCtrl,Creature.withReach+YouCtrl,Creature.withTrample+YouCtrl
SVar:RemRandomDeck:True
DeckHints:Keyword$Deathtouch|Hexproof|Reach|Trample
SVar:Picture:http://www.wizards.com/global/images/magic/general/mwonvuli_beast_tracker.jpg
Oracle:When Mwonvuli Beast Tracker enters the battlefield, search your library for a creature card with deathtouch, hexproof, reach, or trample and reveal it. Shuffle your library and put that card on top of it.

View File

@@ -0,0 +1,12 @@
Name:Scepter of Empires
ManaCost:3
Types:Artifact
A:AB$ DealDamage | Cost$ T | ValidTgts$ Player | TgtPrompt$ Select target player | NumDmg$ X | References$ X,Y,Z,AllM12Empires | SpellDescription$ CARDNAME deals 1 damage to target player. It deals 3 damage to that player instead if you control artifacts named Crown of Empires and Throne of Empires.
SVar:X:Count$Compare AllM12Empires GT0.3.1
SVar:AllM12Empires:SVar$Z/Times.Y
SVar:Z:Count$Valid Artifact.namedCrown of Empires+YouCtrl
SVar:Y:Count$Valid Artifact.namedThrone of Empires+YouCtrl
SVar:RemRandomDeck:True
DeckHints:Name$Throne of Empires|Crown of Empires
SVar:Picture:http://www.wizards.com/global/images/magic/general/scepter_of_empires.jpg
Oracle:{T}: Scepter of Empires deals 1 damage to target player. It deals 3 damage to that player instead if you control artifacts named Crown of Empires and Throne of Empires.

View File

@@ -0,0 +1,12 @@
Name:Throne of Empires
ManaCost:4
Types:Artifact
A:AB$ Token | Cost$ 1 T | TokenAmount$ X | References$ X,Y,Z,AllM12Empires | TokenName$ Soldier | TokenTypes$ Creature,Soldier | TokenOwner$ You | TokenColors$ White | TokenPower$ 1 | TokenToughness$ 1 | SpellDescription$ Put a 1/1 white Soldier creature token onto the battlefield. Put five of those tokens onto the battlefield instead if you control artifacts named Crown of Empires and Scepter of Empires.
SVar:X:Count$Compare AllM12Empires GT0.5.1
SVar:AllM12Empires:SVar$Z/Times.Y
SVar:Z:Count$Valid Artifact.namedCrown of Empires+YouCtrl
SVar:Y:Count$Valid Artifact.namedScepter of Empires+YouCtrl
SVar:RemRandomDeck:True
DeckHints:Name$Scepter of Empires|Crown of Empires
SVar:Picture:http://www.wizards.com/global/images/magic/general/throne_of_empires.jpg
Oracle:{1}, {T}: Put a 1/1 white Soldier creature token onto the battlefield. Put five of those tokens onto the battlefield instead if you control artifacts named Crown of Empires and Scepter of Empires.

View File

@@ -0,0 +1,6 @@
Name:Unsummon
ManaCost:U
Types:Instant
A:SP$ ChangeZone | Cost$ U | ValidTgts$ Creature | TgtPrompt$ Select target creature | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Return target creature to its owner's hand.
SVar:Picture:http://www.wizards.com/global/images/magic/general/unsummon.jpg
Oracle:Return target creature to its owner's hand.

View File

@@ -0,0 +1,9 @@
Name:Wurm's Tooth
ManaCost:2
Types:Artifact
T:Mode$ SpellCast | ValidCard$ Card.Green | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigGainLife | TriggerDescription$ Whenever a player casts a green spell, you may gain 1 life.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ 1
SVar:RemRandomDeck:True
DeckNeeds:Color$Green
SVar:Picture:http://www.wizards.com/global/images/magic/general/wurms_tooth.jpg
Oracle:Whenever a player casts a green spell, you may gain 1 life.