1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 04:17:58 +00:00

crystal:: added multi-dimensional geometries (referred to as crystal), available via CLI for now

This commit is contained in:
Zeno Rogue
2018-11-30 16:31:55 +01:00
parent cd357303b9
commit fd3b030119
9 changed files with 483 additions and 4 deletions

View File

@@ -205,13 +205,15 @@ heptagon *createStep(heptagon *h, int d) {
d = h->c.fix(d);
if(!h->move(d))
callhooks(hooks_createStep, h, d);
if(!h->move(d) && geometry == gCrystal)
crystal::create_step(h, d);
if(!h->move(d) && binarytiling)
return binary::createStep(h, d);
if(!h->move(d) && archimedean) {
arcm::create_adjacent(h, d);
return h->move(d);
}
if(!h->move(0) && h->s != hsOrigin && !binarytiling) {
if(!h->move(0) && h->s != hsOrigin && !binarytiling && (geometry != gCrystal)) {
// cheating:
int pard=0;
if(S3 == 3)