1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-10 15:59:53 +00:00

less-states

This commit is contained in:
Zeno Rogue 2022-07-13 19:33:00 +02:00
parent 0b4df47964
commit 906ad4ab90
2 changed files with 5 additions and 1 deletions

View File

@ -1974,7 +1974,7 @@ EX namespace reg3 {
bool ruleset_link_alt(heptagon *h, heptagon *alt, hstate firststate, int dir) { bool ruleset_link_alt(heptagon *h, heptagon *alt, hstate firststate, int dir) {
alt->fieldval = h->fieldval; alt->fieldval = h->fieldval;
if(firststate == hsOrigin) { if(firststate == hsOrigin) {
alt->fiftyval = root[alt->fieldval]; alt->fiftyval = root[alt->fieldval % isize(root)];
return true; return true;
} }
vector<int>& choices = possible_states[alt->fieldval]; vector<int>& choices = possible_states[alt->fieldval];

View File

@ -352,6 +352,10 @@ int readRuleArgs3() {
reg3::subrule = true; reg3::subrule = true;
} }
else if(argis("-less-states")) {
shift(); rulegen::less_states = argi();
}
else return 1; else return 1;
return 0; return 0;
} }