Re: Forge version 1.5.40
@ Krazy: Thanks! I think I got it right then! 
- Agetian
- Agetian
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=17217
friarsol wrote:Is there a release coming today?
Three new quest preferences (Playset Size: Basic Lands, Playset Size: Any Number, and Playset Size) have been added to control the number of cards to keep before selling extras in quest mode. One is for basic lands, one is for "unlimited" cards (Relentless Rats and Shadowborn Apostle), and the last one is for all other cards. This is mostly useful when playing for antes and you want to keep an extra couple of cards on hand, just in case, or if you want to keep fewer copies of basic lands around.
Card images for the latest sets are now available for download, including Tempest Remastered and Modern Masters 2015. All images have also been moved to a new server for increased reliability and performance and many previously missing images have been added. There are still a few images missing in Forge and rectifying that is an ongoing effort.
I would say that ideally there should be two kinds of ID -- physical ID that is tied to the card as such and internal ID that can be invisible to players and that simply identifies an unique object. That could simply be a 4-byte integer incremented by one whenever a new object is created.Agetian wrote:A little bit of a brainstorm: I'm looking into the way to make the game consider each object returning from graveyard a new object. So far, the easiest and the most logical way of doing it that I've devised is to create a copy of the card and assign a new ID to it. That being said, so far we have deliberately interpreted the card ID as something intrinsic to it that doesn't ever change in the course of the game. However, the card ID is also something that identifies a card as a particular unique object, and distinguishing a new object compared to the old object by modifying its ID seems logical. I have a few questions:
1) Is it viable, in your opinion, to alter the card ID when it's recreated as a part of returning from graveyard (to the battlefield, in particular) in order to distinguish it as a new object?
2) If it is, do you know anything that this type of code (expressed simply as something like "Card copied = CardFactory.copyCard(c, true)") can potentially break?
3) If it's not a viable solution to the issue, do you have any other ideas as to how this might be implemented in a better way?
P.S. A simple Sun Titan + Animate Dead + Angelic Renewal test indicates that altering the card's ID to indicate that it's now a new object definitely works. That being said, I haven't tested anything else yet.
P.P.S. I'm running some tests now but if this is ever committed, then it'll be committed post-1.5.40 because of a big chance of potential break-ups.
- Agetian
I think the issue is that when AbilityUtils.getDefinedCards() is pulling the cards that are remembered it doesn't take them as they are remembered, it's taking their current state.Agetian wrote:It's an interesting idea to check the timestamps. Are the timestamps recorded on spell abilities themselves (that are on stack)? (by the way, if you have some time and if you have an idea as to how to potentially work around it, would you like to try it?)
- Agetian