File src/wield.c

Functions that place a given item in a slot


Included Files


Preprocessor definitions

#define is_elven_weapon( optr )

#define erodeable_wep( optr )

#define will_weld( optr )

#define NOT_WEAPON( obj )


Local Variables

wield_objs
static const char wield_objs[]
Used in: dowield()

ready_objs
static const char ready_objs[]
Used in: dowieldquiver()

bullets
static const char bullets[]
Used in: dowieldquiver()


Global Function can_twoweapon()

int can_twoweapon ( void )
Prototyped in: include/extern.h
Calls: Yname2()src/objnam.c
  You()src/pline.c
  You_cant()src/pline.c
  Your()src/pline.c
  an()src/objnam.c
  aobjnam()src/objnam.c
  body_part()src/polyself.c
  dropx()src/do.c
  instapetrify()src/trap.c
  makeplural()src/objnam.c
  pline()src/pline.c
  setuswapwep()src/wield.c
  sprintf()
Called by: attack()src/uhitm.c
  doswapweapon()src/wield.c
  dotwoweapon()src/wield.c
References Variables: monssrc/monst.c
  objectssrc/objects.c
  usrc/decl.c
  uarmgsrc/decl.c
  uarmssrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function chwepon()

int chwepon ( struct obj* otmp, int amount )
Prototyped in: include/extern.h
Calls: Your()src/pline.c
  aobjnam()src/objnam.c
  body_part()src/polyself.c
  exercise()src/attrib.c
  hcolor()src/do_name.c
  makeplural()src/objnam.c
  restrict_name()src/artifact.c
  rn2()src/rnd.c
  strange_feeling()src/potion.c
  useup()src/invent.c
  sprintf()
Called by: seffects()src/read.c
References Variables: c_color_namessrc/decl.c
  objectssrc/objects.c
  usrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function doswapweapon()

int doswapweapon ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  can_twoweapon()src/wield.c
  pline()src/pline.c
  prinv()src/invent.c
  ready_weapon()src/wield.c
  setuswapwep()src/wield.c
  untwoweapon()src/wield.c
  welded()src/wield.c
  weldmsg()src/wield.c
Called by: dowield()src/wield.c
  wield_tool()src/apply.c
Used in:  src/cmd.c
References Variables: multisrc/decl.c
  usrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c

Global Function dotwoweapon()

int dotwoweapon ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  acurr()src/attrib.c
  can_twoweapon()src/wield.c
  rnd()src/rnd.c
Used in:  src/cmd.c
References Variables: usrc/decl.c
  windowprocs

Global Function dowield()

int dowield ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  doswapweapon()src/wield.c
  getobj()src/invent.c
  pline()src/pline.c
  ready_weapon()src/wield.c
  setuqwep()src/wield.c
  setuswapwep()src/wield.c
  untwoweapon()src/wield.c
  welded()src/wield.c
  weldmsg()src/wield.c
Used in:  src/cmd.c
References Variables: flagssrc/decl.c
  multisrc/decl.c
  objectssrc/objects.c
  unweaponsrc/decl.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  wield_objssrc/wield.c
  youmonstsrc/decl.c
  zeroobjsrc/decl.c

Global Function dowieldquiver()

int dowieldquiver ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
  getobj()src/invent.c
  pline()src/pline.c
  prinv()src/invent.c
  setuqwep()src/wield.c
  setuswapwep()src/wield.c
  untwoweapon()src/wield.c
Used in:  src/cmd.c
References Variables: bulletssrc/wield.c
  flagssrc/decl.c
  multisrc/decl.c
  objectssrc/objects.c
  ready_objssrc/wield.c
  uquiversrc/decl.c
  uswapwepsrc/decl.c
  uwepsrc/decl.c
  zeroobjsrc/decl.c

Global Function erode_weapon()

void erode_weapon ( struct obj* target, boolean acid_dmg )
Prototyped in: include/extern.h
Calls: Monnam()src/do_name.c
  Your()src/pline.c
  aobjnam()src/objnam.c
  grease_protect()src/trap.c
  panic()src/end.c
  pline()src/pline.c
  worm_known()
Called by: dotrap()src/trap.c
  mdamagem()src/mhitm.c
  mintrap()src/trap.c
  passive()src/uhitm.c
  passiveum()src/mhitu.c
References Variables: flagssrc/decl.c
  objectssrc/objects.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c

Global Function setuqwep()

void setuqwep ( struct obj* obj )
Prototyped in: include/extern.h
Calls: setworn()
Called by: Blindf_on()src/do_wear.c
  Ring_on()src/do_wear.c
  autoquiver()src/dothrow.c
  ballfall()src/ball.c
  ckfn()src/invent.c
  do_takeoff()src/do_wear.c
  doseduce()src/mhitu.c
  dowear()src/do_wear.c
  dowield()src/wield.c
  dowieldquiver()src/wield.c
  drop()src/do.c
  getobj()src/invent.c
  goto_level()src/do.c
  hold_another_object()src/invent.c
  in_container()src/pickup.c
  ini_inv()src/u_init.c
  menu_drop()src/do.c
  menu_loot()src/pickup.c
  start_tin()src/eat.c
  throw_obj()src/dothrow.c
  wield_tool()src/apply.c
References Variables: windowprocs

Global Function setuswapwep()

void setuswapwep ( struct obj* obj )
Prototyped in: include/extern.h
Calls: setworn()
Called by: Blindf_on()src/do_wear.c
  Ring_on()src/do_wear.c
  ballfall()src/ball.c
  can_twoweapon()src/wield.c
  ckfn()src/invent.c
  do_takeoff()src/do_wear.c
  doseduce()src/mhitu.c
  doswapweapon()src/wield.c
  dowear()src/do_wear.c
  dowield()src/wield.c
  dowieldquiver()src/wield.c
  drop()src/do.c
  getobj()src/invent.c
  glibr()src/do_wear.c
  goto_level()src/do.c
  in_container()src/pickup.c
  ini_inv()src/u_init.c
  menu_drop()src/do.c
  menu_loot()src/pickup.c
  start_tin()src/eat.c
  throw_obj()src/dothrow.c
References Variables: windowprocs

Global Function setuwep()

void setuwep ( struct obj* obj )
Prototyped in: include/extern.h
Calls: setworn()
Called by: Blindf_on()src/do_wear.c
  Ring_on()src/do_wear.c
  ballfall()src/ball.c
  ckfn()src/invent.c
  dig()src/dig.c
  do_takeoff()src/do_wear.c
  doputon()src/do_wear.c
  doseduce()src/mhitu.c
  dowear()src/do_wear.c
  drop()src/do.c
  emergency_disrobe()src/trap.c
  getobj()src/invent.c
  glibr()src/do_wear.c
  goto_level()src/do.c
  hmon_hitmon()src/uhitm.c
  in_container()src/pickup.c
  ini_inv()src/u_init.c
  litter()src/ball.c
  menu_drop()src/do.c
  menu_loot()src/pickup.c
  ready_weapon()src/wield.c
  restgamestate()src/restore.c
  start_tin()src/eat.c
  throw_obj()src/dothrow.c
  throwit()src/dothrow.c
  use_whip()src/apply.c
  wield_tool()src/apply.c
References Variables: objectssrc/objects.c
  unweaponsrc/decl.c
  uwepsrc/decl.c
  windowprocs

Global Function untwoweapon()

void untwoweapon ( void )
Prototyped in: include/extern.h
Calls: You()src/pline.c
Called by: attack()src/uhitm.c
  doswapweapon()src/wield.c
  dowield()src/wield.c
  dowieldquiver()src/wield.c
  drop_weapon()src/polyself.c
  oname()src/do_name.c
  wield_tool()src/apply.c
References Variables: usrc/decl.c
  windowprocs

Global Function uqwepgone()

void uqwepgone ( void )
Prototyped in: include/extern.h
Calls: setworn()
Called by: eatspecial()src/eat.c
  lava_effects()src/trap.c
  rot_corpse()src/dig.c
  steal()src/steal.c
References Variables: uquiversrc/decl.c
  windowprocs

Global Function uswapwepgone()

void uswapwepgone ( void )
Prototyped in: include/extern.h
Calls: setworn()
Called by: Gloves_off()src/do_wear.c
  eatspecial()src/eat.c
  lava_effects()src/trap.c
  rot_corpse()src/dig.c
  steal()src/steal.c
References Variables: uswapwepsrc/decl.c
  windowprocs

Global Function uwepgone()

void uwepgone ( void )
Prototyped in: include/extern.h
Calls: setworn()
Called by: Gloves_off()src/do_wear.c
  drop_weapon()src/polyself.c
  eatspecial()src/eat.c
  lava_effects()src/trap.c
  rot_corpse()src/dig.c
  steal()src/steal.c
  use_misc()src/muse.c
References Variables: unweaponsrc/decl.c
  uwepsrc/decl.c
  windowprocs

Global Function welded()

int welded ( struct obj* obj )
Prototyped in: include/extern.h
Called by: canwearobj()src/do_wear.c
  ckfn()src/invent.c
  cursed()src/do_wear.c
  dig()src/dig.c
  doputon()src/do_wear.c
  doremring()src/do_wear.c
  doseduce()src/mhitu.c
  doswapweapon()src/wield.c
  dotakeoff()src/do_wear.c
  dountrap()src/trap.c
  dowield()src/wield.c
  drop()src/do.c
  emergency_disrobe()src/trap.c
  fix_worst_trouble()src/pray.c
  freehand()src/engrave.c
  glibr()src/do_wear.c
  in_container()src/pickup.c
  in_trouble()src/pray.c
  menu_drop()src/do.c
  pleased()src/pray.c
  select_off()src/do_wear.c
  throw_obj()src/dothrow.c
  wield_tool()src/apply.c
References Variables: objectssrc/objects.c
  uwepsrc/decl.c

Global Function weldmsg()

void weldmsg ( struct obj* obj )
Prototyped in: include/extern.h
Calls: Your()src/pline.c
  body_part()src/polyself.c
  makeplural()src/objnam.c
  xname()src/objnam.c
Called by: doputon()src/do_wear.c
  doswapweapon()src/wield.c
  dowield()src/wield.c
  drop()src/do.c
  in_container()src/pickup.c
  throw_obj()src/dothrow.c
References Variables: objectssrc/objects.c

Local Function ready_weapon()

static int ready_weapon ( struct obj* wep )
Prototyped in: src/wield.c
Calls: The()src/objnam.c
  You()src/pline.c
  an()src/objnam.c
  aobjnam()src/objnam.c
  arti_speak()src/artifact.c
  body_part()src/polyself.c
  inside_shop()src/shk.c
  instapetrify()src/trap.c
  makeplural()src/objnam.c
  pline()src/pline.c
  prinv()src/invent.c
  setuwep()src/wield.c
  shkname()src/shk.c
  shop_keeper()src/shk.c
  touch_artifact()src/artifact.c
  xname()src/objnam.c
  sprintf(), strncmp()
Called by: doswapweapon()src/wield.c
  dowield()src/wield.c
References Variables: monssrc/monst.c
  objectssrc/objects.c
  usrc/decl.c
  uarmgsrc/decl.c
  uarmssrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c