H5239 not hypocrisy to speed up your own pet
H5239 1100
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 zap.c $NHDT-Date: 1513297348 2017/12/15 00:22:28 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.270 $ */
|
||||
/* NetHack 3.6 zap.c $NHDT-Date: 1520705645 2018/03/10 18:14:05 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.271 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -137,6 +137,7 @@ struct obj *otmp;
|
||||
boolean wake = TRUE; /* Most 'zaps' should wake monster */
|
||||
boolean reveal_invis = FALSE, learn_it = FALSE;
|
||||
boolean dbldam = Role_if(PM_KNIGHT) && u.uhave.questart;
|
||||
boolean helpful_gesture = FALSE;
|
||||
int dmg, otyp = otmp->otyp;
|
||||
const char *zap_type_text = "spell";
|
||||
struct obj *obj;
|
||||
@@ -192,6 +193,8 @@ struct obj *otmp;
|
||||
mon_adjust_speed(mtmp, 1, otmp);
|
||||
m_dowear(mtmp, FALSE); /* might want speed boots */
|
||||
}
|
||||
if (mtmp->mtame)
|
||||
helpful_gesture = TRUE;
|
||||
break;
|
||||
case WAN_UNDEAD_TURNING:
|
||||
case SPE_TURN_UNDEAD:
|
||||
@@ -426,7 +429,7 @@ struct obj *otmp;
|
||||
}
|
||||
if (wake) {
|
||||
if (mtmp->mhp > 0) {
|
||||
wakeup(mtmp, TRUE);
|
||||
wakeup(mtmp, helpful_gesture ? FALSE : TRUE);
|
||||
m_respond(mtmp);
|
||||
if (mtmp->isshk && !*u.ushops)
|
||||
hot_pursuit(mtmp);
|
||||
|
||||
Reference in New Issue
Block a user