It is currently 29 Oct 2025, 12:30
   
Text Size

New "Produce$ Any" feature for AbilityMana

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: New "Produce$ Any" feature for AbilityMana

Postby 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
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

Postby ArsenalNut » 21 Jan 2012, 20:21

slapshot5 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
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 for {W} {W} {W}. Cast Serra Angel and click the white mana pool to pay. Cost is now {2}. 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
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: New "Produce$ Any" feature for AbilityMana

Postby jeffwadsworth » 21 Jan 2012, 20:59

ArsenalNut wrote:
slapshot5 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
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 for {W} {W} {W}. Cast Serra Angel and click the white mana pool to pay. Cost is now {2}. 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
I also prefer to choose each mana myself. I thought the new behavior was an intentional enhancement.
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

Postby 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
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

Postby 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.
User avatar
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

Postby 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.
Roujin
 
Posts: 75
Joined: 01 Nov 2011, 21:58
Has thanked: 6 times
Been thanked: 13 times

Re: New "Produce$ Any" feature for AbilityMana

Postby slapshot5 » 22 Jan 2012, 15:57

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.
I like it, but I would argue for the other way around. Left click (default) - just pay it. Right click - give me precise control.

-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

Postby Doublestrike » 24 Jan 2012, 00:42

slapshot5 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.
+1
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 14 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 14 guests

Login Form