1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-03 23:33:01 +00:00

Automatic evoking of Beauty/Freedom/Sword/SwordII on Inventory

This commit is contained in:
Zeno Rogue
2017-08-14 21:32:02 +02:00
parent 02af85a871
commit b8f7675878
4 changed files with 55 additions and 6 deletions

View File

@@ -2485,9 +2485,17 @@ namespace sword {
return ((s2*S42/c2->type - s1*S42/c1->type) + S21 + angle) % S42;
}
void shuffle(int i) {
sword::angle[i] = euclid ? S7*hrand(6) : purehepta ? 3*hrand(S14)+1 : hrand(S42);
}
void reset() {
items[itOrbSword] = items[itOrbSword2] = 0;
shuffle(multi::cpid);
}
void shuffle() {
for(int i=0; i<MAXPLAYER; i++)
sword::angle[i] = euclid ? S7*hrand(6) : purehepta ? 3*hrand(S14)+1 : hrand(S42);
for(int i=0; i<MAXPLAYER; i++) shuffle(i);
}
};