Erwan
- AI:increased percentage of chance to play an "unknown" Card - removed delay before displaying big card ingame - added 2 new AI Decks - Fixed a bug with afflict (see tests/afflict.txt)
This commit is contained in:
@@ -234,13 +234,13 @@ int MTGAllCards::readConfLine(std::ifstream &file, int set_id){
|
||||
if (s[s.size()-1] == '\r') s.erase(s.size()-1); //Handle DOS files
|
||||
switch(conf_read_mode) {
|
||||
case 0:
|
||||
if (s.find("[card]") != string::npos){
|
||||
if (s[0] == '['){
|
||||
collection[total_cards] = NEW MTGCard(mCache,set_id);
|
||||
conf_read_mode = 1;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (s.find("[/card]") != string::npos){
|
||||
if (s[0] == '[' && s[1] == '/'){
|
||||
conf_read_mode = 0;
|
||||
total_cards++;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user