Functions | Variables

bones.c File Reference

#include "hack.h"
#include "lev.h"
Include dependency graph for bones.c:

Functions

STATIC_DCL boolean FDECL (no_bones_level,(d_level *))
STATIC_DCL void FDECL (goodfruit,(int))
STATIC_DCL void FDECL (resetobjs,(struct obj *, BOOLEAN_P))
STATIC_DCL void FDECL (drop_upon_death,(struct monst *, struct obj *))
STATIC_OVL boolean no_bones_level (d_level *lev)
STATIC_OVL void goodfruit (int id)
STATIC_OVL void resetobjs (struct obj *ochain, boolean restore)
STATIC_OVL void trim_contents (struct obj *container, int prob1, int prob2)
STATIC_OVL void drop_upon_death (struct monst *mtmp, struct obj *cont)
boolean can_make_bones ()
void savebones (struct obj *corpse)
int getbones ()

Variables

char bones []

Function Documentation

boolean can_make_bones (  )

References depth(), discover, FALSE, ftrap, Is_branchlev(), ledger_no(), MAGIC_PORTAL, maxledgerno(), no_bones_level(), trap::ntrap, rn2(), TRUE, u, you::uz, wizard, and WIZARD.

Referenced by done().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void drop_upon_death ( struct monst mtmp,
struct obj cont 
)
STATIC_DCL void FDECL ( goodfruit  ,
(int)   
)
STATIC_DCL void FDECL ( drop_upon_death  ,
(struct monst *, struct obj *)   
)
STATIC_DCL boolean FDECL ( no_bones_level  ,
(d_level *)   
)
STATIC_DCL void FDECL ( resetobjs  ,
(struct obj *, BOOLEAN_P)   
)
int getbones (  )
STATIC_OVL void goodfruit ( int  id )

References ffruit, fruit::fid, and fruit::nextf.

Referenced by drop_upon_death(), parseoptions(), and resetobjs().

Here is the caller graph for this function:

STATIC_OVL boolean no_bones_level ( d_level lev )

References assign_level(), dungeon::boneid, s_level::boneid, dungeons, dunlevs_in_dungeon(), In_hell(), Is_botlevel(), Is_branchlev(), Is_special(), ledger_no(), and save_dlevel.

Referenced by can_make_bones(), and getbones().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void resetobjs ( struct obj ochain,
boolean  restore 
)
void savebones ( struct obj corpse )
STATIC_OVL void trim_contents ( struct obj container,
int  prob1,
int  prob2 
)

Removes objects recursively from a container with a probability of prob1/prob2.

References obj::cobj, doname(), Has_contents, obj::nobj, obfree(), obj_extract_self(), otmp, pline(), rnf(), and wizard.

Referenced by drop_upon_death().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char bones[]