mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
auto-cellcount; automatically set subpattern flags when geometry switching
This commit is contained in:
parent
5884368892
commit
ebd159825c
14
system.cpp
14
system.cpp
@ -1062,7 +1062,6 @@ void restartGame(char switchWhat, bool push) {
|
|||||||
princess::forceMouse = false;
|
princess::forceMouse = false;
|
||||||
knighted = 0;
|
knighted = 0;
|
||||||
// items[itGreenStone] = 100;
|
// items[itGreenStone] = 100;
|
||||||
cellcount = 0;
|
|
||||||
clearMemory();
|
clearMemory();
|
||||||
}
|
}
|
||||||
if(switchWhat == 'P') {
|
if(switchWhat == 'P') {
|
||||||
@ -1100,10 +1099,23 @@ void restartGame(char switchWhat, bool push) {
|
|||||||
resetGeometry();
|
resetGeometry();
|
||||||
}
|
}
|
||||||
if(switchWhat == 'g') {
|
if(switchWhat == 'g') {
|
||||||
|
// transform coloring
|
||||||
|
eGeometry old = geometry;
|
||||||
|
|
||||||
|
if(euclid && targetgeometry == gOctagon && patterns::whichPattern == 'C')
|
||||||
|
patterns::subpattern_flags |= patterns::SPF_ROT;
|
||||||
|
|
||||||
|
if(euclid && targetgeometry == g46 && patterns::whichPattern == 'C')
|
||||||
|
patterns::subpattern_flags |= patterns::SPF_SYM01 | patterns::SPF_SYM02 | patterns::SPF_SYM03;
|
||||||
|
|
||||||
if(geometry == targetgeometry) geometry = gNormal;
|
if(geometry == targetgeometry) geometry = gNormal;
|
||||||
else geometry = targetgeometry;
|
else geometry = targetgeometry;
|
||||||
if(chaosmode && (euclid || sphere || quotient)) chaosmode = false;
|
if(chaosmode && (euclid || sphere || quotient)) chaosmode = false;
|
||||||
if(nontruncated && euclid) nontruncated = false;
|
if(nontruncated && euclid) nontruncated = false;
|
||||||
|
|
||||||
|
if(euclid && old == gOctagon && patterns::whichPattern == 'C')
|
||||||
|
patterns::subpattern_flags |= patterns::SPF_EXTRASYM;
|
||||||
|
|
||||||
resetGeometry();
|
resetGeometry();
|
||||||
}
|
}
|
||||||
if(switchWhat == 'y') {
|
if(switchWhat == 'y') {
|
||||||
|
Loading…
Reference in New Issue
Block a user