mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
patterns in Crystal bitruncated {6,4}; also fixes graphics
This commit is contained in:
parent
4f1742f21f
commit
0e8a5f6065
@ -509,6 +509,15 @@ struct hrmap_crystal : hrmap_standard {
|
|||||||
h->alt = NULL;
|
h->alt = NULL;
|
||||||
h->cdata = NULL;
|
h->cdata = NULL;
|
||||||
h->c7 = newCell(deg, h);
|
h->c7 = newCell(deg, h);
|
||||||
|
|
||||||
|
/* in {6,4} we need emeraldval for some patterns, including (bitruncated) football and (bitruncated) three-color */
|
||||||
|
h->emeraldval = (c[0] ^ c[1] ^ c[2]) & 2;
|
||||||
|
h->emeraldval ^= (c[1] & 4);
|
||||||
|
h->emeraldval ^= (c[0] & 4);
|
||||||
|
h->emeraldval ^= (c[2] & 4);
|
||||||
|
h->emeraldval ^= ((c[2] & 2) << 1);
|
||||||
|
if(c[0] & 2) h->emeraldval ^= 1;
|
||||||
|
|
||||||
h->distance = 0;
|
h->distance = 0;
|
||||||
if(ginf[gCrystal].vertex == 3)
|
if(ginf[gCrystal].vertex == 3)
|
||||||
h->fiftyval = fiftyrule(c);
|
h->fiftyval = fiftyrule(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user