Skip to content

Commit

Permalink
Add LCC token images
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleCrowbar committed Feb 26, 2024
1 parent 6ead910 commit b847e9d
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,24 @@ public class ScryfallImageSupportTokens {
put("LCI/Vampire", "https://api.scryfall.com/cards/tlci/4/en?format=image");
put("LCI/Vampire Demon", "https://api.scryfall.com/cards/tlci/15/en?format=image");

// LCC
put("LCC/Beast", "https://api.scryfall.com/cards/tlcc/8/en?format=image");
put("LCC/Bird", "https://api.scryfall.com/cards/tlcc/2/en?format=image");
put("LCC/Blood", "https://api.scryfall.com/cards/tlcc/15/en?format=image");
put("LCC/Boar", "https://api.scryfall.com/cards/tlcc/9/en?format=image");
put("LCC/Dinosaur", "https://api.scryfall.com/cards/tlcc/10/en?format=image");
put("LCC/Dinosaur Beast", "https://api.scryfall.com/cards/tlcc/11/en?format=image");
put("LCC/Elephant", "https://api.scryfall.com/cards/tlcc/12/en?format=image");
put("LCC/Frog Lizard", "https://api.scryfall.com/cards/tlcc/13/en?format=image");
put("LCC/Merfolk", "https://api.scryfall.com/cards/tlcc/3/en?format=image");
put("LCC/Pirate", "https://api.scryfall.com/cards/tlcc/5/en?format=image");
put("LCC/Ragavan", "https://api.scryfall.com/cards/tlcc/7/en?format=image");
put("LCC/Salamander Warrior", "https://api.scryfall.com/cards/tlcc/4/en?format=image");
put("LCC/Shapeshifter", "https://api.scryfall.com/cards/tlcc/1/en?format=image");
put("LCC/Emblem Sorin", "https://api.scryfall.com/cards/tlcc/16/en?format=image");
put("LCC/Vampire/1", "https://api.scryfall.com/cards/tlcc/6/en?format=image");
put("LCC/Vampire/2", "https://api.scryfall.com/cards/tlcc/14/en?format=image");

// generate supported sets
supportedSets.clear();
for (String cardName : this.keySet()) {
Expand Down
4 changes: 2 additions & 2 deletions Mage.Sets/src/mage/cards/a/AmphinMutineer.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import mage.filter.predicate.Predicates;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.SalamnderWarriorToken;
import mage.game.permanent.token.SalamanderWarriorToken;
import mage.players.Player;
import mage.target.TargetPermanent;

Expand Down Expand Up @@ -89,7 +89,7 @@ public boolean apply(Game game, Ability source) {
return false;
}
player.moveCards(permanent, Zone.EXILED, source, game);
new SalamnderWarriorToken().putOntoBattlefield(1, game, source, player.getId());
new SalamanderWarriorToken().putOntoBattlefield(1, game, source, player.getId());
return true;
}
}
4 changes: 2 additions & 2 deletions Mage.Sets/src/mage/cards/g/GorMuldrakAmphinologist.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import mage.filter.StaticFilters;
import mage.game.Controllable;
import mage.game.Game;
import mage.game.permanent.token.SalamnderWarriorToken;
import mage.game.permanent.token.SalamanderWarriorToken;
import mage.game.permanent.token.Token;
import mage.util.CardUtil;

Expand Down Expand Up @@ -99,7 +99,7 @@ public boolean apply(Game game, Ability source) {
.forEach(uuid -> creatureMap.compute(uuid, CardUtil::setOrIncrementValue));
int minValue = creatureMap.values().stream().mapToInt(x -> x).min().orElse(0);
minValue = Math.max(minValue, 0);
Token token = new SalamnderWarriorToken();
Token token = new SalamanderWarriorToken();
for (Map.Entry<UUID, Integer> entry : creatureMap.entrySet()) {
if (entry.getValue() > minValue) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
/**
* @author TheElk801
*/
public final class SalamnderWarriorToken extends TokenImpl {
public final class SalamanderWarriorToken extends TokenImpl {

public SalamnderWarriorToken() {
public SalamanderWarriorToken() {
super("Salamander Warrior Token", "4/3 blue Salamander Warrior creature token");
cardType.add(CardType.CREATURE);
color.setBlue(true);
Expand All @@ -19,11 +19,11 @@ public SalamnderWarriorToken() {
toughness = new MageInt(3);
}

private SalamnderWarriorToken(final SalamnderWarriorToken token) {
private SalamanderWarriorToken(final SalamanderWarriorToken token) {
super(token);
}

public SalamnderWarriorToken copy() {
return new SalamnderWarriorToken(this);
public SalamanderWarriorToken copy() {
return new SalamanderWarriorToken(this);
}
}
18 changes: 18 additions & 0 deletions Mage/src/main/resources/tokens-database.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
|Generate|EMBLEM:CMM|Emblem Narset|||NarsetOfTheAncientWayEmblem|
|Generate|EMBLEM:CMM|Emblem Nixilis|||ObNixilisOfTheBlackOathEmblem|
|Generate|EMBLEM:CMM|Emblem Teferi|||TeferiTemporalArchmageEmblem|
|Generate|EMBLEM:LCC|Emblem Sorin|||SorinLordOfInnistradEmblem|

# ALL PLANES
# Usage hints:
Expand Down Expand Up @@ -2121,3 +2122,20 @@
|Generate|TOK:LCI|Treasure|||TreasureToken|
|Generate|TOK:LCI|Vampire|||IxalanVampireToken|
|Generate|TOK:LCI|Vampire Demon|||VampireDemonToken|

# LCC
|Generate|TOK:LCC|Beast|||BeastToken|
|Generate|TOK:LCC|Bird|||BlueBirdToken|
|Generate|TOK:LCC|Blood|||BloodToken|
|Generate|TOK:LCC|Boar|||Boar2Token|
|Generate|TOK:LCC|Dinosaur|||DinosaurToken|
|Generate|TOK:LCC|Dinosaur Beast|||DinosaurBeastToken|
|Generate|TOK:LCC|Elephant|||ElephantToken|
|Generate|TOK:LCC|Frog Lizard|||FrogLizardToken|
|Generate|TOK:LCC|Merfolk|||MerfolkToken|
|Generate|TOK:LCC|Pirate|||PirateToken|
|Generate|TOK:LCC|Ragavan|||RagavanToken|
|Generate|TOK:LCC|Salamander Warrior|||SalamanderWarriorToken|
|Generate|TOK:LCC|Shapeshifter|||Shapeshifter32Token|
|Generate|TOK:LCC|Vampire|1||SorinLordOfInnistradVampireToken|
|Generate|TOK:LCC|Vampire|2||EdgarMarkovsCoffinVampireToken|

0 comments on commit b847e9d

Please sign in to comment.