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

Merge pull request #1083 from RikerW/patch-ludios-always-spawns

Ludios spawns on the first possible vault
This commit is contained in:
Chris-plus-alphanumericgibberish 2020-09-05 19:26:48 -04:00 committed by GitHub
commit cf114e768e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2205,17 +2205,13 @@ xchar x, y;
source = &br->end1;
}
/* Already set or 2/3 chance of deferring until a later level. */
if (source->dnum < n_dgns || (rn2(3)
#ifdef WIZARD
&& !wizard
#endif
)) return;
/* Already set -> nope. */
if (source->dnum < n_dgns) return;
if (! (u.uz.dnum == oracle_level.dnum /* in main dungeon */
&& !at_dgn_entrance("The Quest") /* but not Quest's entry */
&& (u_depth = depth(&u.uz)) > 10 /* beneath 10 */
&& u_depth < depth(&challenge_level))) /* and above Medusa */
if (u.uz.dnum != oracle_level.dnum // not in main dungeon
|| (u_depth = depth(&u.uz)) < 10 // not beneath 10
|| u_depth > depth(&challenge_level)// not below medusa
)
return;
/* Adjust source to be current level and re-insert branch. */