Erwan
- AI bugfixes (manaburn with ankh of mishra...) - small tweaks
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user