mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
checking in infrastructure changes to support a refactor of the code dealing with card colors
Nothing is hooked up, so there should be no functional change in Forge at all. basics: 1) support to make Color an Enum (Colorless is not included, use card.isColorless() instead 2) make color checking a part of Card.java instead of using CardUtil.getColors(card) 3) add getConvertedManaCost functions directly in Card.java (Note: CardUtil will likely still need a copy of some of this code to get the converted mana cost of spell abilities
This commit is contained in:
@@ -19838,6 +19838,8 @@ public class CardFactory implements NewConstants {
|
||||
c.setType(sim.getType());
|
||||
c.setText(sim.getSpellText());
|
||||
c.setManaCost(sim.getManaCost());
|
||||
//for Color refactor
|
||||
//c.setBaseColors(sim.getBaseColors());
|
||||
|
||||
return c;
|
||||
}// copyStats()
|
||||
|
||||
Reference in New Issue
Block a user