1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-29 08:52:25 +01:00

Pick a silver flame spot once you're on the right level.

This commit is contained in:
chris 2022-04-02 19:31:55 -04:00
parent 60947252f5
commit 77161876e8

View file

@ -1052,10 +1052,19 @@ boolean ghostly;
} else if (monstermoves > omoves)
mon_catchup_elapsed_time(mtmp, monstermoves - omoves);
/* update shape-changers in case protection against
them is different now than when the level was saved */
restore_cham(mtmp);
/* update shape-changers in case protection against
them is different now than when the level was saved */
restore_cham(mtmp);
}
if(u.silver_flame_z.dnum == u.uz.dnum && u.silver_flame_z.dlevel == u.uz.dlevel
&& !(u.s_f_x) && !(u.s_f_y)
){
int limit = 1000;
do {
u.s_f_x = rnd(COLNO-1);
u.s_f_y = rn2(ROWNO);
} while((!isok(u.s_f_x, u.s_f_y) || !ZAP_POS(levl[u.s_f_x][u.s_f_y].typ)) && limit-- > 0);
}
}
if (ghostly)