mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
*Hopefully fixed LQ nonSet Pic downloading.(Moved ImageName into CardCharacteristics)
*Add LQ pic URL to Nezumi Shortfang / Stabwhisker the Odious
This commit is contained in:
@@ -7,8 +7,13 @@ A:AB$Discard | Cost$ 1 B T | ValidTgts$ Opponent | NumCards$ 1 | Mode$ TgtChoose
|
||||
SVar:DBFlip:DB$Flip | Defined$ Self | CheckSVar$ X | SVarCompare$ EQ0
|
||||
SVar:X:Count$InOppHand
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/nezumi_shortfang.jpg
|
||||
AlternateMode:Flip
|
||||
SetInfo:CHK|Rare|http://magiccards.info/scans/en/chk/131.jpg
|
||||
Oracle:{1}{B}, {T}: Target opponent discards a card. Then if that player has no cards in hand, flip Nezumi Shortfang.
|
||||
|
||||
ALTERNATE
|
||||
|
||||
Name:Stabwhisker the Odious
|
||||
ManaCost:1 B
|
||||
Colors:black
|
||||
@@ -17,10 +22,11 @@ Text:no text
|
||||
PT:4/2
|
||||
T:Mode$Phase | Phase$ Upkeep | ValidPlayer$ Opponent | TriggerZones$ Battlefield | Execute$ TrigLoseLife | TriggerDescription$ At the beginning of each opponent's upkeep, that player loses 1 life for each card fewer than three in his or her hand.
|
||||
SVar:TrigLoseLife:AB$LoseLife | Cost$ 0 | Defined$ TriggeredPlayer | LifeAmount$ X
|
||||
SVar:X:SVar$Y/Minus.Z
|
||||
SVar:X:SVar$Z/Minus.Y
|
||||
SVar:Y:Count$InOppHand
|
||||
SVar:Z:Number$3
|
||||
SVar:Rarity:Rare
|
||||
SetInfo:CHK|Rare|http://magiccards.info/scans/en/chk/131.jpg
|
||||
Oracle:{1}{B}, {T}: Target opponent discards a card. Then if that player has no cards in hand, flip Nezumi Shortfang.\n----\nStabwhisker the Odious\nLegendary Creature - Rat Shaman\n3/3\nAt the beginning of each opponent's upkeep, that player loses 1 life for each card fewer than three in his or her hand.
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/stabwhisker_the_odious.jpg
|
||||
SetInfo:CHK|Rare|http://magiccards.info/scans/en/chk/312.jpg
|
||||
Oracle:At the beginning of each opponent's upkeep, that player loses 1 life for each card fewer than three in his or her hand.
|
||||
End
|
||||
@@ -286,7 +286,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
|
||||
private Player owner = null;
|
||||
private ArrayList<Object> controllerObjects = new ArrayList<Object>();
|
||||
private String imageName = "";
|
||||
|
||||
// private String rarity = "";
|
||||
private String text = "";
|
||||
private String echoCost = "";
|
||||
@@ -3427,7 +3427,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
* a {@link java.lang.String} object.
|
||||
*/
|
||||
public final void setImageName(final String s) {
|
||||
imageName = s;
|
||||
getCharacteristics().setImageName(s);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3438,8 +3438,8 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
* @return a {@link java.lang.String} object.
|
||||
*/
|
||||
public final String getImageName() {
|
||||
if (!imageName.equals("")) {
|
||||
return imageName;
|
||||
if (!getCharacteristics().getImageName().equals("")) {
|
||||
return getCharacteristics().getImageName();
|
||||
}
|
||||
return getName();
|
||||
}
|
||||
|
||||
@@ -46,6 +46,9 @@ public class Gui_DownloadPictures_LQ extends GuiDownloader {
|
||||
|
||||
String base = ForgeProps.getFile(IMAGE_BASE).getPath();
|
||||
for (Card c : AllZone.getCardFactory()) {
|
||||
if(c.getName().equals("Gatstaf Shepherd")) {
|
||||
System.out.println("Heyo!");
|
||||
}
|
||||
cList.addAll(createDLObjects(c, base));
|
||||
if (c.hasAlternateState()) {
|
||||
c.changeState();
|
||||
|
||||
@@ -32,6 +32,7 @@ public class CardCharacteristics {
|
||||
private ArrayList<StaticAbility> staticAbilities = new ArrayList<StaticAbility>();
|
||||
private ArrayList<String> staticAbilityStrings = new ArrayList<String>();
|
||||
private String ImageFilename = "";
|
||||
private String imageName = "";
|
||||
private Map<String, String> sVars = new TreeMap<String, String>();
|
||||
private ArrayList<SetInfo> Sets = new ArrayList<SetInfo>();
|
||||
|
||||
@@ -371,4 +372,18 @@ public class CardCharacteristics {
|
||||
this.staticAbilityStrings = staticAbilityStrings0; // TODO: Add 0 to
|
||||
// parameter's name.
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the imageName
|
||||
*/
|
||||
public String getImageName() {
|
||||
return imageName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param imageName0 the imageName to set
|
||||
*/
|
||||
public void setImageName(String imageName0) {
|
||||
this.imageName = imageName0; // TODO: Add 0 to parameter's name.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user