- AI bugfixes (manaburn with ankh of mishra...)
- small tweaks
This commit is contained in:
wagic.the.homebrew
2009-03-18 11:29:23 +00:00
parent 070e24ec7a
commit a3c3006043
4 changed files with 12 additions and 10 deletions

View File

@@ -708,13 +708,6 @@ int AIPlayerBaka::Act(float dt){
OutputDebugString("Cannot interrupt\n");
return 0;
}
if (!clickstream.empty()){
AIAction * action = clickstream.front();
action->Act();
SAFE_DELETE(action);
clickstream.pop();
}
if (clickstream.empty()) computeActions();
if (clickstream.empty()){
if (g->isInterrupting == this){
@@ -722,7 +715,16 @@ int AIPlayerBaka::Act(float dt){
}else{
g->userRequestNextGamePhase();
}
} else {
//if (!clickstream.empty()){
AIAction * action = clickstream.front();
action->Act();
SAFE_DELETE(action);
clickstream.pop();
}
//if (clickstream.empty()) computeActions();
return 1;
};

View File

@@ -490,7 +490,7 @@ int GameStateDuel::isDifficultyUnlocked(){
sprintf(aiSmallDeckName, "ai_baka_deck%i",nbAIDecks);
int percentVictories = stats->percentVictories(string(aiSmallDeckName));
if (percentVictories >=67) wins++;
if (wins >= 12) return 1;
if (wins >= 10) return 1;
}
}
return 0;

View File

@@ -5,7 +5,7 @@
#include "../include/GameOptions.h"
#include "../include/GameApp.h"
static const char* GAME_VERSION = "WTH?! 0.5.0 - by WilLoW";
static const char* GAME_VERSION = "WTH?! 0.5.1 - by WilLoW";
#define ALPHA_WARNING 0
#define DEFAULT_ANGLE_MULTIPLIER 0.4

View File

@@ -29,7 +29,7 @@ void GameStateOptions::Start()
// WALDORF - added next line
optionsList->Add(NEW OptionItem(OPTIONS_INTERRUPT_SECONDS, "Seconds to pause for an Interrupt", 20, 1));
if (GameOptions::GetInstance()->values[OPTIONS_DIFFICULTY_MODE_UNLOCKED].getIntValue()) {
optionsList->Add(NEW OptionItem(OPTIONS_DIFFICULTY, "difficulty", 3, 1));
optionsList->Add(NEW OptionItem(OPTIONS_DIFFICULTY, "Difficulty", 3, 1));
}
JLBFont * mFont = GameApp::CommonRes->GetJLBFont("graphics/f3");
optionsMenu = NEW SimpleMenu(102, this,mFont, 50,170);