Re: Cost Reorganization
of course, the definitive solution would be to use vector graphics for all symbols and have them anti-aliased at run time. except for the card images, resizing would always look perfect.


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=5223

Which vector formats are supported in java?Braids wrote:of course, the definitive solution would be to use vector graphics for all symbols and have them anti-aliased at run time. except for the card images, resizing would always look perfect.![]()
it looks like SVG is an XML format that certain Java libraries can handle alongside the standard swing GUI toolkit.moomarc wrote:Which vector formats are supported in java?Braids wrote:of course, the definitive solution would be to use vector graphics for all symbols and have them anti-aliased at run time. except for the card images, resizing would always look perfect.![]()
I can look into it, but I'm not sure. X can't be 0. Should be pretty simple, since I can cancel a spell that doesn't pay X properly, but Paying Mana doesn't actually occur in Cost, it happens in Input_PayManaCostUtil (which is overly complex and someone should refactor it). This would basically need to check for Mana limitations and apply them to the possible valid colors.ArsenalNut wrote:Sol,
How hard would it be to add color restrictions to the x cost? I was looking at Consume Spirit and the only thing keeping it from being scriptable is the black mana restriction for the x cost. I found six other cards the have similar restrictions.
`ArsenalNut wrote:I've noticed that the summoning sickness icon doesn't seem to show up until I have three or four permanents on the battlefield. Is this a related issue?
Edit: My screen resolution is set at 1900x1080
I'm not sure. I always thought CostChange didn't work very consistently. (And was secretly hoping it would be nominated for the next Static Ability). I can take a look at some point and see what it's trying to do.Sloth wrote:Sorry to bring up this thread again, but I noticed today that the CostChange keyword doesn't work anymore. Could it be rellated to you're work Sol?
I think it's the last keyword BeachedAs left us behind with. It definitely has to be rewritten at some point.friarsol wrote:I'm not sure. I always thought CostChange didn't work very consistently. (And was secretly hoping it would be nominated for the next Static Ability). I can take a look at some point and see what it's trying to do.Sloth wrote:Sorry to bring up this thread again, but I noticed today that the CostChange keyword doesn't work anymore. Could it be rellated to you're work Sol?
if (mana != "0") { // 11/15/10 use getTotalMana() to account for X reductionclass ExampleProgram {
public static void main(String[] args) throws java.io.IOException {
System.out.print("Type s: ");
char c = (char) System.in.read();
String s = new String(new char[]{c});
System.out.println("I'm a Simple Program");
System.out.println( "\"0\".equals(s) => " + "0".equals(s));
System.out.println( "\"0\" == s => "+ ("0" == s));
}
}Ah, I missed the ! sign when switching to the .equals() statement. I just tested it and it works again. The only thing that doesn't work is for cards with ManaCost = 0. This is because no Mana element exists in the cost currently.Sloth wrote:I've tested in R10278 and CostChange still isn't applied (tested Sphere of Resistance, Frogmite and Animar, Soul of Elements).