more mimic follow-up bits

Address some complaints about an earlier patch.
This commit is contained in:
nethack.allison
2003-01-09 02:37:03 +00:00
parent f9b5bf82c5
commit 5336419465
4 changed files with 13 additions and 25 deletions

View File

@@ -134,9 +134,6 @@ invault()
#endif
struct monst *guard;
int trycount, vaultroom = (int)vault_occupied(u.urooms);
boolean mimickobj = (youmonst.m_ap_type == M_AP_OBJECT &&
(youmonst.mappearance > STRANGE_OBJECT &&
youmonst.mappearance < NUM_OBJECTS));
if(!vaultroom) {
u.uinvault = 0;
@@ -244,8 +241,9 @@ fnd:
else
pline("Someone else has entered the Vault.");
newsym(guard->mx,guard->my);
if (mimickobj || u.uundetected) {
if (mimickobj && youmonst.mappearance != GOLD_PIECE)
if (youmonst.m_ap_type == M_AP_OBJECT || u.uundetected) {
if (youmonst.m_ap_type == M_AP_OBJECT &&
youmonst.mappearance != GOLD_PIECE)
verbalize("Hey! who left that %s in here?", mimic_obj_name(&youmonst));
/* You're mimicking some object or you're hidden. */
pline("Puzzled, %s turns around and leaves.", mhe(guard));