#include "hack.h"
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) |
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().
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().
STATIC_DCL int FDECL | ( | enermod | , |
(int) | |||
) |
STATIC_DCL long FDECL | ( | newuexp | , |
(int) | |||
) |
void losexp | ( | char * | drainer ) | const |
References A_WIS, ACURR, adjabil(), flag::botl, DIED, done(), Race::enadv, Role::enadv, enermod(), flags, Goodbye(), RoleAdvance::hifix, RoleAdvance::hirnd, KILLED_BY, killer, killer_format, RoleAdvance::lofix, RoleAdvance::lornd, newhp(), newuexp(), NON_PM, pline(), reset_rndmonst(), resists_drli(), rn1, u, you::uen, you::uenmax, you::uexp, you::uhp, you::uhpmax, you::ulevel, urace, urole, Role::xlev, and youmonst.
Referenced by angrygods(), artifact_hit(), hitmu(), and zapyourself().
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().
void newexplevel | ( | ) |
References MAXULEV, newuexp(), pluslvl(), TRUE, u, you::uexp, and you::ulevel.
Referenced by disarm_squeaky_board(), doconsult(), fprefx(), and xkilled().
STATIC_OVL long newuexp | ( | int | lev ) |
Referenced by losexp(), newexplevel(), pluslvl(), and rndexp().
void pluslvl | ( | boolean | incr ) |
References A_WIS, ACURR, adjabil(), flag::botl, Race::enadv, Role::enadv, enermod(), flags, RoleAdvance::hifix, RoleAdvance::hirnd, RoleAdvance::lofix, RoleAdvance::lornd, MAXULEV, you::mh, you::mhmax, newhp(), newuexp(), NON_PM, pline(), reset_rndmonst(), rn1, rnd(), u, you::uen, you::uenmax, you::uexp, you::uhp, you::uhpmax, you::ulevel, you::ulevelmax, Upolyd, urace, urole, and Role::xlev.
Referenced by cpostfx(), newexplevel(), peffects(), and pleased().
long rndexp | ( | boolean | gaining ) |
References LARGEST_INT, MAXULEV, newuexp(), rn2(), u, you::uexp, and you::ulevel.
Referenced by newman(), and peffects().