Forge version 1.5.11

Tentative target release date:
.

High Quality Resources for Collectible Card Games
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=13258
20 Forest|7ED|1
20 Forest|7ED|2
20 Forest|7ED|3
CardManager catalogManager = new CardManager(false); // ONLY set this to 'true' if you restore the "Show Unique Cards Only" toggle in the card display options. If you remove the toggle altogether, leave this at false.
CardManager deckManager = new CardManager(false); // LEAVE this at 'false'. Setting it to 'true' will cause confusion with some cards (actually in the deck) not being shown in the deck editor.
It looks and works great! I'm posting some observations over in the UI discussion thread.drdev wrote:Let me know what you think and if you encounter any issues with it.
Thanks.
-Dan
My post in the UI thread was in regards to drdev's changes, but I'm really excited about what you're doing too!Agetian wrote:@ Diogenes: Thanks! Alrighty!
It's not GUI data that's being cached though, it's an actual property of the Deck. That's like saying we shouldn't be caching the card list and should look it up from the filesystem each time you want to iterate a deck's cards. I'm really trying to go for good performance here since these properties are looked at frequently by ItemManager code, and I don't understand your reasoning for saying it's not ok. The fact that these properties are currently only accessed from GUI code does not make it GUI code.Max mtg wrote:Does not the newest format always include the older ones? I.e. if a deck is legal in Modern, it's also legal in Legacy and Vintage.
PS: Core classes are not a suitable place to cache data (like color of deck or its format legality). So I've cleaned up fields and methods in Deck, ManaCost and their neighbours.
All I can offer is my opinion on how this should work, if that's alright. I like how you're handling "20 Forest|7ED" and I think that's in its perfect place.
Would it be possible (with Xitax's permission) to use the code from his automated set-assignment tool? I feel this would be the optimal behavior for unspecified user-created decks (just process them as they're loaded, perhaps with an option to over-write the file,) and while I don't know if the code is compatible it's complete and works well.Agetian wrote:(I'm still unsure whether it's best to randomize the set for the preconstructed decks as well or not... for now I'm using the default latest set; fully random color decks still take cards from different sets, not only from the latest set.). This change also means that preconstructed (non-random) decks in Constructed mode will now have randomized card art unless a specific card art index is requested in the deck file.
Not sure if that algorithm was Xitax's ideaDiogenes wrote:Would it be possible (with Xitax's permission) to use the code from his automated set-assignment tool? I feel this would be the optimal behavior for unspecified user-created decks (just process them as they're loaded, perhaps with an option to over-write the file,) and while I don't know if the code is compatible it's complete and works well.