mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Minor changes to tool tip text generation and token image loading.
This commit is contained in:
parent
2226498576
commit
455cca0795
4 changed files with 6 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
||||||
*/
|
*/
|
||||||
package mage.sets.magic2014;
|
package mage.sets.magic2014;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.ObjectColor;
|
import mage.ObjectColor;
|
||||||
|
@ -105,6 +106,8 @@ class ElementalToken extends Token {
|
||||||
|
|
||||||
public ElementalToken() {
|
public ElementalToken() {
|
||||||
super("Elemental", "1/1 red Elemental creature");
|
super("Elemental", "1/1 red Elemental creature");
|
||||||
|
this.setOriginalExpansionSetCode("M14");
|
||||||
|
this.setTokenType(new Random().nextInt(2) + 1);
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color = ObjectColor.RED;
|
color = ObjectColor.RED;
|
||||||
subtype.add("Elemental");
|
subtype.add("Elemental");
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class PutOnLibrarySourceEffect extends OneShotEffect<PutOnLibrarySourceEf
|
||||||
sb.append(staticText);
|
sb.append(staticText);
|
||||||
} else {
|
} else {
|
||||||
// Put Champion of Stray Souls on top of your library from your graveyard
|
// Put Champion of Stray Souls on top of your library from your graveyard
|
||||||
sb.append("Put {this} on");
|
sb.append("Put {this} on ");
|
||||||
sb.append(onTop ? "top" : "the bottom").append(" of it's owner's library");
|
sb.append(onTop ? "top" : "the bottom").append(" of it's owner's library");
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|
|
@ -55,7 +55,7 @@ public enum CardRepository {
|
||||||
|
|
||||||
private static final String JDBC_URL = "jdbc:sqlite:db/cards.db";
|
private static final String JDBC_URL = "jdbc:sqlite:db/cards.db";
|
||||||
private static final String VERSION_ENTITY_NAME = "card";
|
private static final String VERSION_ENTITY_NAME = "card";
|
||||||
private static final long CARD_DB_VERSION = 20;
|
private static final long CARD_DB_VERSION = 21;
|
||||||
|
|
||||||
private final Random random = new Random();
|
private final Random random = new Random();
|
||||||
private Dao<CardInfo, Object> cardDao;
|
private Dao<CardInfo, Object> cardDao;
|
||||||
|
|
|
@ -47,8 +47,7 @@ public class ZombieToken extends Token {
|
||||||
super("Zombie", "2/2 black Zombie creature token");
|
super("Zombie", "2/2 black Zombie creature token");
|
||||||
this.setOriginalExpansionSetCode(expansionSetCode);
|
this.setOriginalExpansionSetCode(expansionSetCode);
|
||||||
if (expansionSetCode.equals("ISD")) {
|
if (expansionSetCode.equals("ISD")) {
|
||||||
Random random = new Random();
|
this.setTokenType(new Random().nextInt(3) + 1);
|
||||||
this.setTokenType(random.nextInt(3) + 1);
|
|
||||||
}
|
}
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
color = ObjectColor.BLACK;
|
color = ObjectColor.BLACK;
|
||||||
|
|
Loading…
Reference in a new issue