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:
parent
ab714a836e
commit
e15f0f381f
@ -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 '^': {
|
||||
|
Loading…
Reference in New Issue
Block a user