fix #K376 - tipping cap
Allow #tip to do something if you pick your worn helmet instead of a container. It's mostly just a variation of #chat but probably adds several new bugs....
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 pickup.c $NHDT-Date: 1578297247 2020/01/06 07:54:07 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.258 $ */
|
||||
/* NetHack 3.6 pickup.c $NHDT-Date: 1581985559 2020/02/18 00:25:59 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.261 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -3171,6 +3171,8 @@ dotip()
|
||||
/* anything not covered yet */
|
||||
if (cobj->oclass == POTION_CLASS) /* can't pour potions... */
|
||||
pline_The("%s %s securely sealed.", xname(cobj), otense(cobj, "are"));
|
||||
else if (uarmh && cobj == uarmh)
|
||||
return tiphat();
|
||||
else if (cobj->otyp == STATUE)
|
||||
pline("Nothing interesting happens.");
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user