mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-19 06:44:08 +00:00
fixed the Earth Elementals falling/dying in RRV
This commit is contained in:
parent
147cedfd4e
commit
cc5909e999
3
game.cpp
3
game.cpp
@ -3467,6 +3467,8 @@ void moveMonster(cell *ct, cell *cf) {
|
|||||||
|
|
||||||
if(isTroll(m)) { makeTrollFootprints(ct); makeTrollFootprints(cf); }
|
if(isTroll(m)) { makeTrollFootprints(ct); makeTrollFootprints(cf); }
|
||||||
|
|
||||||
|
int inc = incline(cf, ct);
|
||||||
|
|
||||||
if(m == moEarthElemental) {
|
if(m == moEarthElemental) {
|
||||||
if(!passable(ct, cf, 0)) earthFloor(ct);
|
if(!passable(ct, cf, 0)) earthFloor(ct);
|
||||||
earthMove(cf, neighborId(cf, ct));
|
earthMove(cf, neighborId(cf, ct));
|
||||||
@ -3578,7 +3580,6 @@ void moveMonster(cell *ct, cell *cf) {
|
|||||||
|
|
||||||
if(m == moPair) ct->stuntime++;
|
if(m == moPair) ct->stuntime++;
|
||||||
|
|
||||||
int inc = incline(cf, ct);
|
|
||||||
if(inc == -3 && ct->monst == moReptile)
|
if(inc == -3 && ct->monst == moReptile)
|
||||||
ct->stuntime =3;
|
ct->stuntime =3;
|
||||||
else if(inc == 2 && ct->monst == moReptile)
|
else if(inc == 2 && ct->monst == moReptile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user