New "Produce$ Any" feature for AbilityMana
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
23 posts
• Page 2 of 2 • 1, 2
Re: New "Produce$ Any" feature for AbilityMana
by slapshot5 » 21 Jan 2012, 17:51
One other thing that popped up after this is related to paying multiple part of a single color from the mana pool.
Try this:
1. Sacrifice your Black Lotus and add W W W to your mana pool.
2. Try to cast Serra Angel from your hand
--notice you have to click White Mana twice to pay the cost.
Previously, clicking White Mana once would pay the W W part of Serra Angel 's cost.
-slapshot5
Try this:
1. Sacrifice your Black Lotus and add W W W to your mana pool.
2. Try to cast Serra Angel from your hand
--notice you have to click White Mana twice to pay the cost.
Previously, clicking White Mana once would pay the W W part of Serra Angel 's cost.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: New "Produce$ Any" feature for AbilityMana
by ArsenalNut » 21 Jan 2012, 20:21
I had the exact opposite experience testing this. I created a test deck with just Black Lotus and Serra Angel. I cast the Black Lotus and crack it forslapshot5 wrote:One other thing that popped up after this is related to paying multiple part of a single color from the mana pool.
Try this:
1. Sacrifice your Black Lotus and add W W W to your mana pool.
2. Try to cast Serra Angel from your hand
--notice you have to click White Mana twice to pay the cost.
Previously, clicking White Mana once would pay the W W part of Serra Angel 's cost.
-slapshot5
. Cast Serra Angel and click the white mana pool to pay. Cost is now
. It used the white mana to pay some of the colorless cost too. This would really suck if you intended to use the third white mana to cast a different spell.I dug into the code some. I found that the method ManaPool.subtractOne is a bit of a misnomer. If you have a source that creates more than one mana like Black Lotus, it will use as much of that source as is needed. Most mana sources only produce one mana so that's why you have click the pool multiple times.
If I had to choose which behavior I like better, I would prefer to click for each color so that I have control.
How would you prefer the mana pool to work? Here's what I was thinking
1) Click a color and cost has that color, pay as much of that color as the mana pool can and do not pay any colorless costs
2) Click a color and cost does not have that color, pay 1 colorless mana only
So many cards, so little time
-

ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: New "Produce$ Any" feature for AbilityMana
by jeffwadsworth » 21 Jan 2012, 20:59
I also prefer to choose each mana myself. I thought the new behavior was an intentional enhancement.ArsenalNut wrote:I had the exact opposite experience testing this. I created a test deck with just Black Lotus and Serra Angel. I cast the Black Lotus and crack it forslapshot5 wrote:One other thing that popped up after this is related to paying multiple part of a single color from the mana pool.
Try this:
1. Sacrifice your Black Lotus and add W W W to your mana pool.
2. Try to cast Serra Angel from your hand
--notice you have to click White Mana twice to pay the cost.
Previously, clicking White Mana once would pay the W W part of Serra Angel 's cost.
-slapshot5![]()
![]()
. Cast Serra Angel and click the white mana pool to pay. Cost is now
. It used the white mana to pay some of the colorless cost too. This would really suck if you intended to use the third white mana to cast a different spell.
I dug into the code some. I found that the method ManaPool.subtractOne is a bit of a misnomer. If you have a source that creates more than one mana like Black Lotus, it will use as much of that source as is needed. Most mana sources only produce one mana so that's why you have click the pool multiple times.
If I had to choose which behavior I like better, I would prefer to click for each color so that I have control.
How would you prefer the mana pool to work? Here's what I was thinking
1) Click a color and cost has that color, pay as much of that color as the mana pool can and do not pay any colorless costs
2) Click a color and cost does not have that color, pay 1 colorless mana only
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: New "Produce$ Any" feature for AbilityMana
by slapshot5 » 22 Jan 2012, 00:07
My bad. It differs if there are other colors in you mana pool as well.
If use Dev Mode then Generate Mana, then cast Serra Angel, it will work as I describe having to click W twice).
With the case I describe, I would like it to pay the W W, but not any of the 3. It not working that way in either case.
-slapshot5
If use Dev Mode then Generate Mana, then cast Serra Angel, it will work as I describe having to click W twice).
With the case I describe, I would like it to pay the W W, but not any of the 3. It not working that way in either case.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: New "Produce$ Any" feature for AbilityMana
by Sloth » 22 Jan 2012, 07:42
It little more precise:
1) Click a color and cost has that color, pay as much of that color as the mana pool can and do not pay any other costs.
2) Click a color and cost does only have a hybrid of that color, pay 1 hybrid mana only.
3) Click a color and cost does only have a phyrexian of that color, pay 1 phyrexian mana only.
4) Click a color and cost does not have that color, pay 1 colorless mana only.
Basically every mana part that could be paid some other way should be paid one mana per click.
1) Click a color and cost has that color, pay as much of that color as the mana pool can and do not pay any other costs.
2) Click a color and cost does only have a hybrid of that color, pay 1 hybrid mana only.
3) Click a color and cost does only have a phyrexian of that color, pay 1 phyrexian mana only.
4) Click a color and cost does not have that color, pay 1 colorless mana only.
Basically every mana part that could be paid some other way should be paid one mana per click.
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: New "Produce$ Any" feature for AbilityMana
by Roujin » 22 Jan 2012, 14:39
What about making it always pay only 1 mana and introducing right-click or shift-click to make it pay as much mana as possible?
More power to the user: left click = I want to have precise control; right click = I don't care, just pay the cost.
More power to the user: left click = I want to have precise control; right click = I don't care, just pay the cost.
Re: New "Produce$ Any" feature for AbilityMana
by slapshot5 » 22 Jan 2012, 15:57
I like it, but I would argue for the other way around. Left click (default) - just pay it. Right click - give me precise control.Roujin wrote:More power to the user: left click = I want to have precise control; right click = I don't care, just pay the cost.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: New "Produce$ Any" feature for AbilityMana
by Doublestrike » 24 Jan 2012, 00:42
+1slapshot5 wrote:I like it, but I would argue for the other way around. Left click (default) - just pay it. Right click - give me precise control.
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
23 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 14 guests