Skip to content

Commit

Permalink
changed economy mode message box text
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanSteinbuch committed Nov 30, 2020
1 parent 9b76d85 commit e515248
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions libs/s25main/desktops/dskHostGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,30 +1057,28 @@ bool dskHostGame::checkOptions()
if(forceOptions)
return true;
const GlobalGameSettings& ggs = gameLobby->getSettings();
if(ggs.objective == GO_ECONOMYMODE && !ggs.getSelection(AddonId::PEACEFULMODE))
if(ggs.objective == GO_ECONOMYMODE && !ggs.isEnabled(AddonId::PEACEFULMODE))
{
WINDOWMANAGER.Show(std::make_unique<iwMsgbox>(
_("Economy mode"),
_("You chose the economy mode. In economy mode the player or team that collects the most of certain goods "
"wins (check the economic progress window in game).\n\nSome players like to play this objective in "
"peaceful mode. Would you like to adjust settings for a peaceful "
"game?\n"
"wins (check the Economic progress window in game).\n\n"
"Some players like to play this objective in peaceful mode. Would you like to adjust settings for a "
"peaceful game?\n"
"Choosing Yes will activate peaceful mode, ban catapults and disable buildings receiving coins by default. "
"After clicking Yes you will be able to review the changes and then start the game by clicking the Start "
"game button again. If you like to play economy mode with attacks, "
"choosing No will start the game without any "
"changes."),
"game button again.\n"
"Choosing No will start the game without any changes."),
this, MSB_YESNOCANCEL, MSB_QUESTIONGREEN, 10));
return false;
} else if(ggs.getSelection(AddonId::PEACEFULMODE)
} else if(ggs.isEnabled(AddonId::PEACEFULMODE)
&& (ggs.objective == GO_CONQUER3_4 || ggs.objective == GO_TOTALDOMINATION))
{
WINDOWMANAGER.Show(
std::make_unique<iwMsgbox>(_("Peaceful mode"),
_("You chose a war based victory condition but peaceful mode is still active. "
"Would you like to deactivate peaceful mode before you start? Choosing No will "
"start the game, Yes will let you review the changes."),
this, MSB_YESNOCANCEL, MSB_QUESTIONRED, 11));
WINDOWMANAGER.Show(std::make_unique<iwMsgbox>(
_("Peaceful mode"),
_("You chose a war based victory condition but peaceful mode is still active. Would you like to deactivate "
"peaceful mode before you start? Choosing No will start the game, Yes will let you review the changes."),
this, MSB_YESNOCANCEL, MSB_QUESTIONRED, 11));
return false;
}
return true;
Expand Down

0 comments on commit e515248

Please sign in to comment.