mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
Cave transformation is fairer to players
This commit is contained in:
parent
2eeca0410e
commit
c67f9b72af
@ -567,7 +567,8 @@ EX void killMonster(cell *c, eMonster who, flagtype deathflags IS(0)) {
|
||||
forCellEx(c1, c) {
|
||||
changes.ccell(c1);
|
||||
c1->item = itNone;
|
||||
if(c1->wall == waDeadwall || c1->wall == waDeadfloor2) c1->wall = waCavewall;
|
||||
if(c1->wall == waDeadwall) c1->wall = waCavewall;
|
||||
if(c1->wall == waDeadfloor2 && !c1->monst && !isPlayerOn(c1)) c1->wall = waCavewall;
|
||||
if(c1->wall == waDeadfloor) c1->wall = waCavefloor;
|
||||
}
|
||||
}
|
||||
|
@ -2349,7 +2349,7 @@ EX void livecaves() {
|
||||
for(cell *c2: adj_minefield_cells(c)) {
|
||||
eWall w = c2->wall;
|
||||
if(w == waDeadfloor) hv++, bringlife.push_back(c2);
|
||||
else if(w == waDeadwall || (w == waDeadfloor2 && !c2->monst))
|
||||
else if(w == waDeadwall || (w == waDeadfloor2 && !c2->monst && !isPlayerOn(c2)))
|
||||
hv--, bringlife.push_back(c2);
|
||||
else if(w == waCavefloor) hv++;
|
||||
else if(w == waCavewall) hv--;
|
||||
|
Loading…
Reference in New Issue
Block a user