File src/bones.c


Included Files


External Variables

bones
extern char bones[]

save_dlevel
extern d_level save_dlevel


Global Function can_make_bones()

boolean can_make_bones ( void )
Prototyped in: include/extern.h
Calls: no_bones_level()src/bones.c
  Is_branchlev(), depth(), ledger_no(), maxledgerno(), rn2()
References Variables: flags, ftrap, u

Global Function getbones()

int getbones ( void )
Prototyped in: include/extern.h
Calls: no_bones_level()src/bones.c
  resetobjs()src/bones.c
  close(), compress_bonesfile(), delete_bonesfile(), getlev(), mongone(), monsndx(), mread(), open_bonesfile(), pline(), rn2(), strcmp(), trickery(), uptodate()
References Variables: bones, flags, level, mons, mvitals, u, windowprocs, ynchars

Global Function savebones()

void savebones ( struct obj* corpse )
Prototyped in: include/extern.h
Calls: drop_upon_death()src/bones.c
  resetobjs()src/bones.c
  unleash_all()src/apply.c
  Your(), an(), bclose(), bwrite(), christen_monst(), close(), commit_bonesfile(), compress_bonesfile(), create_bonesfile(), delete_bonesfile(), dmonsfree(), enexto(), ledger_no(), m_dowear(), makemon(), mk_named_object(), mongone(), newsym(), obj_attach_mid(), open_bonesfile(), pline(), rloc_to(), savefruitchn(), savelev(), store_version(), strlen(), update_mlstmv()
References Variables: WIN_MESSAGE, ffruit, flags, ftrap, in_mklev, level, mons, plname, u, uball, uchain, windowprocs, ynchars

Local Function drop_upon_death()

static void drop_upon_death ( struct monst* mtmp, struct obj* cont )
Prototyped in: src/bones.c
Calls: goodfruit()src/bones.c
  add_to_container(), add_to_minv(), curse(), end_burn(), mkgold(), mkgoldobj(), obj_extract_self(), obj_is_burning(), place_object(), rn2()
Called by: savebones()src/bones.c
References Variables: invent, u

Local Function goodfruit()

static void goodfruit ( int id )
Prototyped in: src/bones.c
Called by: drop_upon_death()src/bones.c
  resetobjs()src/bones.c
References Variables: ffruit

Local Function no_bones_level()

static boolean no_bones_level ( d_level* lev )
Prototyped in: src/bones.c
Calls: In_hell(), Is_botlevel(), Is_branchlev(), Is_special(), assign_level(), dunlevs_in_dungeon(), ledger_no()
Called by: can_make_bones()src/bones.c
  getbones()src/bones.c
References Variables: dungeons, save_dlevel

Local Function resetobjs()

static void resetobjs ( struct obj* ochain, boolean restore )
Prototyped in: src/bones.c
Calls: artifact_exists()src/artifact.c
  exist_artifact()src/artifact.c
  goodfruit()src/bones.c
  resetobjs()src/bones.c
  curse(), end_burn(), is_quest_artifact(), weight()
Called by: getbones()src/bones.c
  resetobjs()src/bones.c
  savebones()src/bones.c
References Variables: mons, objects