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

default_levs() as a function

This commit is contained in:
Zeno Rogue
2020-01-28 10:20:39 +01:00
parent 00262e8f6a
commit 4287ddf883
2 changed files with 11 additions and 1 deletions

View File

@@ -133,6 +133,14 @@ EX bool grailWasFound(cell *c) {
return c->master->alt->alt->emeraldval & GRAIL_FOUND;
}
EX int default_levs() {
if(IRREGULAR)
return 1;
if(S3 >= OINF)
return 1;
return S3-3;
}
void hrmap::generateAlts(heptagon *h, int levs, bool link_cdata) {
if(hybri) { PIU ( generateAlts(h, levs, link_cdata) ); }
if(!h->alt) return;