- removed useless "color=" lines
- Added color override for cards such as crimson kobolds (note: color should be after the "mana" line to avoid side effects)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-28 13:40:14 +00:00
parent bbccb9f238
commit 163d296bb5
23 changed files with 52 additions and 1119 deletions
+3
View File
@@ -89,6 +89,9 @@ int MTGAllCards::processConfLine(string s, MTGCard *card){
}else if(key.compare("mana")==0){
std::transform( value.begin(), value.end(), value.begin(),::tolower );
card->setManaCost(value);
} else if(key.compare("color")==0){
std::transform( value.begin(), value.end(), value.begin(),::tolower );
card->setColor(value,1);
}else if(key.compare("type")==0){
switch(value.c_str()[0]){
case 'C':