Functions

exper.c File Reference

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

Functions

STATIC_DCL long FDECL (newuexp,(int))
STATIC_DCL int FDECL (enermod,(int))
STATIC_OVL long newuexp (int lev)
STATIC_OVL int enermod (int en)
int experience (struct monst *mtmp, int nk)
void more_experienced (int exp, int score, int rexp)
void losexp (char *drainer) const
void newexplevel ()
void pluslvl (boolean incr)
long rndexp (boolean gaining)

Function Documentation

STATIC_OVL int enermod ( int  en )

References PM_BARBARIAN, PM_HEALER, PM_KNIGHT, PM_PRIEST, PM_VALKYRIE, PM_WIZARD, and Role_switch.

Referenced by losexp(), and pluslvl().

Here is the caller graph for this function:

int experience ( struct monst mtmp,
int  nk 
)

References attack::aatyp, AD_BLND, AD_DRLI, AD_PHYS, AD_SLIM, AD_STON, AD_WRAP, attack::adtyp, Amphibious, AT_BUTT, AT_MAGC, AT_WEAP, attack::damd, attack::damn, extra_nasty, find_mac(), permonst::mattk, permonst::mlet, permonst::mmove, mons, NATTK, NORMAL_SPEED, PM_MAIL_DAEMON, and S_EEL.

Referenced by xkilled().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL int FDECL ( enermod  ,
(int)   
)
STATIC_DCL long FDECL ( newuexp  ,
(int)   
)
void losexp ( char *  drainer ) const
void more_experienced ( int  exp,
int  score,
int  rexp 
)

Adds to Experience and Scoring counter

References flag::beginner, flag::botl, flags, PM_WIZARD, Role_if, u, you::uexp, you::urexp, and you::urscore.

Referenced by disarm_squeaky_board(), doconsult(), dopotion(), doread(), engrave(), fprefx(), seffects(), weffects(), xkilled(), and zapnodir().

Here is the caller graph for this function:

void newexplevel (  )

References MAXULEV, newuexp(), pluslvl(), TRUE, u, you::uexp, and you::ulevel.

Referenced by disarm_squeaky_board(), doconsult(), fprefx(), and xkilled().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL long newuexp ( int  lev )

Referenced by losexp(), newexplevel(), pluslvl(), and rndexp().

Here is the caller graph for this function:

void pluslvl ( boolean  incr )
long rndexp ( boolean  gaining )

References LARGEST_INT, MAXULEV, newuexp(), rn2(), u, you::uexp, and you::ulevel.

Referenced by newman(), and peffects().

Here is the call graph for this function:

Here is the caller graph for this function: