#include "hack.h"
#include "lev.h"
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 [] |
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().
References add_to_container(), add_to_minv(), artifact_light(), count_objects(), curse(), end_burn(), goodfruit(), invent, mkgold(), mkgoldobj(), obj_extract_self(), obj_is_burning(), obj_no_longer_held(), otmp, obj::otyp, obj::owornmask, obj::owt, place_object(), rn2(), SLIME_MOLD, obj::spe, trim_contents(), TRUE, u, you::ugold, uswapwep, you::ux, you::uy, and weight().
Referenced by savebones().
STATIC_DCL void FDECL | ( | goodfruit | , |
(int) | |||
) |
STATIC_DCL void FDECL | ( | resetobjs | , |
(struct obj *, BOOLEAN_P) | |||
) |
int getbones | ( | ) |
References bones, BUFSZ, dlevel_t::buriedobjlist, close(), compress_bonesfile(), monst::data, DEFUNCT_MONSTER, delete_bonesfile(), discover, FALSE, fmon, fobj, getlev(), level, monst::mhpmax, monst::minvent, permonst::mname, mongone(), mread(), monst::nmon, no_bones_level(), open_bonesfile(), pline(), resetobjs(), rn2(), Sprintf, trickery(), TRUE, u, uptodate(), you::uz, wizard, WIZARD, and yn.
Referenced by mklev().
STATIC_OVL void goodfruit | ( | int | id ) |
References ffruit, fruit::fid, and fruit::nextf.
Referenced by drop_upon_death(), parseoptions(), and resetobjs().
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().
References obj::age, AMULET_OF_YENDOR, ART_THIEFBANE, artifact_exists(), BELL, BELL_OF_OPENING, CANDELABRUM_OF_INVOCATION, obj::cobj, CORPSE, obj::corpsenm, curse(), EGG, end_burn(), exist_artifact(), FAKE_AMULET_OF_YENDOR, G_UNIQ, permonst::geno, goodfruit(), obj::invlet, is_quest_artifact(), LOW_PM, mons, obj::nobj, NON_PM, obj::oartifact, objects, ONAME, obj::onamelth, otmp, obj::otyp, obj::owt, obj::quan, SCR_MAIL, SLIME_MOLD, obj::spe, SPE_BLANK_PAPER, SPE_BOOK_OF_THE_DEAD, SPECIAL_PM, STATUE, TIN, TRUE, WAX_CANDLE, and weight().
Referenced by getbones(), and savebones().
void savebones | ( | struct obj * | corpse ) |
References an(), bclose(), bflush(), bones, BUFSZ, dlevel_t::buriedobjlist, bwrite(), christen_monst(), clear_bypasses(), close(), cmap_to_glyph, COLNO, commit_bonesfile(), compress_bonesfile(), COUNT_SAVE, create_bonesfile(), monst::data, DEADMONSTER, delete_bonesfile(), display_nhwindow, dmonsfree(), drop_upon_death(), end_burn(), FALSE, flag::female, ffruit, fruit::fid, flags, fmon, fobj, FREE_SAVE, ftrap, HOLE, if(), iflags, in_mklev, Is_gold_dragon_armor, ledger_no(), level, levl, LOW_PM, m_dowear(), monst::m_id, monst::m_lev, makemon(), monst::mhp, monst::mhpmax, monst::minvent, mk_named_object(), monst::mlstmv, MM_NONAME, permonst::mname, mongone(), mons, MS_LEADER, MS_NEMESIS, permonst::msound, monst::mtame, newsym(), fruit::nextf, monst::nmon, NO_MM_FLAGS, NON_PM, trap::ntrap, obj_attach_mid(), open_bonesfile(), otmp, obj::otyp, obj::owornmask, paniclog(), pline(), plname, PM_CTHULHU, PM_GHOST, PM_MEDUSA, PM_VLAD_THE_IMPALER, rank(), resetobjs(), ROWNO, S_stone, savefruitchn(), savelev(), STATUE, store_version(), Strcpy, TRUE, u, uarm, uball, uchain, you::ugrave_arise, you::uhpmax, you::ulevel, you::umonnum, unleash_all(), update_mlstmv(), you::ux, you::uy, you::uz, WIN_MESSAGE, wizard, WRITE_SAVE, trap::x, trap::y, and yn.
Referenced by done().
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().
char bones[] |
Referenced by commit_bonesfile(), compress_bonesfile(), create_bonesfile(), delete_bonesfile(), getbones(), open_bonesfile(), read_config_file(), and savebones().