1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

enabled sightrange increase in Archimedean, also translation of sightrange and better note about additional options

This commit is contained in:
Zeno Rogue 2018-09-21 19:50:18 +02:00
parent cebfcf5196
commit 12a2a78d8a
2 changed files with 6 additions and 4 deletions

View File

@ -708,12 +708,13 @@ void showGraphConfig() {
};
dialog::extra_options = [] () {
if(allowChangeRange()) {
dialog::addSelItem("generation range bonus", its(genrange_bonus), 'o');
dialog::addSelItem(XLAT("generation range bonus"), its(genrange_bonus), 'o');
dialog::add_action([] () { genrange_bonus = sightrange_bonus; doOvergenerate(); });
dialog::addSelItem("game range bonus", its(gamerange_bonus), 'O');
dialog::addSelItem(XLAT("game range bonus"), its(gamerange_bonus), 'O');
dialog::add_action([] () { gamerange_bonus = sightrange_bonus; doOvergenerate(); });
}
else dialog::addInfo("note: enable the cheat mode for additional options");
if(!allowChangeRange() || !allowIncreasedSight())
dialog::addInfo(XLAT("note: enable the cheat mode for additional options"));
};
}

View File

@ -5175,7 +5175,7 @@ bool allowIncreasedSight() {
if(tour::on) return true;
#endif
if(randomPatternsMode) return true;
if(quotient || !hyperbolic) return true;
if(quotient || !hyperbolic || archimedean) return true;
return false;
}
@ -5185,6 +5185,7 @@ bool allowChangeRange() {
if(tour::on) return true;
#endif
if(sightrange_bonus >= 0) return true;
if(archimedean) return true;
return false;
}