1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

whirl:: threecolor on cube

This commit is contained in:
Zeno Rogue 2018-04-06 12:20:22 +02:00
parent 7b4061829e
commit 5df5bb66f1

View File

@ -960,6 +960,17 @@ int pattern_threecolor(cell *c) {
} }
if(S7 == 4 && S3 == 3) { if(S7 == 4 && S3 == 3) {
int codesN[6] = {0,1,2,1,2,0}; int codesN[6] = {0,1,2,1,2,0};
if(whirl::whirl) {
auto li = whirl::get_local_info(c);
int sp = (MODFIXER + li.relative.first + 2 * li.relative.second) % 3;
if(sp != 0) {
if(li.last_dir & 1)
sp = 3 - sp;
if(among(c->master->fiftyval, 1, 3, 5))
sp = 3 - sp;
}
return sp;
}
if(nonbitrunc) if(nonbitrunc)
return codesN[c->master->fiftyval]; return codesN[c->master->fiftyval];
if(ctof(c)) if(ctof(c))