1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 08:27:39 +00:00

introduced rulegen.cpp which generates strict_tree_rules for arb

This commit is contained in:
Zeno Rogue
2021-07-29 14:07:30 +02:00
parent bb3fbc5256
commit c53270ca16
7 changed files with 1594 additions and 7 deletions

View File

@@ -140,6 +140,7 @@ EX bool grailWasFound(cell *c) {
}
EX int default_levs() {
if(arb::in()) return 2;
if(IRREGULAR)
return 1;
if(S3 >= OINF)
@@ -1376,7 +1377,7 @@ EX int wallchance(cell *c, bool deepOcean) {
/** \brief should we generate the horocycles in the current geometry? */
EX bool horo_ok() {
if(INVERSE) return false;
if(currentmap->strict_tree_rules()) return false;
if(currentmap->strict_tree_rules()) return true;
return hyperbolic && !bt::in() && !arcm::in() && !kite::in() && !experimental && !hybri && !arb::in() && !quotient;
}
@@ -1931,7 +1932,6 @@ EX void gen_temple(cell *c) {
}
EX void moreBigStuff(cell *c) {
if(currentmap->strict_tree_rules()) return;
if((bearsCamelot(c->land) && !euclid && !quotient && !nil) || c->land == laCamelot)
if(have_alt(c)) if(!(bt::in() && specialland != laCamelot))