Functions

polyself.c File Reference

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

Functions

STATIC_DCL void FDECL (polyman,(const char *, const char *))
STATIC_DCL void NDECL (break_armor)
STATIC_DCL void FDECL (drop_weapon,(int))
STATIC_DCL void NDECL (uunstick)
STATIC_DCL int FDECL (armor_to_dragon,(int))
STATIC_DCL void NDECL (newman)
void init_uasmon ()
void set_uasmon ()
boolean is_playermon_genocided ()
STATIC_OVL void polyman (char *fmt, char *arg) const
void change_sex ()
STATIC_OVL void newman ()
void polyself (boolean forcecontrol)
int polymon (int mntmp)
STATIC_OVL void break_armor ()
STATIC_OVL void drop_weapon (int alone)
void rehumanize ()
int dobreathe ()
int dospit ()
int doremove ()
int dospinweb ()
int dosummon ()
int dogaze ()
int dohide ()
int domindblast ()
STATIC_OVL void uunstick ()
void skinback (boolean silently)
const char * mbodypart (struct monst *mon, int part)
const char * body_part (int part)
int poly_gender ()
void ugolemeffects (int damtype, int dam)
STATIC_OVL int armor_to_dragon (int atyp)

Function Documentation

STATIC_OVL int armor_to_dragon ( int  atyp )
const char* body_part ( int  part )

References mbodypart(), and youmonst.

Referenced by able_to_loot(), artifact_hit(), at_your_feet(), attack(), bagotricks(), ballfall(), breakobj(), buzz(), can_twoweapon(), canletgo(), canwearobj(), cast_cleric_spell(), cast_wizard_spell(), chest_trap(), choke_dialogue(), chwepon(), corpse_chance(), cursed_book(), deadbook(), dip(), dipfountain(), do_break_wand(), do_oname(), do_takeoff(), doeat(), dokick(), domagictrap(), domonnoise(), domove(), doname_base(), doprwep(), doputon(), dosacrifice(), dosit(), dosounds(), dotrap(), dountrap(), dowipe(), dowrite(), drop_ball(), drop_boulder_on_monster(), drop_uswapwep(), eatcorpse(), engrave(), enlightenment(), feel_cockatrice(), fix_worst_trouble(), float_up(), food_detect(), fprefx(), glibr(), Gloves_off(), gold_detect(), gulpum(), heal_legs(), help_monster_out(), hitmu(), inside_gas_cloud(), intemple(), invocation_message(), jump(), kick_object(), lift_object(), m_throw(), make_blinded(), make_hallucinated(), nohandglow(), observe_quantum_cat(), on_msg(), opentin(), peffects(), potionbreathe(), potionhit(), readobjnam(), ready_weapon(), rottenfood(), seffects(), select_off(), slip_or_trip(), spelleffects(), start_tin(), stealgold(), throw_gold(), throw_obj(), throwit(), toss_up(), trap_detect(), use_container(), use_cream_pie(), use_grease(), use_mirror(), use_misc(), use_stethoscope(), use_towel(), use_whip(), ustatusline(), wary_dog(), weldmsg(), wield_tool(), wipeoff(), zap_dig(), and zap_updown().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void break_armor (  )
void change_sex (  )
int dobreathe (  )

References AD_ANY, attack::adtyp, AT_BREA, attacktype_fordmg(), flag::botl, buzz(), attack::damn, monst::data, you::dx, you::dy, flags, getdir(), Strangled, u, you::uen, you::ux, you::uy, and youmonst.

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

int dogaze (  )
int dohide (  )

References monst::data, M_AP_NOTHING, M_AP_OBJECT, monst::m_ap_type, monst::mappearance, permonst::mlet, newsym(), S_MIMIC, STRANGE_OBJECT, u, you::ux, you::uy, and youmonst.

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

int domindblast (  )

References BOLT_LIM, flag::botl, monst::data, DEADMONSTER, distu, flags, fmon, killed(), monst::mhp, mon_nam(), monst::mx, monst::my, monst::nmon, obj::otyp, pline(), rn2(), rnd(), s_suffix(), telepathic, TINFOIL_HAT, u, uarmh, you::uen, W_ARMH, which_armor(), and yname().

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

int doremove (  )

References Punished, and unpunish().

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

int dospinweb (  )
int dospit (  )

References ACID_VENOM, BLINDING_VENOM, FALSE, getdir(), mksobj(), otmp, PM_COBRA, obj::spe, throwit(), TRUE, u, and you::umonnum.

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

int dosummon (  )

References A_WIS, flag::botl, monst::data, exercise(), flags, pline(), TRUE, u, you::uen, were_summon(), and youmonst.

Referenced by domonability().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void drop_weapon ( int  alone )

References cantwield, could_twoweap, monst::data, dropx(), LOADSTONE, otmp, obj::otyp, you::twoweap, u, untwoweapon(), uswapwep, uswapwepgone(), uwep, uwepgone(), and youmonst.

Referenced by break_armor(), and polymon().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void FDECL ( polyman  ,
(const char *, const char *)   
)
STATIC_DCL int FDECL ( armor_to_dragon  ,
(int)   
)
STATIC_DCL void FDECL ( drop_weapon  ,
(int)   
)
void init_uasmon (  )

References Race::malenum, permonst::mattk, permonst::mflags1, permonst::mflags2, permonst::mflags3, mons, NATTK, PM_HUMAN, PM_VAMPIRE, Race_if, set_uasmon(), u, you::umonster, upermonst, and urace.

Referenced by restgamestate(), and u_init().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean is_playermon_genocided (  )

Returns true if the player monster is genocided.

References Race::femalenum, Role::femalenum, G_GENOD, Race::malenum, Role::malenum, mvitals::mvflags, NON_PM, urace, and urole.

Referenced by done(), and polyman().

Here is the caller graph for this function:

const char* mbodypart ( struct monst mon,
int  part 
)
STATIC_DCL void NDECL ( uunstick   )
STATIC_DCL void NDECL ( break_armor   )
STATIC_DCL void NDECL ( newman   )
STATIC_OVL void newman (  )
int poly_gender (  )

References monst::data, flag::female, flags, humanoid, is_neuter, and youmonst.

Referenced by Amulet_on(), beautiful(), could_seduce(), dokick(), domonnoise(), and use_crystal_ball().

Here is the caller graph for this function:

STATIC_OVL void polyman ( char *  fmt,
char *  arg 
) const
int polymon ( int  mntmp )

References A_CON, A_STR, A_WIS, ABASE, AMAX, amorphous, an(), armor_to_dragon(), AT_GAZE, AT_SPIT, attacktype(), Blind, Blinded, flag::botl, break_armor(), BUFSZ, can_breathe, d(), monst::data, delayed_killer, drop_weapon(), egg_type_from_parent(), encumber_msg(), exercise(), FALSE, flag::female, find_ac(), flags, flaming, Flying, G_GENOD, Glib, golemhp(), hides_under, In_endgame, is_female, is_golem, is_hider, is_home_elemental(), is_lava(), is_male, is_mind_flayer, is_neuter, is_pool(), is_unicorn, is_were, is_whirly, lays_eggs, learn_egg_type(), Levitation, likes_lava, M_AP_NOTHING, monst::m_ap_type, make_blinded(), make_sick(), you::mamax, you::mh, you::mhmax, permonst::mlet, permonst::mname, mon_nam(), mons, MS_SHRIEK, permonst::msize, permonst::msound, you::mtimedone, multi, MZ_SMALL, newsym(), nohands, OBJ_AT, obj::otyp, Passes_walls, pline(), PM_GRAY_DRAGON, PM_GREEN_SLIME, PM_GREMLIN, PM_STONE_GOLEM, poly_when_stoned(), u_conduct::polyselfs, Punished, rn1, rn2(), rnd(), rnl(), S_DRAGON, S_EEL, S_MIMIC, S_NYMPH, see_monsters(), set_uasmon(), Sick, SICK_ALL, Sick_resistance, skinback(), Slimed, spoteffects(), Sprintf, sticks(), Stone_resistance, Stoned, STR18, strongmonst, Swimming, touch_petrifies, TRUE, TT_BEARTRAP, TT_INFLOOR, TT_LAVA, TT_PIT, TT_WEB, u, you::uconduct, you::ulevel, you::ulycn, you::umonnum, Underwater, unmul(), unpunish(), unsolid, Upolyd, uskin, you::ustuck, you::utrap, you::utraptype, uunstick(), you::ux, you::uy, you::uz, flag::verbose, vision_full_recalc, webmaker, and youmonst.

Referenced by cprefx(), fpostfx(), gazemu(), help_monster_out(), hitmu(), in_container(), kick_object(), m_throw(), out_container(), passive(), peffects(), pickup_object(), polyself(), toss_up(), use_whip(), you_were(), and zapyourself().

Here is the call graph for this function:

Here is the caller graph for this function:

void polyself ( boolean  forcecontrol )
void rehumanize (  )
void set_uasmon (  )

References mons, set_mon_data(), u, you::umonnum, you::umonster, upermonst, and youmonst.

Referenced by change_sex(), display_minventory(), init_uasmon(), polyman(), and polymon().

Here is the call graph for this function:

Here is the caller graph for this function:

void skinback ( boolean  silently )

References I_SPECIAL, obj::owornmask, uarm, and uskin.

Referenced by polyman(), polymon(), and remove_worn_item().

Here is the caller graph for this function:

void ugolemeffects ( int  damtype,
int  dam 
)

References A_STR, AD_ELEC, AD_FIRE, flag::botl, exercise(), flags, you::mh, you::mhmax, pline(), PM_FLESH_GOLEM, PM_IRON_GOLEM, TRUE, u, and you::umonnum.

Referenced by explmu(), explode(), gulpmu(), passive(), zapyourself(), and zhitu().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_OVL void uunstick (  )

References Monnam(), pline(), u, and you::ustuck.

Referenced by polyman(), and polymon().

Here is the call graph for this function:

Here is the caller graph for this function: