]> granicus.if.org Git - nethack/commitdiff
teleporting monster strategy
authornethack.rankin <nethack.rankin>
Wed, 19 Feb 2003 09:55:17 +0000 (09:55 +0000)
committernethack.rankin <nethack.rankin>
Wed, 19 Feb 2003 09:55:17 +0000 (09:55 +0000)
     Reported last spring and again last week:  monsters who teleport to
your location (named demons, master liches, and so forth) continue to do
that even if they've just used a scroll or wand of teleportation to get
away from you.  This doesn't prevent that situation but does make it be
much less likely to occur.

doc/fixes34.1
src/wizard.c

index 4b84dc4e4b304646a602627a38d09007b19d7835..e9437ad5c2c2837a96ab9fa2c6015048824162bf 100644 (file)
@@ -393,6 +393,8 @@ character inflicted with lycanthropy is vulnerable to Werebane when in
 shopkeeper could get angry without remembering the customer name
 any object held by ghost during recorporealization would cease to exist
        including the Amulet of Yendor
+harassing monsters will be less likely to teleport to your location while
+       they're running away from you
 
 
 Platform- and/or Interface-Specific Fixes
index a1fc1b0222484d6fc4ba48165a29f05086963a6d..6c39f52ebdc6ace900b4c2be25ea332360f1f6e9 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)wizard.c   3.4     2002/04/09      */
+/*     SCCS Id: @(#)wizard.c   3.4     2003/02/18      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -325,7 +325,7 @@ tactics(mtmp)
                /* fall through :-) */
 
            case STRAT_NONE:    /* harrass */
-               if(!rn2(5)) mnexto(mtmp);
+               if (!rn2(!mtmp->mflee ? 5 : 33)) mnexto(mtmp);
                return(0);
 
            default:            /* kill, maim, pillage! */