struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
erode_armor(mdef, ERODE_CORRODE);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
if (resists_acid(mdef))
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
if (can_blnd(magr, mdef, mattk->aatyp, (struct obj *) 0)) {
struct mhitm_data *mhm;
{
struct permonst *pa = magr->data;
- struct permonst *pd = mdef->data;
if (magr == &g.youmonst) {
/* uhitm */
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
/* there's no msomearmor() function, so just do damage */
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
if (!mdef->mconf) {
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
int armpro = magic_negation(mdef);
mhm->damage = mon_poly(magr, mdef, mhm->damage);
} else {
/* mhitm */
- int armpro = magic_negation(mdef);
- boolean cancelled = magr->mcan || !(rn2(10) >= 3 * armpro);
-
if (!magr->mcan && mhm->damage < mdef->mhp)
mhm->damage = mon_poly(magr, mdef, mhm->damage);
}
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
mhm->damage = 0;
mhm->damage = 0;
} else {
/* mhitm */
- int armpro = magic_negation(mdef);
- boolean cancelled = magr->mcan || !(rn2(10) >= 3 * armpro);
-
if (!magr->mcan && haseyes(pd) && mdef->mcansee) {
if (g.vis && canseemon(mdef))
pline("%s looks %sconfused.", Monnam(mdef),
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pa = magr->data;
struct permonst *pd = mdef->data;
/* may die from the acid if it eats a stone-curing corpse */
if (magr == &g.youmonst) {
/* uhitm */
- int armpro = magic_negation(mdef);
- /* since hero can't be cancelled, only defender's armor applies */
- boolean negated = !(rn2(10) >= 3 * armpro);
-
if (pd == &mons[PM_SHADE]) {
mhm->damage = 0;
if (!mhm->specialdmg)
}
} else if (mdef == &g.youmonst) {
/* mhitu */
- int armpro = magic_negation(mdef);
- boolean uncancelled = !magr->mcan && (rn2(10) >= 3 * armpro);
-
if (mattk->aatyp == AT_HUGS && !sticks(pd)) {
if (!u.ustuck && rn2(2)) {
if (u_slip_free(magr, mattk)) {
}
} else {
/* mhitm */
- int armpro = magic_negation(mdef);
- boolean cancelled = magr->mcan || !(rn2(10) >= 3 * armpro);
struct obj *mwep = MON_WEP(magr);
if (mattk->aatyp != AT_WEAP && mattk->aatyp != AT_CLAW)
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
if (!munstone(mdef, TRUE))
struct mhitm_data *mhm;
{
struct permonst *pa = magr->data;
- struct permonst *pd = mdef->data;
if (magr == &g.youmonst) {
/* uhitm */
return;
} else if (mdef == &g.youmonst) {
/* mhitu */
- int armpro = magic_negation(mdef);
- boolean uncancelled = !magr->mcan && (rn2(10) >= 3 * armpro);
-
/* a cancelled nurse is just an ordinary monster,
* nurses don't heal those that cause petrification */
if (magr->mcan || (Upolyd && touch_petrifies(pd))) {
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
#if 0
return;
} else if (mdef == &g.youmonst) {
/* mhitu */
- int armpro = magic_negation(mdef);
- boolean uncancelled = !magr->mcan && (rn2(10) >= 3 * armpro);
-
long side = rn2(2) ? RIGHT_SIDE : LEFT_SIDE;
const char *sidestr = (side == RIGHT_SIDE) ? "right" : "left",
*Monst_name = Monnam(magr), *leg = body_part(LEG);
struct monst *mdef;
struct mhitm_data *mhm;
{
- struct permonst *pd = mdef->data;
-
if (magr == &g.youmonst) {
/* uhitm */
mhm->damage = 0;
struct mhitm_data *mhm;
{
struct permonst *pa = magr->data;
- struct permonst *pd = mdef->data;
if (magr == &g.youmonst) {
/* uhitm */
struct mhitm_data *mhm;
{
struct permonst *pa = magr->data;
- struct permonst *pd = mdef->data;
if (magr == &g.youmonst) {
/* uhitm */
mhm->damage = 0;
} else if (mdef == &g.youmonst) {
/* mhitu */
- int armpro = magic_negation(mdef);
- boolean uncancelled = !magr->mcan && (rn2(10) >= 3 * armpro);
char buf[BUFSZ];
if (is_animal(magr->data)) {
}
} else {
/* mhitm */
- int armpro = magic_negation(mdef);
- boolean cancelled = magr->mcan || !(rn2(10) >= 3 * armpro);
struct obj *obj;
if (magr->mcan)
register struct attack *mattk;
int specialdmg; /* blessed and/or silver bonus against various things */
{
- register struct permonst *pd = mdef->data;
int armpro;
boolean negated;
struct mhitm_data mhm;