1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-02 12:19:18 +00:00

random pattern: if rwalls > 100, player also is on wall

This commit is contained in:
Zeno Rogue 2020-07-03 15:20:53 +02:00
parent ab714a836e
commit e15f0f381f

View File

@ -1770,7 +1770,7 @@ EX namespace patterns {
case 'r': {
color_t r = hrand(0xFFFFFF + 1);
if(hrand(100) < rwalls) r |= 0x1000000;
if(c == cwt.at) r &= 0xFFFFFF;
if(c == cwt.at && rwalls <= 100) r &= 0xFFFFFF;
return r;
}
case '^': {