1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-23 16:50:27 +00:00

Merge pull request #250 from jruderman/mirror_p

Palace no longer generates monsters on mirrors
This commit is contained in:
Zeno Rogue 2021-07-21 10:15:31 +02:00 committed by GitHub
commit eedca281ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -537,8 +537,8 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
c->item = hrand(100) < 80 ? itOrbFrog : itOrbDiscord;
if(hrand(5000) < 20*PRIZEMUL && c->wall != waOpenGate)
placePrizeOrb(c);
if(c->wall == waNone) buildPrizeMirror(c, 250);
if(c->land == laPalace && (eubinary || c->master->alt) && celldistAlt(c) <= 150 && !(havewhat&HF_MOUSE) && !princess::generating &&
if(c->wall == waNone && buildPrizeMirror(c, 250)) {}
else if(c->land == laPalace && (eubinary || c->master->alt) && celldistAlt(c) <= 150 && !(havewhat&HF_MOUSE) && !princess::generating &&
princess::getPrisonInfo(c) &&
(eubinary || (princess::getPrisonInfo(c)->bestdist < 6 && princess::getPrisonInfo(c)->princess))) {
c->monst = moMouse;