mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
whirl:: threecolor on cube
This commit is contained in:
parent
7b4061829e
commit
5df5bb66f1
11
pattern2.cpp
11
pattern2.cpp
@ -960,6 +960,17 @@ int pattern_threecolor(cell *c) {
|
||||
}
|
||||
if(S7 == 4 && S3 == 3) {
|
||||
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)
|
||||
return codesN[c->master->fiftyval];
|
||||
if(ctof(c))
|
||||
|
Loading…
Reference in New Issue
Block a user