#include "hack.h"
Data Structures | |
struct | innate |
Defines | |
#define | AVAL 50 |
#define | SATIATED 0 |
#define | NOT_HUNGRY 1 |
#define | HUNGRY 2 |
#define | WEAK 3 |
#define | FAINTING 4 |
#define | FAINTED 5 |
#define | STARVED 6 |
Functions | |
STATIC_DCL void | NDECL (exerper) |
STATIC_DCL void | FDECL (postadjabil,(long *)) |
boolean | adjattrib (int ndx, int incr, int msgflg) |
void | gainstr (struct obj *otmp, int incr) |
void | losestr (int num) |
void | change_luck (schar n) |
int | stone_luck (boolean parameter) |
void | set_moreluck () |
void | restore_attrib () |
void | exercise (int i, boolean inc_or_dec) |
STATIC_OVL void | exerper () |
void | exerchk () |
void | reset_attribute_clock () |
void | init_attr (int np) |
void | redist_attr () |
STATIC_OVL void | postadjabil (long *ability) |
void | adjabil (int oldlevel, int newlevel) |
int | newhp () |
schar | acurr (int x) |
schar | acurrstr () |
void | adjalign (int n) |
const char * | beautiful () |
int | uhp () |
int | uhpmax () |
Variables | |
static const char *const | plusattr [] |
static const char *const *const | minusattr [] |
static struct innate | arc_abil [] |
static struct innate | bar_abil [] |
static struct innate | cav_abil [] |
static struct innate | hea_abil [] |
static struct innate | kni_abil [] |
static struct innate | mon_abil [] |
static struct innate | pri_abil [] |
static struct innate | ran_abil [] |
static struct innate | rog_abil [] |
static struct innate | sam_abil [] |
static struct innate | tou_abil [] |
static struct innate | val_abil [] |
static struct innate | wiz_abil [] |
static struct innate | elf_abil [] |
static struct innate | orc_abil [] |
static long | next_check = 600L |
#define AVAL 50 |
Referenced by exerchk(), and exercise().
#define FAINTED 5 |
Referenced by exerper().
#define FAINTING 4 |
Referenced by exerper().
#define HUNGRY 2 |
Referenced by exerper(), and in_trouble().
#define NOT_HUNGRY 1 |
Referenced by exerper().
#define SATIATED 0 |
Referenced by exerper().
#define STARVED 6 |
#define WEAK 3 |
Referenced by exerper().
schar acurr | ( | int | x ) |
References A_CHA, A_INT, A_STR, A_WIS, monst::data, DUNCE_CAP, GAUNTLETS_OF_POWER, permonst::mlet, obj::otyp, PM_INCUBUS, PM_SUCCUBUS, S_NYMPH, u, uarmg, uarmh, you::umonnum, and youmonst.
Referenced by spelleffects().
void adjabil | ( | int | oldlevel, |
int | newlevel | ||
) |
References innate::ability, add_weapon_skill(), arc_abil, bar_abil, cav_abil, elf_abil, FROMEXPER, FROMOUTSIDE, FROMRACE, innate::gainstr, hea_abil, INTRINSIC, kni_abil, lose_weapon_skill(), innate::losestr, mon_abil, orc_abil, PM_ARCHEOLOGIST, PM_BARBARIAN, PM_CAVEMAN, PM_DWARF, PM_ELF, PM_GNOME, PM_HEALER, PM_HUMAN, PM_KNIGHT, PM_MONK, PM_ORC, PM_PRIEST, PM_RANGER, PM_ROGUE, PM_SAMURAI, PM_TOURIST, PM_VALKYRIE, PM_VAMPIRE, PM_WIZARD, postadjabil(), pri_abil, Race_switch, ran_abil, rog_abil, Role_switch, sam_abil, tou_abil, innate::ulevel, val_abil, and wiz_abil.
Referenced by losexp(), newman(), pluslvl(), and u_init().
void adjalign | ( | int | n ) |
References ALIGNLIM, align::record, u, and you::ualign.
Referenced by animate_statue(), bhitm(), break_statue(), check_caitiff(), choke(), dig_up_grave(), do_genocide(), domove(), dosacrifice(), find_roll_to_hit(), hmon_hitmon(), invault(), make_happy_shk(), pay_for_damage(), peffects(), pleased(), priest_talk(), prisoner_speaks(), reward_untrap(), rob_shop(), setmangry(), shopdig(), u_init(), violated(), and xkilled().
boolean adjattrib | ( | int | ndx, |
int | incr, | ||
int | msgflg | ||
) |
References A_CON, A_INT, A_STR, A_WIS, ABASE, ACURR, AMAX, ATTRMAX, ATTRMIN, flag::botl, DUNCE_CAP, encumber_msg(), FALSE, Fixed_abil, flags, minusattr, moves, obj::otyp, pline(), plusattr, TRUE, uarmh, and flag::verbose.
Referenced by altar_wrath(), angrygods(), cpostfx(), domagictrap(), done(), dosacrifice(), dosit(), drinkfountain(), eataccessory(), exerchk(), fix_attributes_and_properties(), gainstr(), hitmu(), losestr(), peffects(), poisoned(), and u_init().
const char* beautiful | ( | ) |
Returns "beautiful", "handsome" or "ugly" according to gender and charisma.
References A_CHA, ACURR, and poly_gender().
Referenced by do_mname(), and use_mirror().
void change_luck | ( | schar | n ) |
References LUCKMAX, LUCKMIN, u, and you::uluck.
Referenced by altar_wrath(), breakobj(), container_impact_dmg(), dosacrifice(), dosave0(), dosit(), drop_ball(), fracture_rock(), gem_accept(), hmon_hitmon(), hurtle(), jump(), maybe_cannibal(), moveloop(), moverock(), passive(), poly_obj(), prayer_done(), ready_weapon(), seffects(), ship_object(), u_init(), use_magic_whistle(), and xkilled().
void exerchk | ( | ) |
void exercise | ( | int | i, |
boolean | inc_or_dec | ||
) |
References A_CHA, A_CON, A_DEX, A_INT, A_STR, A_WIS, ACURR, AEXE, AVAL, encumber_msg(), moves, pline(), rn2(), and Upolyd.
Referenced by artitouch(), attack(), b_trapped(), break_armor(), breakobj(), chat_with_leader(), check_unpaid_usage(), chest_trap(), choke(), choke_dialogue(), chwepon(), consume_offering(), damageum(), demonpet(), destroy_item(), dig_up_grave(), dip(), dipfountain(), discover_object(), do_improvisation(), do_mapping(), do_play_instrument(), doclose(), doconsult(), dofindgem(), dokick(), domove(), dosacrifice(), dosearch0(), dosit(), dospinweb(), dosummon(), dotele(), dotrap(), doturn(), dowrite(), dozap(), drag_down(), drinkfountain(), eatspecial(), engrave(), exerper(), explode(), find_trap(), food_detect(), forcelock(), getrumor(), ghod_hitsu(), gold_detect(), gulpmu(), gulpum(), hitmu(), hitum(), hmon_hitmon(), kick_monster(), kickdmg(), learn(), losespells(), make_engr_at(), make_sick(), move_into_trap(), moveloop(), moverock(), outrumor(), passive(), peffects(), picklock(), pickup_object(), polymon(), polyself(), potionbreathe(), prayer_done(), priest_talk(), seffects(), slime_dialogue(), spelleffects(), stoned_dialogue(), test_move(), thitmonst(), thitu(), throwit(), throwspell(), touch_artifact(), u_slow_down(), ugolemeffects(), untrap(), violated(), vomiting_dialogue(), wand_explode(), weffects(), zapnodir(), zapyourself(), and zhitu().
STATIC_OVL void exerper | ( | ) |
References A_CON, A_DEX, A_STR, A_WIS, BClairvoyant, Confusion, exercise(), EXT_ENCUMBER, FAINTED, FAINTING, FALSE, Fumbling, Hallucination, HClairvoyant, HRegeneration, HStun, HUNGRY, HVY_ENCUMBER, INTRINSIC, MOD_ENCUMBER, moves, near_capacity(), NOT_HUNGRY, pline(), PM_MONK, Role_if, SATIATED, Sick, STEED, TIMEOUT, TRUE, u, you::uhunger, Vomiting, WEAK, and Wounded_legs.
Referenced by exerchk().
STATIC_DCL void FDECL | ( | postadjabil | , |
(long *) | |||
) |
void gainstr | ( | struct obj * | otmp, |
int | incr | ||
) |
void init_attr | ( | int | np ) |
void losestr | ( | int | num ) |
References A_STR, ABASE, adjattrib(), you::mh, you::mhmax, TRUE, u, you::uhp, you::uhpmax, and Upolyd.
Referenced by cast_wizard_spell(), cursed_book(), doeat(), drinkfountain(), eatcorpse(), fix_worst_trouble(), and newuhs().
STATIC_DCL void NDECL | ( | exerper | ) |
int newhp | ( | ) |
References A_CON, ACURR, aligns, flags, RoleAdvance::hifix, RoleAdvance::hirnd, Race::hpadv, Role::hpadv, RoleAdvance::infix, flag::initalign, Role::initrecord, RoleAdvance::inrnd, RoleAdvance::lofix, RoleAdvance::lornd, align::record, rnd(), align::type, u, you::ualign, you::ulevel, urace, urole, Align::value, and Role::xlev.
Referenced by losexp(), peffects(), pluslvl(), and u_init().
STATIC_OVL void postadjabil | ( | long * | ability ) |
References HSee_invisible, HWarning, and see_monsters().
Referenced by adjabil().
void redist_attr | ( | ) |
void reset_attribute_clock | ( | ) |
void restore_attrib | ( | ) |
References A_CON, A_MAX, ACURR, ATEMP, ATIME, and encumber_msg().
Referenced by moveloop().
void set_moreluck | ( | ) |
References carrying(), LUCKADD, LUCKSTONE, you::moreluck, stone_luck(), TRUE, and u.
Referenced by addinv_core2(), bless(), curse(), freeinv_core(), unbless(), and uncurse().
int stone_luck | ( | boolean | parameter ) |
References confers_luck(), invent, obj::nobj, otmp, obj::quan, and sgn().
Referenced by enlightenment(), nh_timeout(), and set_moreluck().
int uhp | ( | ) |
int uhpmax | ( | ) |
Returns the maximal hitpoints of your current form.
References you::mhmax, u, you::uhpmax, and Upolyd.
Referenced by bot1(), and Ring_on().
const char* const * const minusattr[] |
{ "weak", "stupid", "foolish", "clumsy", "fragile", "repulsive" }
Referenced by adjattrib().
long next_check = 600L [static] |
const char* const plusattr[] [static] |
{ "strong", "smart", "wise", "agile", "tough", "charismatic" }
Referenced by adjattrib().