mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-24 05:17:17 +00:00
enabled sightrange increase in Archimedean, also translation of sightrange and better note about additional options
This commit is contained in:
parent
cebfcf5196
commit
12a2a78d8a
@ -708,12 +708,13 @@ void showGraphConfig() {
|
|||||||
};
|
};
|
||||||
dialog::extra_options = [] () {
|
dialog::extra_options = [] () {
|
||||||
if(allowChangeRange()) {
|
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::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(); });
|
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"));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5175,7 +5175,7 @@ bool allowIncreasedSight() {
|
|||||||
if(tour::on) return true;
|
if(tour::on) return true;
|
||||||
#endif
|
#endif
|
||||||
if(randomPatternsMode) return true;
|
if(randomPatternsMode) return true;
|
||||||
if(quotient || !hyperbolic) return true;
|
if(quotient || !hyperbolic || archimedean) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5185,6 +5185,7 @@ bool allowChangeRange() {
|
|||||||
if(tour::on) return true;
|
if(tour::on) return true;
|
||||||
#endif
|
#endif
|
||||||
if(sightrange_bonus >= 0) return true;
|
if(sightrange_bonus >= 0) return true;
|
||||||
|
if(archimedean) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user