-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor needed: Support for objects having multiple names #12805
Comments
Spy Kit - (Gatherer) (Scryfall) (EDHREC)
|
It’s require to refactor “haveSameNames” usage — make sure it used with object param version, no strings only compare in cards/effects/abilities. Also it’s require to use cache inside new continues effect or object (depends on implementation) — e.g. do not use db requests for creature names search, query/build it only one time on first call and in synchronized method. It’s important cause names compare used all around and must be protected from multiple AI simulations calls (big db queries in AI simulations can eats all memory — searching all names is big query for xmage). BTW new effect applies to permanent, so no needs to store it in characteristics (e.g. no needs in cards) — permanent can store field like “hasAllCreatureNames” or like that. |
Currently, the only way for a MageObject to get more than 2 names at a time is for creatures equipped with Spy Kit, but I think it'd make more sense to have that be supported directly as part of the "names" object itself instead of attached to the card/permanent directly. Should definitely also clean up support for split cards' names. Might not be directly related, but it'd be nice if split cards had images while on the stack (of whichever half has been cast). Not sure if it's worth the effort, but being theoretically able to support the Unfinity name sticker mechanic might be worth considering in the design of the new name system in case we ever get around to adding that. It is technically Commander-legal, after all. |
in response to The code actually works for that currently - just no way from within the client to generate the image files. (I manually created an image file to test.) Same applies for Adventure spells. I created an issue for this #12910 |
This is one that's been a long time coming but the introduction of the Room mechanic is gonna make this necessary. We're gonna need to refactor how names are handled in a way that resembles the way we handle subtypes, plus allow for cards like [[Spy Kit]]. I'm gonna start working on this unless anyone else really wants to do it.
The text was updated successfully, but these errors were encountered: