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

fieldval_uniq moved to virtual method pattern_value

This commit is contained in:
Zeno Rogue
2024-10-11 12:31:34 +02:00
parent 2e2dc2aac0
commit 08d73c507f
9 changed files with 88 additions and 41 deletions

View File

@@ -183,6 +183,18 @@ struct hrmap_spherical : hrmap_standard {
if(elliptic) fixelliptic(T);
return T;
}
int pattern_value(cell *c) override {
#if CAP_IRR
if(IRREGULAR) return irr::cellindex[c];
#endif
#if CAP_GP
if(GOLDBERG_INV) return (get_code(gp::get_local_info(c)) << 8) | c->master->fieldval;
#endif
if(ctof(c)) return c->master->fieldval;
return createMov(c, 0)->master->fieldval + 256 * createMov(c,2)->master->fieldval + (1<<16) * createMov(c,4)->master->fieldval;
}
};
EX heptagon *getDodecahedron(int i) {