]> granicus.if.org Git - nethack/commitdiff
monsters jumping into hidden traps
authorcohrs <cohrs>
Mon, 25 Feb 2002 01:02:55 +0000 (01:02 +0000)
committercohrs <cohrs>
Mon, 25 Feb 2002 01:02:55 +0000 (01:02 +0000)
- if a monster jumps into a trap in an SCORR, and you see it, convert to CORR

doc/fixes34.0
src/muse.c

index a3f384e39e842849da0174430a9dbfc2ad38c863..c341723af3173da0580389fb591d47bc836385e1 100644 (file)
@@ -443,6 +443,7 @@ allow fake player monsters to handle artifacts that don't match alignment/role
 chaotic monsters can use Stormbringer; lawful monsters can use Excalibur
 No "corridor disappears" message if Vault guard dies off-level
 slip while mounting and levitating at will should not cause damage
+if you see a monster jump into a trap in a secret corridor, it's not secret
 
 
 Platform- and/or Interface-Specific Fixes
index a906cb19f289ba9df7162be34294952bf7914349..f1e7f0df8a7f9d5ab0ef346b2aea2c92a16d1b3d 100644 (file)
@@ -717,6 +717,10 @@ mon_tele:
                        pline("%s %s into a %s!", Monnam(mtmp),
                        makeplural(locomotion(mtmp->data, "jump")),
                        t->ttyp == TRAPDOOR ? "trap door" : "hole");
+                       if (levl[trapx][trapy].typ == SCORR) {
+                           levl[trapx][trapy].typ = CORR;
+                           unblock_point(trapx, trapy);
+                       }
                        seetrap(t_at(trapx,trapy));
                }
 
@@ -803,6 +807,10 @@ mon_tele:
                if (vis) {
                        pline("%s %s onto a teleport trap!", Monnam(mtmp),
                                makeplural(locomotion(mtmp->data, "jump")));
+                       if (levl[trapx][trapy].typ == SCORR) {
+                           levl[trapx][trapy].typ = CORR;
+                           unblock_point(trapx, trapy);
+                       }
                        seetrap(t_at(trapx,trapy));
                }
                /*  don't use rloc_to() because worm tails must "move" */