File src/read.c


Included Files


Preprocessor definitions

#define DEVOUT 14

#define STRIDENT 4

#define Your_Own_Role( mndx )

#define Your_Own_Race( mndx )

#define is_elven_armor( optr )

#define REALLY 1

#define PLAYER 2


Global Variable known

boolean known
Visible in:  src/detect.c
   src/read.c
Used in: doread()src/read.c
  food_detect()src/detect.c
  forget_map()src/read.c
  gold_detect()src/detect.c
  seffects()src/read.c

Local Variables

readable
static const char readable[]
Used in: doread()

all_count
static const char all_count[]
Used in: seffects()


Global Function cant_create()

boolean cant_create ( int* mtype, boolean revival )
Prototyped in: include/extern.h
Called by: create_particular()src/read.c

Global Function create_particular()

boolean create_particular ( void )
Prototyped in: include/extern.h
Calls: cant_create()src/read.c
  makemon()src/makemon.c
  name_to_mon()src/mondata.c
  pline()src/pline.c
Called by: create_critters()src/makemon.c
  wiz_genesis()src/cmd.c
References Variables: c_common_stringssrc/decl.c
  monssrc/monst.c
  usrc/decl.c
  windowprocs

Global Function do_genocide()

void do_genocide ( int how )
Prototyped in: include/extern.h
Calls: You_feel()src/pline.c
  adjalign()src/attrib.c
  dmgtype()src/mondata.c
  done()src/end.c
  kill_genocided_monsters()src/mon.c
  lowc()src/hacklib.c
  makemon()src/makemon.c
  makeplural()src/objnam.c
  name_to_mon()src/mondata.c
  pline()src/pline.c
  rehumanize()src/polyself.c
  reset_rndmonst()src/makemon.c
  sgn()src/hacklib.c
  verbalize()src/pline.c
  rn2(), strcpy()
Called by: seffects()src/read.c
References Variables: c_common_stringssrc/decl.c
  delayed_killersrc/decl.c
  flagssrc/decl.c
  killersrc/decl.c
  killer_formatsrc/decl.c
  monssrc/monst.c
  mvitalssrc/decl.c
  usrc/decl.c
  youmonstsrc/decl.c
  urace, urole, windowprocs

Global Function doread()

int doread ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  You_cant()src/pline.c
  bcsign()src/mkobj.c
  check_capacity()src/hack.c
  discover_object()src/o_init.c
  dmgtype()src/mondata.c
  docall()src/do_name.c
  getobj()src/invent.c
  more_experienced()src/exper.c
  pline()src/pline.c
  seffects()src/read.c
  useup()src/invent.c
  wipeout_text()src/engrave.c
  outrumor(), sprintf(), strlen(), study_book()
Used in:  src/cmd.c
References Variables: c_common_stringssrc/decl.c
  flagssrc/decl.c
  knownsrc/read.c
  objectssrc/objects.c
  readablesrc/read.c
  usrc/decl.c
  uarmusrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function forget_levels()

void forget_levels ( int percent )
Prototyped in: include/extern.h
Calls: impossible()src/pline.c
  ledger_no()src/dungeon.c
  ledger_to_dnum()src/dungeon.c
  maxledgerno()src/dungeon.c
  randomize()src/read.c
Called by: forget()src/read.c
  hitmu()src/mhitu.c
References Variables: dungeon_topologysrc/decl.c
  level_infosrc/decl.c
  usrc/decl.c

Global Function forget_map()

void forget_map ( int howmuch )
Prototyped in: include/extern.h
Calls: rn2()
Called by: forget()src/read.c
  goto_level()src/do.c
References Variables: dungeon_topologysrc/decl.c
  knownsrc/read.c
  levelsrc/decl.c
  usrc/decl.c

Global Function forget_objects()

void forget_objects ( int percent )
Prototyped in: include/extern.h
Calls: forget_single_object()src/read.c
  impossible()src/pline.c
  randomize()src/read.c
Called by: forget()src/read.c
  hitmu()src/mhitu.c
References Variables: obj_descrsrc/objects.c
  objectssrc/objects.c

Global Function forget_traps()

void forget_traps ( void )
Prototyped in: include/extern.h
Called by: forget()src/read.c
  goto_level()src/do.c
References Variables: ftrapsrc/decl.c
  usrc/decl.c

Global Function is_chargeable()

boolean is_chargeable ( struct obj* obj )
Prototyped in: include/extern.h
Called by: getobj()src/invent.c
References Variables: objectssrc/objects.c

Global Function litroom()

void litroom ( boolean on, struct obj* obj )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  You()src/pline.c
  move_bc()src/ball.c
  on_level()src/dungeon.c
  pline()src/pline.c
  s_suffix()src/hacklib.c
  set_lit()src/read.c
  snuff_lit()src/apply.c
  do_clear_area(), vision_recalc()
Called by: do_break_wand()src/apply.c
  seffects()src/read.c
References Functions: set_lit()src/read.c
References Variables: dungeon_topologysrc/decl.c
  inventsrc/decl.c
  levelsrc/decl.c
  monssrc/monst.c
  roomssrc/decl.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uchainsrc/decl.c
  vision_full_recalcsrc/decl.c
  youmonstsrc/decl.c

Global Function punish()

void punish ( struct obj* sobj )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  Your()src/pline.c
  dropy()src/do.c
  mkobj()src/mkobj.c
  newsym()src/display.c
  placebc()src/ball.c
  pline()src/pline.c
  set_bc()src/ball.c
  setworn()
Called by: angrygods()src/pray.c
  seffects()src/read.c
References Variables: monssrc/monst.c
  usrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Global Function recharge()

void recharge ( struct obj* obj, int curse_bless )
Prototyped in: include/extern.h
Calls: Ring_gone()src/do_wear.c
  Ring_off()src/do_wear.c
  Ring_on()src/do_wear.c
  The()src/objnam.c
  You()src/pline.c
  Your()src/pline.c
  losehp()src/hack.c
  p_glow1()src/read.c
  p_glow2()src/read.c
  pline()src/pline.c
  stripspe()src/read.c
  useup()src/invent.c
  wand_explode()src/read.c
  xname()src/objnam.c
  abs(), d(), end_burn(), rn2(), rnd(), setworn()
Called by: arti_invoke()src/artifact.c
  seffects()src/read.c
References Variables: c_color_namessrc/decl.c
  c_common_stringssrc/decl.c
  objectssrc/objects.c
  usrc/decl.c
  ublindfsrc/decl.c
  uleftsrc/decl.c
  urightsrc/decl.c
  youmonstsrc/decl.c

Global Function seffects()

int seffects ( struct obj* sobj )
Prototyped in: include/extern.h
Calls: Armor_gone()src/do_wear.c
  Boots_off()src/do_wear.c
  Cloak_off()src/do_wear.c
  Gloves_off()src/do_wear.c
  Helmet_off()src/do_wear.c
  Monnam()src/do_name.c
  Shield_off()src/do_wear.c
  You()src/pline.c
  You_feel()src/pline.c
  You_hear()src/pline.c
  Your()src/pline.c
  adj_abon()src/do_wear.c
  aobjnam()src/objnam.c
  bcsign()src/mkobj.c
  blessorcurse()src/mkobj.c
  body_part()src/polyself.c
  ceiling()src/engrave.c
  change_luck()src/attrib.c
  closed_door()src/monmove.c
  create_critters()src/makemon.c
  cvt_sdoor_to_door()src/detect.c
  destroy_arm()src/do_wear.c
  discover_object()src/o_init.c
  dist2()src/hacklib.c
  dmgtype()src/mondata.c
  do_class_genocide()src/read.c
  do_genocide()src/read.c
  do_mapping()src/detect.c
  doname()src/objnam.c
  exercise()src/attrib.c
  explode()src/explode.c
  flooreffects()src/do.c
  food_detect()src/detect.c
  forget()src/read.c
  getobj()src/invent.c
  getpos()src/do_name.c
  gold_detect()src/detect.c
  hcolor()src/do_name.c
  identify_pack()src/invent.c
  impossible()src/pline.c
  isok()src/cmd.c
  litroom()src/read.c
  losehp()src/hack.c
  make_confused()src/potion.c
  make_stunned()src/potion.c
  makeplural()src/objnam.c
  map_invisible()src/display.c
  mksobj()src/mkobj.c
  mon_nam()src/do_name.c
  newsym()src/display.c
  on_level()src/dungeon.c
  p_glow2()src/read.c
  place_object()src/mkobj.c
  pline()src/pline.c
  pline_The()src/pline.c
  pronoun_gender()src/mondata.c
  punish()src/read.c
  recharge()src/read.c
  setmangry()src/mon.c
  shieldeff()src/display.c
  some_armor()src/do_wear.c
  stackobj()src/invent.c
  strange_feeling()src/potion.c
  strncmpi()src/hacklib.c
  tamedog()src/dog.c
  trap_detect()src/detect.c
  uncurse()src/mkobj.c
  unpunish()src/read.c
  useup()src/invent.c
  weight()src/mkobj.c
  xkilled()src/mon.c
  xname()src/objnam.c
  burn_away_slime(), chwepon(), create_gas_cloud(), d(), dmgval(), level_tele(), make_happy_shk(), resist(), rn2(), rnd(), setworn(), tele(), which_armor(), worm_known()
Called by: arti_invoke()src/artifact.c
  doread()src/read.c
References Variables: all_countsrc/read.c
  c_color_namessrc/decl.c
  c_common_stringssrc/decl.c
  dungeon_topologysrc/decl.c
  flagssrc/decl.c
  himsrc/decl.c
  inventsrc/decl.c
  knownsrc/read.c
  levelsrc/decl.c
  monssrc/monst.c
  nulsrc/decl.c
  objectssrc/objects.c
  plnamesrc/decl.c
  usrc/decl.c
  uarmsrc/decl.c
  uarmhsrc/decl.c
  uballsrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  viz_arraysrc/decl.c
  yncharssrc/decl.c
  youmonstsrc/decl.c
  urole, windowprocs

Global Function unpunish()

void unpunish ( void )
Prototyped in: include/extern.h
Calls: dealloc_obj()src/mkobj.c
  newsym()src/display.c
  obj_extract_self()src/mkobj.c
  setworn()
Called by: bury_an_obj()src/dig.c
  delallobj()src/invent.c
  dog_eat()src/dogmove.c
  doremove()src/polyself.c
  eatspecial()src/eat.c
  fix_worst_trouble()src/pray.c
  meatgold()src/mon.c
  polymon()src/polyself.c
  seffects()src/read.c
  use_bell()src/apply.c
References Variables: uballsrc/decl.c
  uchainsrc/decl.c

Local Function do_class_genocide()

static void do_class_genocide ( void )
Prototyped in: src/read.c
Calls: You()src/pline.c
  You_feel()src/pline.c
  def_char_to_monclass()src/drawing.c
  done()src/end.c
  kill_genocided_monsters()src/mon.c
  makeplural()src/objnam.c
  makesingular()src/objnam.c
  mongone()src/mon.c
  mungspaces()src/hacklib.c
  pline()src/pline.c
  quest_info()src/questpgr.c
  rehumanize()src/polyself.c
  reset_rndmonst()src/makemon.c
  strstri()src/hacklib.c
  strcpy(), strlen()
Called by: seffects()src/read.c
References Variables: c_common_stringssrc/decl.c
  def_monsymssrc/drawing.c
  flagssrc/decl.c
  killersrc/decl.c
  killer_formatsrc/decl.c
  levelsrc/decl.c
  monexplainsrc/drawing.c
  monssrc/monst.c
  mvitalssrc/decl.c
  usrc/decl.c
  urace, urole, windowprocs

Local Function forget()

static void forget ( int howmuch )
Prototyped in: src/read.c
Calls: docrt()src/display.c
  forget_levels()src/read.c
  forget_map()src/read.c
  forget_objects()src/read.c
  forget_traps()src/read.c
  losespells(), rn2()
Called by: seffects()src/read.c
References Variables: usrc/decl.c
  uballsrc/decl.c

Local Function forget_single_object()

static void forget_single_object ( int obj_id )
Prototyped in: src/read.c
Calls: undiscover_object()src/o_init.c
  free()
Called by: forget_objects()src/read.c
References Variables: objectssrc/objects.c

Local Function p_glow1()

static void p_glow1 ( struct obj* otmp )
Prototyped in: src/read.c
Calls: Your()src/pline.c
  xname()src/objnam.c
Called by: recharge()src/read.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function p_glow2()

static void p_glow2 ( struct obj* otmp, const char* color )
Prototyped in: src/read.c
Calls: Your()src/pline.c
  hcolor()src/do_name.c
  xname()src/objnam.c
Called by: recharge()src/read.c
  seffects()src/read.c
References Variables: usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c

Local Function randomize()

static void randomize ( int* indices, int count )
Prototyped in: src/read.c
Calls: rn2()
Called by: forget_levels()src/read.c
  forget_objects()src/read.c

Local Function set_lit()

static void set_lit ( int x, int y, genericptr_t val )
Prototyped in: src/read.c
Calls: snuff_light_source()src/light.c
Called by: litroom()src/read.c
Used in: litroom()src/read.c
References Variables: levelsrc/decl.c

Local Function stripspe()

static void stripspe ( struct obj* obj )
Prototyped in: src/read.c
Calls: Your()src/pline.c
  pline()src/pline.c
  xname()src/objnam.c
Called by: recharge()src/read.c
References Variables: c_common_stringssrc/decl.c

Local Function wand_explode()

static void wand_explode ( struct obj* obj )
Prototyped in: src/read.c
Calls: Your()src/pline.c
  exercise()src/attrib.c
  losehp()src/hack.c
  useup()src/invent.c
  xname()src/objnam.c
  rnd()
Called by: recharge()src/read.c
References Variables: usrc/decl.c
  windowprocs