Jeck - Changed filter pricing scheme- filter tax is now inversely proportional to the amount of results. Added preliminary "economic difficulty" option. Note that it requires difficulty modes to be unlocked (at least to appear in the gui). Should we make it available from the start?

This commit is contained in:
wagic.jeck
2010-02-09 16:23:29 +00:00
parent 8de2d4a892
commit 5444c4e507
8 changed files with 76 additions and 37 deletions

View File

@@ -27,8 +27,9 @@ const char * Options::optionNames[] = {
"mana_display",
"reverse_triggers",
"disable_cards",
"interruptSeconds",
"maxGrade",
"economic_difficulty",
"interruptSeconds",
"interruptMySpells",
"interruptMyAbilities",
//General interrupts
@@ -46,12 +47,6 @@ const char * Options::optionNames[] = {
"interruptEndTurn",
"interruptCleanup",
"interruptAfterEnd",
//Unlocked modes
"prx_handler",
"prx_rimom",
"prx_eviltwin",
"prx_rnddeck",
"aw_collector",
};
int Options::getID(string name){
if(!name.size())
@@ -366,6 +361,11 @@ GameOption * GameOptions::get(int optionID) {
goEnum->def = OptionMaxGrade::getInstance();
go = goEnum;
break;
case Options::ECON_DIFFICULTY:
goEnum = NEW GameOptionEnum();
goEnum->def = OptionEconDifficulty::getInstance();
go = goEnum;
break;
default:
if(x >= Options::BEGIN_AWARDS)
go = NEW GameOptionAward();
@@ -742,7 +742,13 @@ OptionDifficulty::OptionDifficulty(){
mDef.values.push_back(EnumDefinition::assoc(HARDER, "Harder"));
mDef.values.push_back(EnumDefinition::assoc(EVIL, "Evil"));
};
OptionEconDifficulty OptionEconDifficulty::mDef;
OptionEconDifficulty::OptionEconDifficulty(){
mDef.values.push_back(EnumDefinition::assoc(Constants::ECON_NORMAL, "Normal"));
mDef.values.push_back(EnumDefinition::assoc(Constants::ECON_HARD, "Hard"));
mDef.values.push_back(EnumDefinition::assoc(Constants::ECON_LUCK, "Luck"));
mDef.values.push_back(EnumDefinition::assoc(Constants::ECON_EASY, "Easy"));
};
//GameOptionAward
GameOptionAward::GameOptionAward(){
achieved = time(NULL);