1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 15:37:40 +00:00

fixed racing official track generation

This commit is contained in:
Zeno Rogue
2022-02-02 03:07:12 +01:00
parent fd634e6de8
commit 064ac7de63
6 changed files with 84 additions and 7 deletions

View File

@@ -366,6 +366,13 @@ EX bool all_unlocked = false;
EX eLand getNewLand(eLand old) {
#if CAP_LEGACY
if(legacy_racing()) {
if(old == laMirror && hrand(10) >= ((tactic::on || racing::on) ? 0 : markOrb(itOrbLuck) ? 5 : 2)) return laMirrored;
if(old == laTerracotta && hrand(5) >= ((tactic::on || racing::on) ? 0 : markOrb(itOrbLuck) ? 2 : 1) && !weirdhyperbolic) return laTerracotta;
}
#endif
eLand l = callhandlers(laNone, hooks_nextland, old);
if(l) return l;