mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-05 23:44:26 +00:00
10.0m, and some unfinished features for 10.1 ;)
This commit is contained in:
1 parent
9d20c2f7fd
commit
85c46220f6
10 files changed
+231
-16
No files matched your search
@@ -719,6 +719,8 @@ void initcells() {
|
||||
|
||||
allmaps.push_back(currentmap);
|
||||
|
||||
windmap::create();
|
||||
|
||||
// origin->emeraldval =
|
||||
}
|
||||
|
||||
@@ -1401,6 +1403,31 @@ pair<int, bool> fieldval(cell *c) {
|
||||
else return make_pair(btspin(c->master->fieldval, c->spin(0)), true);
|
||||
}
|
||||
|
||||
int fieldval_uniq(cell *c) {
|
||||
if(sphere) {
|
||||
if(c->type == 5) return c->master->fieldval;
|
||||
else return createMov(c, 0)->master->fieldval + 256 * createMov(c,2)->master->fieldval + (1<<16) * createMov(c,4)->master->fieldval;
|
||||
}
|
||||
else if(torus) {
|
||||
return decodeId(c->master);
|
||||
}
|
||||
else if(euclid) {
|
||||
eucoord x, y;
|
||||
decodeMaster(c->master, x, y);
|
||||
int i = (short int)(x) * torusconfig::dx + (short int)(y) * torusconfig::dy;
|
||||
i %= torusconfig::qty;
|
||||
if(i<0) i += torusconfig::qty;
|
||||
return i;
|
||||
}
|
||||
if(c->type == 7) return c->master->fieldval/7;
|
||||
else {
|
||||
int z = 0;
|
||||
for(int u=0; u<6; u+=2)
|
||||
z = max(z, btspin(createMov(c, u)->master->fieldval, c->spin(u)));
|
||||
return -1-z;
|
||||
}
|
||||
}
|
||||
|
||||
int subpathid = fp43.matcode[fp43.strtomatrix("RRRPRRRRRPRRRP")];
|
||||
int subpathorder = fp43.order(fp43.matrices[subpathid]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user