mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
debugging pattern P
This commit is contained in:
parent
46892a35c4
commit
0f546c43a7
14
pattern2.cpp
14
pattern2.cpp
@ -1626,8 +1626,18 @@ EX namespace patterns {
|
||||
return 0xCCCC00;
|
||||
}
|
||||
#endif
|
||||
case 'M':
|
||||
return gradient(0, canvasback, 0, min(1.8/(1+celldist(c)), 1.), 1);
|
||||
case 'M': {
|
||||
int d = celldist(c);
|
||||
color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1);
|
||||
if(d > 3) res |= 0x1000000;
|
||||
return res;
|
||||
}
|
||||
case 'P': {
|
||||
int d = celldistance(c, currentmap->gamestart()->move(0));
|
||||
color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1);
|
||||
if(d > 3) res |= 0x1000000;
|
||||
return res;
|
||||
}
|
||||
#if CAP_FIELD
|
||||
case 'S':
|
||||
if(!hyperbolic) return canvasback;
|
||||
|
Loading…
Reference in New Issue
Block a user