refactor: better images download naming and code format (related to #12627)

This commit is contained in:
Oleg Agafonov 2024-08-15 09:01:57 +04:00
parent e7585e8d95
commit a69ae2afae
8 changed files with 16 additions and 13 deletions

View file

@ -88,7 +88,7 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
SCRYFALL_BIG("2a. scryfall.com - BIG: high quality (~15 GB)", ScryfallImageSource.getInstance()), SCRYFALL_BIG("2a. scryfall.com - BIG: high quality (~15 GB)", ScryfallImageSource.getInstance()),
SCRYFALL_NORM("2b. scryfall.com - normal: good quality (~10 GB)", ScryfallImageSourceNormal.getInstance()), SCRYFALL_NORM("2b. scryfall.com - normal: good quality (~10 GB)", ScryfallImageSourceNormal.getInstance()),
SCRYFALL_SMALL("2c. scryfall.com - small: low quality, unreadable text (~1.5 GB)", ScryfallImageSourceSmall.getInstance()), SCRYFALL_SMALL("2c. scryfall.com - small: low quality, unreadable text (~1.5 GB)", ScryfallImageSourceSmall.getInstance()),
GRAB_BAG("3. GrabBag - Arena Tutorial cards, unofficial STAR WARS cards and tokens", GrabbagImageSource.instance), GRAB_BAG("3. GrabBag - unofficial STAR WARS + Arena Tutorial cards", GrabbagImageSource.instance),
COPYPASTE("4. Experimental - copy and paste image URLs", CopyPasteImageSource.instance); // TODO: need rework for user friendly GUI COPYPASTE("4. Experimental - copy and paste image URLs", CopyPasteImageSource.instance); // TODO: need rework for user friendly GUI
private final String text; private final String text;

View file

@ -12,11 +12,12 @@ import mage.filter.predicate.mageobject.ToughnessPredicate;
import java.util.UUID; import java.util.UUID;
/** /**
* @author JayDi85
@author JayDi85*/ */
public final class BlindingRadiance extends CardImpl { public final class BlindingRadiance extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterOpponentsCreaturePermanent("creatures your opponents control with toughness 2 or less"); private static final FilterCreaturePermanent filter = new FilterOpponentsCreaturePermanent("creatures your opponents control with toughness 2 or less");
static { static {
filter.add(new ToughnessPredicate(ComparisonType.FEWER_THAN, 3)); filter.add(new ToughnessPredicate(ComparisonType.FEWER_THAN, 3));
} }

View file

@ -9,8 +9,8 @@ import mage.constants.SubType;
import java.util.UUID; import java.util.UUID;
/** /**
* @author JayDi85
@author JayDi85*/ */
public final class GoblinBruiser extends CardImpl { public final class GoblinBruiser extends CardImpl {
public GoblinBruiser(UUID ownerId, CardSetInfo setInfo) { public GoblinBruiser(UUID ownerId, CardSetInfo setInfo) {

View file

@ -12,8 +12,8 @@ import mage.constants.TargetController;
import java.util.UUID; import java.util.UUID;
/** /**
* @author JayDi85
@author JayDi85*/ */
public final class OgrePainbringer extends CardImpl { public final class OgrePainbringer extends CardImpl {
public OgrePainbringer(UUID ownerId, CardSetInfo setInfo) { public OgrePainbringer(UUID ownerId, CardSetInfo setInfo) {

View file

@ -9,8 +9,8 @@ import mage.constants.SubType;
import java.util.UUID; import java.util.UUID;
/** /**
* @author JayDi85
@author JayDi85*/ */
public final class TitanicPelagosaur extends CardImpl { public final class TitanicPelagosaur extends CardImpl {
public TitanicPelagosaur(UUID ownerId, CardSetInfo setInfo) { public TitanicPelagosaur(UUID ownerId, CardSetInfo setInfo) {

View file

@ -1,7 +1,6 @@
package mage.cards.t; package mage.cards.t;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.keyword.ReachAbility; import mage.abilities.keyword.ReachAbility;
import mage.abilities.keyword.VigilanceAbility; import mage.abilities.keyword.VigilanceAbility;
@ -10,14 +9,15 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType; import mage.constants.SubType;
import java.util.UUID;
/** /**
*
* @author Svyatoslav28 * @author Svyatoslav28
*/ */
public final class TreetopRecluse extends CardImpl { public final class TreetopRecluse extends CardImpl {
public TreetopRecluse(UUID ownerId, CardSetInfo setInfo) { public TreetopRecluse(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{G}");
this.subtype.add(SubType.SPIDER); this.subtype.add(SubType.SPIDER);
this.power = new MageInt(1); this.power = new MageInt(1);
this.toughness = new MageInt(6); this.toughness = new MageInt(6);

View file

@ -40,6 +40,5 @@ public final class ArenaNewPlayerExperienceExtras extends ExpansionSet {
cards.add(new SetCardInfo("Take Vengeance", 13, Rarity.COMMON, mage.cards.t.TakeVengeance.class)); cards.add(new SetCardInfo("Take Vengeance", 13, Rarity.COMMON, mage.cards.t.TakeVengeance.class));
cards.add(new SetCardInfo("Volcanic Dragon", 45, Rarity.UNCOMMON, mage.cards.v.VolcanicDragon.class)); cards.add(new SetCardInfo("Volcanic Dragon", 45, Rarity.UNCOMMON, mage.cards.v.VolcanicDragon.class));
cards.add(new SetCardInfo("Waterknot", 22, Rarity.COMMON, mage.cards.w.Waterknot.class)); cards.add(new SetCardInfo("Waterknot", 22, Rarity.COMMON, mage.cards.w.Waterknot.class));
} }
} }

View file

@ -6,6 +6,9 @@ import mage.constants.Rarity;
import mage.constants.SetType; import mage.constants.SetType;
/** /**
* Unofficial set with removed MTGA tutorial cards
* (it was introduced and later removed from Arena New Player Experience Extras)
*
* @author Svyatoslav28 * @author Svyatoslav28
*/ */
public final class ArenaTutorialCards extends ExpansionSet { public final class ArenaTutorialCards extends ExpansionSet {