- 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:
wagic.the.homebrew
2008-12-01 12:10:55 +00:00
parent 179b7deeb8
commit d66ef78d12
11 changed files with 194 additions and 14 deletions
+6 -1
View File
@@ -84,7 +84,12 @@ void DeckStats::save(const char * filename){
void DeckStats::saveStats(Player *player, Player *opponent, GameObserver * game){
int victory = 1;
if (game->gameOver == player) victory = 0;
if (!game->gameOver){
if (player->life == opponent->life) return;
if (player->life < opponent->life) victory = 0;
}else if (game->gameOver == player) {
victory = 0;
}
load(player);
map<string,DeckStat *>::iterator it = stats.find(opponent->deckFile);
if (it == stats.end()){