mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-01 00:07:02 +00:00
fixed Ruined City discrepancy (affected Racing)
This commit is contained in:
parent
e5c00b2df3
commit
69387d40ef
17
landgen.cpp
17
landgen.cpp
@ -2194,15 +2194,15 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
c->landparam = 2;
|
c->landparam = 2;
|
||||||
if(out_ruin(c))
|
if(out_ruin(c)) {
|
||||||
c->landparam = 0;
|
c->landparam = 0;
|
||||||
else forCellEx(c2, c) if(out_ruin(c2))
|
if(hrand(100) < 3)
|
||||||
c->landparam = 1;
|
c->wall = waRuinWall;
|
||||||
|
}
|
||||||
if(c->landparam == 0 && hrand(100) < 3)
|
else if(hrand(100) < 75) {
|
||||||
c->wall = waRuinWall, c->landparam = 1;
|
forCellEx(c2, c) if(out_ruin(c2))
|
||||||
if(c->landparam == 1 && hrand(100) < 75)
|
c->wall = waRuinWall, c->landparam = 1;
|
||||||
c->wall = waRuinWall;
|
}
|
||||||
}
|
}
|
||||||
if(hrand_monster(40000) < kf && !c->monst && !c->wall && !shmup::on) {
|
if(hrand_monster(40000) < kf && !c->monst && !c->wall && !shmup::on) {
|
||||||
cell *c1 = c;
|
cell *c1 = c;
|
||||||
@ -2214,6 +2214,7 @@ void giantLandSwitch(cell *c, int d, cell *from) {
|
|||||||
c2->mondir = neighborId(c2, c1);
|
c2->mondir = neighborId(c2, c1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(d == 7 && c->landparam == 2) forCellEx(c2, c) if(out_ruin(c2)) c->landparam = 1;
|
||||||
ONEMPTY {
|
ONEMPTY {
|
||||||
if(hrand(1500) < PT(30 + kills[moHexDemon] + kills[moSkeleton] + kills[moMonk] + kills[moPair], 100) && notDippingFor(itRuins)) {
|
if(hrand(1500) < PT(30 + kills[moHexDemon] + kills[moSkeleton] + kills[moMonk] + kills[moPair], 100) && notDippingFor(itRuins)) {
|
||||||
c->item = itRuins;
|
c->item = itRuins;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user