It is currently 13 Aug 2025, 19:41
   
Text Size

AbilityFactory TODO list

Post MTG Forge Related Programming Questions Here

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

Re: AbilityFactory TODO list

Postby slapshot5 » 10 Jun 2011, 21:50

Added an AF for RemoveCounterAll. I think Heartmender is the only thing that would use it right now.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby Sloth » 19 Jun 2011, 21:25

I'm working on SacrificeAll (for All Is Dust and Yukora, the Prisoner).
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: AbilityFactory TODO list

Postby slapshot5 » 27 Jun 2011, 00:46

For the DelayedTrigger AF, I see it is currently only for drawbacks. If I add a getAbility() to that, could it be used for things like Transluminant? Is this desirable, or is there a different way things like that should be done.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby friarsol » 27 Jun 2011, 01:04

slapshot5 wrote:For the DelayedTrigger AF, I see it is currently only for drawbacks. If I add a getAbility() to that, could it be used for things like Transluminant? Is this desirable, or is there a different way things like that should be done.
I think that would be the right way to go for that card. I doubt there are many cards that have similar effects. I can't think of any Spells that have delayed abilities, but I wouldn't be surprised if they exist.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AbilityFactory TODO list

Postby slapshot5 » 27 Jun 2011, 01:15

Not sure about Spells. I'll add spells too, at the very least, for completeness.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby slapshot5 » 28 Jun 2011, 00:45

Added AF_Protection. I'm sure there is room for improvement not that this is split off from AF_Pump.
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby friarsol » 28 Jun 2011, 00:50

slapshot5 wrote:Added AF_Protection. I'm sure there is room for improvement not that this is split off from AF_Pump.
Awesome. Didn't you say you were going to be less busy since you just got a new job?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AbilityFactory TODO list

Postby slapshot5 » 28 Jun 2011, 01:37

friarsol wrote:
slapshot5 wrote:Added AF_Protection. I'm sure there is room for improvement not that this is split off from AF_Pump.
Awesome. Didn't you say you were going to be less busy since you just got a new job?
That's what lunch breaks are for. :D
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby friarsol » 28 Jun 2011, 12:20

slapshot5 wrote:That's what lunch breaks are for. :D
I think we should change how the options work for Protection. The first parameter would be "Gains" or some such, and this would be a list of Colors (or any other type of protection). If it's listed as "Choice" then there also will be a "Choices" parameter with a comma-delimited list to choose from. This would allow us to more easily give access to things that are Colors or Artifacts. We can probably have Choices allow for "Colors" which will basically expand to all 5 the Colors.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AbilityFactory TODO list

Postby slapshot5 » 28 Jun 2011, 12:30

friarsol wrote:I think we should change how the options work for Protection. The first parameter would be "Gains" or some such, and this would be a list of Colors (or any other type of protection). If it's listed as "Choice" then there also will be a "Choices" parameter with a comma-delimited list to choose from. This would allow us to more easily give access to things that are Colors or Artifacts. We can probably have Choices allow for "Colors" which will basically expand to all 5 the Colors.
Yeah, I just wanted to get it working as close to AF_Pump as I could to start. It's much less daunting for people to tweak it than add the whole AF.

I thought there was a card somewhere where it could get protection from a choice of 1 of 4 of the 5 colors, and I wasn't sure about the best way to work that in. But that should work pretty well with Gains and Choice parameters.

The AI combat checks need lots of work too:
1) checking for specific colors to gain protection from
2) generalization (or just a different check) for things like "Protection from Dragons" or whatever things there are like that out there.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby slapshot5 » 29 Jun 2011, 00:22

friarsol wrote:I think we should change how the options work for Protection. The first parameter would be "Gains" or some such, and this would be a list of Colors (or any other type of protection). If it's listed as "Choice" then there also will be a "Choices" parameter with a comma-delimited list to choose from. This would allow us to more easily give access to things that are Colors or Artifacts. We can probably have Choices allow for "Colors" which will basically expand to all 5 the Colors.
I've submitted changes to make this so. Choices will accept "AnyColor" to automagically prompt for 1 of the 5 colors. Wiki documentation is on the way.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby friarsol » 29 Jun 2011, 01:27

slapshot5 wrote:I've submitted changes to make this so. Choices will accept "AnyColor" to automagically prompt for 1 of the 5 colors. Wiki documentation is on the way.
Oh good. I'm gonna tweak this slightly to make it easier to allow for AnyColor and something else (like Artifacts).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AbilityFactory TODO list

Postby slapshot5 » 29 Jun 2011, 02:56

Do we want to tweak the checks in CardFactoryUtil.hasProtectionFrom(...) to use .equalsIgnoreCase() instead of just equals? Seems like it would cut down errors without affecting functionality. I thought about that more than once when programming this.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: AbilityFactory TODO list

Postby friarsol » 29 Jun 2011, 03:00

slapshot5 wrote:Do we want to tweak the checks in CardFactoryUtil.hasProtectionFrom(...) to use .equalsIgnoreCase() instead of just equals? Seems like it would cut down errors without affecting functionality. I thought about that more than once when programming this.
Yea ignoring case there is probably the better way to go. Although case sensitivity does matter for the Protection keywords, so we just have to be careful about that.

It seems like Subtypes (Dragons, Goblins) are upper case, and everything else is lower case.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AbilityFactory TODO list

Postby slapshot5 » 29 Jun 2011, 03:21

friarsol wrote:It seems like Subtypes (Dragons, Goblins) are upper case, and everything else is lower case.
My biggest concern was regarding colors. Most other places in text files (and AFs in particular) use a capitalized color. That would fail in AF_Protection unless we handled colors specifically with a toLowerCase() or whatever it's called.
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 24 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 24 guests

Login Form