Splitting GameActionUtil
Another big file is GameActionUtil (I've been adding some new cards and mechanics to this file, my local file is over 11,000 lines now).
Splitting this should be much easier than CardFactory. But how do you guys think it should be split up?
GameActionUtil currently consists of:
- Upkeep effects (lots of code)
- "Play card" effects (Standstill, Gilt-Leaf Archdruid, Sigil of the Empty Throne, etc.)
- "Draw Triggered" effects (currently only 3 cards: Niv-Mizzet, Hoofprints of the Stag and Lorescale Coatl - but this will most likely grow as well
- Some misc stuff: exalted, lifelink, a check to see if Rafiq of the Many is in play, "vampiric effects" (Sengir Vampire, ...), Guilty Conscience triggers, ... not even sure if these should be in this file.
- Ally effects
- Landfall effects
- "Destroy card" effects, this is what I've been playing around with, I've added cards like Fecundity, Dingus Egg, Dingus Staff, Goblin Sharpshooter and Dauthi Ghoul
- "Player combat damage" effects (Shadowmage Infiltrator, Hypnotic Specter, etc.)
- Last but not least, State Based Effects (Glorious Anthem, Goblin King, Nightmare, Engineered Plague, Fervor, etc.) which I think takes up most of the code.
What do you guys think? Should it be split up in 7 - 8 parts ? Or maybe for now just split the Upkeep, State Based Effects and the rest into three separate files?
Splitting this should be much easier than CardFactory. But how do you guys think it should be split up?
GameActionUtil currently consists of:
- Upkeep effects (lots of code)
- "Play card" effects (Standstill, Gilt-Leaf Archdruid, Sigil of the Empty Throne, etc.)
- "Draw Triggered" effects (currently only 3 cards: Niv-Mizzet, Hoofprints of the Stag and Lorescale Coatl - but this will most likely grow as well
- Some misc stuff: exalted, lifelink, a check to see if Rafiq of the Many is in play, "vampiric effects" (Sengir Vampire, ...), Guilty Conscience triggers, ... not even sure if these should be in this file.
- Ally effects
- Landfall effects
- "Destroy card" effects, this is what I've been playing around with, I've added cards like Fecundity, Dingus Egg, Dingus Staff, Goblin Sharpshooter and Dauthi Ghoul
- "Player combat damage" effects (Shadowmage Infiltrator, Hypnotic Specter, etc.)
- Last but not least, State Based Effects (Glorious Anthem, Goblin King, Nightmare, Engineered Plague, Fervor, etc.) which I think takes up most of the code.
What do you guys think? Should it be split up in 7 - 8 parts ? Or maybe for now just split the Upkeep, State Based Effects and the rest into three separate files?