File src/mondata.c


Included Files


Type struct alt_spl

struct alt_spl
struct alt_spl 
   { 
     const char* name; 
     short pm_val; 
   } 

Local Variables

grownups
static const short grownups[][2]
Used in: big_to_little()
  little_to_big()

levitate
static const char* levitate[2]
Used in: locomotion()

fly
static const char* fly[2]
Used in: locomotion()

slither
static const char* slither[2]
Used in: locomotion()

ooze
static const char* ooze[2]
Used in: locomotion()

crawl
static const char* crawl[2]
Used in: locomotion()


Global Function attacktype()

boolean attacktype ( struct permonst* ptr, int atyp )
Prototyped in: include/extern.h
Called by: artifact_hit()src/artifact.c
  dog_invent()src/dogmove.c
  domonability()src/cmd.c
  kick_monster()src/dokick.c
  make_familiar()src/dog.c
  makemon()src/makemon.c
  newcham()src/mon.c
  resists_blnd()src/mondata.c
  sticks()src/mondata.c
  tamedog()src/dog.c

Global Function big_to_little()

int big_to_little ( int montype )
Prototyped in: include/extern.h
Called by: dead_species()src/mon.c
References Variables: grownupssrc/mondata.c

Global Function breakarm()

boolean breakarm ( struct permonst* ptr )
Prototyped in: include/extern.h
Calls: sliparm()src/mondata.c
Called by: canwearobj()src/do_wear.c
References Variables: mons

Global Function can_blnd()

boolean can_blnd ( struct monst* magr, struct monst* mdef, uchar aatyp, struct obj* obj )
Prototyped in: include/extern.h
Calls: resists_blnd()src/mondata.c
  strcmp()
Called by: gulpmu()src/mhitu.c
  hitmu()src/mhitu.c
  mdamagem()src/mhitm.c
References Variables: inventsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  youmonstsrc/decl.c
  obj_descr, objects

Global Function can_track()

boolean can_track ( struct permonst* ptr )
Prototyped in: include/extern.h
References Variables: uwepsrc/decl.c

Global Function dmgtype()

boolean dmgtype ( struct permonst* ptr, int dtyp )
Prototyped in: include/extern.h
Called by: Helmet_on()src/do_wear.c
  arti_invoke()src/artifact.c
  bot2()src/botl.c
  castmu()src/mcastu.c
  cpostfx()src/eat.c
  destroy_drawbridge()src/dbridge.c
  dig_up_grave()src/dig.c
  display_inventory()src/invent.c
  display_monster()src/display.c
  display_warning()src/display.c
  do_entity()src/dbridge.c
  do_mname()src/do_name.c
  doaltarobj()src/do.c
  doengrave()src/engrave.c
  dog_hunger()src/dogmove.c
  domove()src/hack.c
  done_in_by()src/end.c
  dowatersnakes()src/fountain.c
  drinksink()src/fountain.c
  e_died()src/dbridge.c
  eataccessory()src/eat.c
  eatspecial()src/eat.c
  enlightenment()src/cmd.c
  exerper()src/attrib.c
  explmu()src/mhitu.c
  find_trap()src/detect.c
  fix_petrification()src/eat.c
  fprefx()src/eat.c
  givit()src/eat.c
  goto_level()src/do.c
  gulpmu()src/mhitu.c
  hcolor()src/do_name.c
  hitmu()src/mhitu.c
  its_dead()src/apply.c
  kick_object()src/dokick.c
  map_object()src/display.c
  map_trap()src/display.c
  monster_detect()src/detect.c
  monster_nearby()src/hack.c
  moveloop()src/allmain.c
  mrustm()src/mhitm.c
  newsym()src/display.c
  newuhs()src/eat.c
  object_detect()src/detect.c
  opentin()src/eat.c
  resists_blnd()src/mondata.c
  resists_magm()src/mondata.c
  rottenfood()src/eat.c
  sense_trap()src/detect.c
  set_trap()src/apply.c
  setmangry()src/mon.c
  sho_obj_return_to_u()src/dothrow.c
  sticks()src/mondata.c
  swallow_to_glyph()src/display.c
  swallowed()src/display.c
  throwit()src/dothrow.c
  urustm()src/mhitu.c
  use_crystal_ball()src/detect.c
  use_magic_whistle()src/apply.c
  use_mirror()src/apply.c
  use_trap()src/apply.c
  use_unicorn_horn()src/apply.c
  x_monnam()src/do_name.c
  xkilled()src/mon.c

Global Function gender()

int gender ( struct monst* mtmp )
Prototyped in: include/extern.h
Called by: could_seduce()src/mhitu.c

Global Function hates_silver()

boolean hates_silver ( struct permonst* ptr )
Prototyped in: include/extern.h
Called by: can_carry()src/mon.c
  dogfood()src/dog.c
References Variables: mons

Global Function levl_follower()

boolean levl_follower ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: is_fshk(), mon_has_amulet()
Called by: keepdogs()src/dog.c

Global Function little_to_big()

int little_to_big ( int montype )
Prototyped in: include/extern.h
Called by: can_be_hatched()src/mon.c
  grow_up()src/makemon.c
References Variables: grownupssrc/mondata.c

Global Function locomotion()

const char* locomotion ( const struct permonst* ptr, const char* def )
Prototyped in: include/extern.h
Calls: highc()src/hacklib.c
Called by: check_special_room()src/hack.c
  dodown()src/do.c
  fig_transform()src/apply.c
References Variables: crawlsrc/mondata.c
  flysrc/mondata.c
  levitatesrc/mondata.c
  oozesrc/mondata.c
  slithersrc/mondata.c

Global Function max_passive_dmg()

int max_passive_dmg ( struct monst* mdef, struct monst* magr )
Prototyped in: include/extern.h
Called by: dog_move()src/dogmove.c

Global Function monsndx()

int monsndx ( struct permonst* ptr )
Prototyped in: include/extern.h
Calls: panic()src/end.c
Called by: clone_mon()src/makemon.c
  cloneu()src/mhitu.c
  display_monster()src/display.c
  display_warning()src/display.c
  getbones()src/bones.c
  gold_detect()src/detect.c
  grow_up()src/makemon.c
  hitmu()src/mhitu.c
  is_home_elemental()src/makemon.c
  kill_genocided_monsters()src/mon.c
  lifesaved_monster()src/mon.c
  lminion()src/minion.c
  m_initinv()src/makemon.c
  m_initweap()src/makemon.c
  make_corpse()src/mon.c
  makemon()src/makemon.c
  mkcorpstat()src/mkobj.c
  mondead()src/mon.c
  monster_detect()src/detect.c
  msummon()src/minion.c
  ndemon()src/minion.c
  newcham()src/mon.c
  newsym()src/display.c
  restartcham()src/mon.c
  restore_cham()src/mon.c
  rndmonnum()src/mkobj.c
  save_mtraits()src/mkobj.c
  swallowed()src/display.c
  x_monnam()src/do_name.c
  xkilled()src/mon.c
References Variables: mons

Global Function name_to_mon()

int name_to_mon ( const char* in_str )
Prototyped in: include/extern.h
Calls: strncmpi()src/hacklib.c
  strstri()src/hacklib.c
  title_to_mon()src/botl.c
  strcpy(), strlen(), strncmp()
References Variables: mons

Global Function poly_when_stoned()

boolean poly_when_stoned ( struct permonst* ptr )
Prototyped in: include/extern.h
Called by: cprefx()src/eat.c
  eatcorpse()src/eat.c
  feel_cockatrice()src/invent.c
  fixup_special()src/mkmaze.c
  fpostfx()src/eat.c
  gazemu()src/mhitu.c
  hitmu()src/mhitu.c
  kick_object()src/dokick.c
  mdamagem()src/mhitm.c
  meatgold()src/mon.c
  passiveum()src/mhitu.c
  toss_up()src/dothrow.c
  use_tinning_kit()src/apply.c
  use_whip()src/apply.c
References Variables: mvitalssrc/decl.c
  mons

Global Function pronoun_gender()

int pronoun_gender ( struct monst* mtmp )
Prototyped in: include/extern.h
Calls: dist2()src/hacklib.c
  worm_known()
Called by: dog_move()src/dogmove.c
  doseduce()src/mhitu.c
  dowaterdemon()src/fountain.c
  gazemu()src/mhitu.c
  grow_up()src/makemon.c
  mdamagem()src/mhitm.c
  mon_nam_too()src/mhitm.c
  mswings()src/mhitu.c
  mswingsm()src/mhitm.c
  use_mirror()src/apply.c
  use_whip()src/apply.c
References Variables: flagssrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  viz_arraysrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function ranged_attk()

boolean ranged_attk ( struct permonst* ptr )
Prototyped in: include/extern.h

Global Function resists_blnd()

boolean resists_blnd ( struct monst* mon )
Prototyped in: include/extern.h
Calls: attacktype()src/mondata.c
  defends()src/artifact.c
  dmgtype()src/mondata.c
  protects()src/artifact.c
Called by: can_blnd()src/mondata.c
  doengrave()src/engrave.c
  explmu()src/mhitu.c
  gazemu()src/mhitu.c
  use_crystal_ball()src/detect.c
References Variables: inventsrc/decl.c
  usrc/decl.c
  ublindfsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c
  objects

Global Function resists_drli()

boolean resists_drli ( struct monst* mon )
Prototyped in: include/extern.h
Calls: defends()src/artifact.c
Called by: doseduce()src/mhitu.c
  enlightenment()src/cmd.c
  hitmu()src/mhitu.c
  losexp()src/exper.c
  mdamagem()src/mhitm.c
  spec_applies()src/artifact.c
References Variables: uwepsrc/decl.c
  youmonstsrc/decl.c
  mons

Global Function resists_magm()

boolean resists_magm ( struct monst* mon )
Prototyped in: include/extern.h
Calls: defends()src/artifact.c
  dmgtype()src/mondata.c
  protects()src/artifact.c
Called by: artifact_hit()src/artifact.c
  castmu()src/mcastu.c
  enlightenment()src/cmd.c
  explode()src/explode.c
  hitmu()src/mhitu.c
  spec_applies()src/artifact.c
  touch_artifact()src/artifact.c
References Variables: inventsrc/decl.c
  uwepsrc/decl.c
  youmonstsrc/decl.c
  mons, objects

Global Function set_mon_data()

void set_mon_data ( struct monst* mon, struct permonst* ptr, int flag )
Prototyped in: include/extern.h
Called by: grow_up()src/makemon.c
  makemon()src/makemon.c
  mondead()src/mon.c
  newcham()src/mon.c

Global Function sliparm()

boolean sliparm ( struct permonst* ptr )
Prototyped in: include/extern.h
Called by: breakarm()src/mondata.c
  canwearobj()src/do_wear.c
References Variables: mons

Global Function sticks()

boolean sticks ( struct permonst* ptr )
Prototyped in: include/extern.h
Calls: attacktype()src/mondata.c
  dmgtype()src/mondata.c
Called by: artifact_hit()src/artifact.c
  domove()src/hack.c
  enlightenment()src/cmd.c
  hitmu()src/mhitu.c
  newcham()src/mon.c
  slept_monst()src/mhitm.c
  tamedog()src/dog.c