mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
some patterns
This commit is contained in:
parent
272c628229
commit
72789f5a52
18
pattern2.cpp
18
pattern2.cpp
@ -1590,6 +1590,24 @@ EX namespace patterns {
|
|||||||
return canvasback;
|
return canvasback;
|
||||||
case 'r':
|
case 'r':
|
||||||
return hrand(0x1FFFFFF + 1);
|
return hrand(0x1FFFFFF + 1);
|
||||||
|
case '^': {
|
||||||
|
int x = c->master->fieldval & 4095;
|
||||||
|
int y = (c->master->fieldval >> 12) & 4095;
|
||||||
|
ignore(x);
|
||||||
|
if(c->master->distance % 3) return 0;
|
||||||
|
if(c->c.spin(binary::updir()) != 1) return 0;
|
||||||
|
// if(c->master->distance % 2 == 0) return 0;
|
||||||
|
if(hrand(100) == 0) return 0;
|
||||||
|
return 0x1000000 | (0xFFFFFF & (0x671349 + y * 0x512369));
|
||||||
|
// if(c->master->distance == 1) return 0x1FF0000;
|
||||||
|
// if(c->master->distance == -1) return 0x100FF00;
|
||||||
|
// return 0;
|
||||||
|
}
|
||||||
|
case '!': {
|
||||||
|
if(c == currentmap->gamestart()) return 0;
|
||||||
|
return hrand(0x1000000) | 0x1000000;
|
||||||
|
}
|
||||||
|
|
||||||
case 'e':
|
case 'e':
|
||||||
return colortables['e'][emeraldval(c)];
|
return colortables['e'][emeraldval(c)];
|
||||||
case 'a': {
|
case 'a': {
|
||||||
|
Loading…
Reference in New Issue
Block a user