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

debugging pattern P

This commit is contained in:
Zeno Rogue 2019-11-30 13:27:55 +01:00
parent 46892a35c4
commit 0f546c43a7

View File

@ -1626,8 +1626,18 @@ EX namespace patterns {
return 0xCCCC00; return 0xCCCC00;
} }
#endif #endif
case 'M': case 'M': {
return gradient(0, canvasback, 0, min(1.8/(1+celldist(c)), 1.), 1); 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 #if CAP_FIELD
case 'S': case 'S':
if(!hyperbolic) return canvasback; if(!hyperbolic) return canvasback;