MCPcopy Index your code
hub / github.com/NetHack/NetHack / no_bones_level

Function no_bones_level

src/bones.c:17–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15staticfn void set_ghostly_objlist(struct obj *objchain);
16
17staticfn boolean
18no_bones_level(d_level *lev)
19{
20 s_level *sptr;
21
22 if (ledger_no(&gs.save_dlevel))
23 assign_level(lev, &gs.save_dlevel);
24
25 return (boolean) (((sptr = Is_special(lev)) != 0 && !sptr->boneid)
26 || !svd.dungeons[lev->dnum].boneid
27 /* no bones on the last or multiway branch levels
28 in any dungeon (level 1 isn't multiway) */
29 || Is_botlevel(lev)
30 || (Is_branchlev(lev) && lev->dlevel > 1)
31 /* no bones in the invocation level */
32 || (In_hell(lev)
33 && lev->dlevel == dunlevs_in_dungeon(lev) - 1));
34}
35
36/* Call this function for each fruit object saved in the bones level: it marks
37 * that particular type of fruit as existing (the marker is that that type's

Callers 2

can_make_bonesFunction · 0.85
getbonesFunction · 0.85

Calls 7

ledger_noFunction · 0.85
assign_levelFunction · 0.85
Is_specialFunction · 0.85
Is_botlevelFunction · 0.85
Is_branchlevFunction · 0.85
In_hellFunction · 0.85
dunlevs_in_dungeonFunction · 0.85

Tested by

no test coverage detected