#I d have to do that with every card

1 messages · Page 1 of 1 (latest)

opaque kindle
#

In that case I'd add a bool to that class (or maybe an enum if you have more than one kind of Follower), and then write custom editor script that only shows the fields you want to expose in the editor for the kind of follower selected. Have them default to 0 or -1 or something, and then in your game code you can write logic to ignore those fields when they have that value.

near lake
#

I need it to apply on a card by card basis, would I need to have every card in the enum?

#

Or could I have that as a value in the card-deriving class (whether it's spell, artifact, or follower) and then have individual cards have a -1 to have it ignore them

opaque kindle
#

yeah that last one sounds good. Like in magic the gathering, I'd imagine each card would have a RedCost, BlueCost, etc. field, even if swamp creatures only had a BlackCost be non-zero. Then the way you tune the values creates the behavior you want