docs: added some comments about tokens, verify, test mode, etc

This commit is contained in:
Oleg Agafonov 2023-05-09 12:27:18 +04:00
parent 7d9d037416
commit 1f4dfd08ce
6 changed files with 19 additions and 2 deletions

View file

@ -23,9 +23,13 @@ import java.util.concurrent.TimeUnit;
/** /**
* Render mode: MTGO * Render mode: MTGO
*
*/ */
public class CardPanelRenderModeMTGO extends CardPanel { public class CardPanelRenderModeMTGO extends CardPanel {
//
// https://www.mtg.onl/evolution-of-magic-token-card-frame-design/
// Map of generated images // Map of generated images
private final static Cache<ImageKey, BufferedImage> IMAGE_CACHE = CacheBuilder private final static Cache<ImageKey, BufferedImage> IMAGE_CACHE = CacheBuilder
.newBuilder() .newBuilder()

View file

@ -55,6 +55,7 @@ import static org.mage.card.arcane.ManaSymbols.getSizedManaSymbol;
* @author stravant@gmail.com, JayDi85 * @author stravant@gmail.com, JayDi85
* <p> * <p>
* Base rendering class for new border cards * Base rendering class for new border cards
* M15 frame style, for another styles see https://www.mtg.onl/evolution-of-magic-token-card-frame-design/
*/ */
public class ModernCardRenderer extends CardRenderer { public class ModernCardRenderer extends CardRenderer {

View file

@ -10,6 +10,10 @@ import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* * TODO: web site reworked and tokens doesn't work anymore,
* * but it can be used to download a proxy tokens (tokens that was miss by wizards),
* * see https://www.mtg.onl/mtg-missing-tokens/
*
* @author spjspj * @author spjspj
*/ */
public enum AltMtgOnlTokensImageSource implements CardImageSource { public enum AltMtgOnlTokensImageSource implements CardImageSource {

View file

@ -10,6 +10,10 @@ import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* TODO: web site reworked and tokens doesn't work anymore,
* but it can be used to download a proxy tokens (tokens that was miss by wizards),
* see https://www.mtg.onl/mtg-missing-tokens/
*
* @author spjspj * @author spjspj
*/ */
public enum MtgOnlTokensImageSource implements CardImageSource { public enum MtgOnlTokensImageSource implements CardImageSource {

View file

@ -67,10 +67,11 @@ public final class Main {
public static final PluginClassLoader classLoader = new PluginClassLoader(); public static final PluginClassLoader classLoader = new PluginClassLoader();
private static TransporterServer server; private static TransporterServer server;
// special test mode: // Special test mode:
// - fast game buttons; // - fast game buttons;
// - cheat commands; // - cheat commands;
// - no deck validation; // - no deck validation;
// - load any deck in sideboarding;
// - simplified registration and login (no password check); // - simplified registration and login (no password check);
// - debug main menu for GUI and rendering testing (must use -debug arg for client app); // - debug main menu for GUI and rendering testing (must use -debug arg for client app);
private static boolean testMode; private static boolean testMode;
@ -412,7 +413,9 @@ public final class Main {
@Override @Override
public Object invoke(final InvocationRequest invocation) throws Throwable { public Object invoke(final InvocationRequest invocation) throws Throwable {
// Called for every client connecting to the server (after add Listener) // called for every client connecting to the server (after add Listener)
// save client ip-address
String sessionId = invocation.getSessionId(); String sessionId = invocation.getSessionId();
Map map = invocation.getRequestPayload(); Map map = invocation.getRequestPayload();
String host; String host;

View file

@ -1376,6 +1376,7 @@ public class VerifyCardDataTest {
// Possible reasons: // Possible reasons:
// - promo sets with cards without tokens (nothing to do with it) // - promo sets with cards without tokens (nothing to do with it)
// - miss set from tok-data (must add new set to tok-data and scryfall download) // - miss set from tok-data (must add new set to tok-data and scryfall download)
// - wizards miss some paper printed token, see https://www.mtg.onl/mtg-missing-tokens/
warningsList.add("info, set's cards uses tokens but tok-data haven't it: " warningsList.add("info, set's cards uses tokens but tok-data haven't it: "
+ setCode + " - " + sourceCards.stream().map(MageObject::getName).collect(Collectors.joining(", "))); + setCode + " - " + sourceCards.stream().map(MageObject::getName).collect(Collectors.joining(", ")));
} else { } else {