Data Structures | Defines | Functions | Variables

worn.c File Reference

#include "hack.h"
Include dependency graph for worn.c:

Data Structures

struct  worn

Defines

#define w_blocks(o, m)
#define RACE_EXCEPTION   TRUE

Functions

STATIC_DCL void FDECL (m_lose_armor,(struct monst *, struct obj *))
STATIC_DCL void FDECL (m_dowear_type,(struct monst *, long, BOOLEAN_P, BOOLEAN_P))
STATIC_DCL int FDECL (extra_pref,(struct monst *, struct obj *))
void setworn (struct obj *obj, long mask)
void setnotworn (struct obj *obj)
void mon_set_minvis (struct monst *mon)
void mon_adjust_speed (struct monst *mon, int adjust, struct obj *obj)
void update_mon_intrinsics (struct monst *mon, struct obj *obj, boolean on, boolean silently)
int find_mac (struct monst *mon)
void m_dowear (struct monst *mon, boolean creation)
STATIC_OVL void m_dowear_type (struct monst *mon, long flag, boolean creation, boolean racialexception)
struct objwhich_armor (struct monst *mon, long flag)
STATIC_OVL void m_lose_armor (struct monst *mon, struct obj *obj)
void clear_bypasses ()
void bypass_obj (struct obj *obj)
void mon_break_armor (struct monst *mon, boolean polyspot)
static int extra_pref (struct monst *mon, struct obj *obj)
int racial_exception (struct monst *mon, struct obj *obj)

Variables

struct worn worn []

Define Documentation

#define RACE_EXCEPTION   TRUE

Referenced by m_dowear().

#define w_blocks (   o,
  m 
)
Value:
((o->otyp == MUMMY_WRAPPING && ((m) & W_ARMC)) ? INVIS : \
                 (o->otyp == TINFOIL_HAT && ((m) & W_ARMH)) ? TELEPAT : \
                 (o->otyp == CORNUTHAUM && ((m) & W_ARMH) && \
                        !Role_if(PM_WIZARD)) ? CLAIRVOYANT : 0)

Referenced by setnotworn(), setworn(), and update_mon_intrinsics().


Function Documentation

void bypass_obj ( struct obj obj )

References flag::bypasses, flags, and TRUE.

Referenced by bhitm(), make_corpse(), mon_break_armor(), newcham(), and possibly_unwield().

Here is the caller graph for this function:

void clear_bypasses (  )

References flag::bypasses, DEADMONSTER, FALSE, flags, fmon, fobj, get_obj_location(), migrating_mons, migrating_objs, monst::minvent, newsym(), monst::nmon, obj::nobj, objects, otmp, and obj::otyp.

Referenced by moveloop(), and savebones().

Here is the call graph for this function:

Here is the caller graph for this function:

static int extra_pref ( struct monst mon,
struct obj obj 
) [static]

References MFAST, obj::otyp, and SPEED_BOOTS.

Referenced by m_dowear_type().

Here is the caller graph for this function:

STATIC_DCL void FDECL ( m_dowear_type  ,
(struct monst *, long, BOOLEAN_P, BOOLEAN_P)   
)
STATIC_DCL void FDECL ( m_lose_armor  ,
(struct monst *, struct obj *)   
)
STATIC_DCL int FDECL ( extra_pref  ,
(struct monst *, struct obj *)   
)
int find_mac ( struct monst mon )

References ARM_BONUS, obj::nobj, and obj::owornmask.

Referenced by bhitm(), buzz(), drag_ball(), experience(), find_roll_to_hit(), mattackm(), mattacku(), mbhitm(), mstatusline(), ohitmon(), thitm(), and thitmonst().

Here is the caller graph for this function:

void m_dowear ( struct monst mon,
boolean  creation 
)
STATIC_OVL void m_dowear_type ( struct monst mon,
long  flag,
boolean  creation,
boolean  racialexception 
)
STATIC_OVL void m_lose_armor ( struct monst mon,
struct obj obj 
)

References FALSE, newsym(), obj_extract_self(), obj::owornmask, place_object(), and update_mon_intrinsics().

Referenced by mon_break_armor().

Here is the call graph for this function:

Here is the caller graph for this function:

void mon_adjust_speed ( struct monst mon,
int  adjust,
struct obj obj 
)
void mon_break_armor ( struct monst mon,
boolean  polyspot 
)
void mon_set_minvis ( struct monst mon )

References mons, newsym(), PM_GIANT_TURTLE, see_wsegs(), and unblock_point().

Referenced by bhitm(), cast_wizard_spell(), potionhit(), and use_misc().

Here is the call graph for this function:

Here is the caller graph for this function:

int racial_exception ( struct monst mon,
struct obj obj 
)

References is_elven_armor, mons, PM_HOBBIT, and raceptr().

Referenced by break_armor(), canwearobj(), and m_dowear_type().

Here is the call graph for this function:

Here is the caller graph for this function:

void setnotworn ( struct obj obj )
void setworn ( struct obj obj,
long  mask 
)
void update_mon_intrinsics ( struct monst mon,
struct obj obj,
boolean  on,
boolean  silently 
)
struct obj* which_armor ( struct monst mon,
long  flag 
) [read]

Variable Documentation

struct worn worn[]