1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 12:27:57 +00:00

specially generated lands now respect Unlocked and LandIngame rules

This commit is contained in:
Zeno Rogue
2024-03-27 16:51:02 +01:00
parent 6abb82174e
commit 8a407f4505
2 changed files with 14 additions and 8 deletions

View File

@@ -741,6 +741,11 @@ EX bool isLandIngame(eLand l) {
return land_validity(l).flags & lv::appears_in_full;
}
EX bool landUnlockedIngame(eLand l) {
if(!peace::on && !landUnlocked(l)) return false;
return isLandIngame(l);
}
namespace lv {
flagtype q0 = lv::display_error_message | lv::display_in_help | lv::appears_in_geom_exp;