mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
docs: added some comments about tokens, verify, test mode, etc
This commit is contained in:
parent
7d9d037416
commit
1f4dfd08ce
6 changed files with 19 additions and 2 deletions
|
@ -23,9 +23,13 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
/**
|
||||
* Render mode: MTGO
|
||||
*
|
||||
*/
|
||||
public class CardPanelRenderModeMTGO extends CardPanel {
|
||||
|
||||
//
|
||||
// https://www.mtg.onl/evolution-of-magic-token-card-frame-design/
|
||||
|
||||
// Map of generated images
|
||||
private final static Cache<ImageKey, BufferedImage> IMAGE_CACHE = CacheBuilder
|
||||
.newBuilder()
|
||||
|
|
|
@ -55,6 +55,7 @@ import static org.mage.card.arcane.ManaSymbols.getSizedManaSymbol;
|
|||
* @author stravant@gmail.com, JayDi85
|
||||
* <p>
|
||||
* 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 {
|
||||
|
||||
|
|
|
@ -10,6 +10,10 @@ import java.util.List;
|
|||
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
|
||||
*/
|
||||
public enum AltMtgOnlTokensImageSource implements CardImageSource {
|
||||
|
|
|
@ -10,6 +10,10 @@ import java.util.List;
|
|||
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
|
||||
*/
|
||||
public enum MtgOnlTokensImageSource implements CardImageSource {
|
||||
|
|
|
@ -67,10 +67,11 @@ public final class Main {
|
|||
public static final PluginClassLoader classLoader = new PluginClassLoader();
|
||||
private static TransporterServer server;
|
||||
|
||||
// special test mode:
|
||||
// Special test mode:
|
||||
// - fast game buttons;
|
||||
// - cheat commands;
|
||||
// - no deck validation;
|
||||
// - load any deck in sideboarding;
|
||||
// - simplified registration and login (no password check);
|
||||
// - debug main menu for GUI and rendering testing (must use -debug arg for client app);
|
||||
private static boolean testMode;
|
||||
|
@ -412,7 +413,9 @@ public final class Main {
|
|||
|
||||
@Override
|
||||
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();
|
||||
Map map = invocation.getRequestPayload();
|
||||
String host;
|
||||
|
|
|
@ -1376,6 +1376,7 @@ public class VerifyCardDataTest {
|
|||
// Possible reasons:
|
||||
// - 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)
|
||||
// - 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: "
|
||||
+ setCode + " - " + sourceCards.stream().map(MageObject::getName).collect(Collectors.joining(", ")));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue