mimic orange follow-up

This commit is contained in:
nethack.allison
2003-01-04 16:28:21 +00:00
parent 6e954a9c51
commit 886749e21b
5 changed files with 42 additions and 17 deletions

View File

@@ -134,6 +134,9 @@ 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;
@@ -241,9 +244,10 @@ fnd:
else
pline("Someone else has entered the Vault.");
newsym(guard->mx,guard->my);
if ((youmonst.m_ap_type == M_AP_OBJECT &&
youmonst.mappearance == GOLD_PIECE) || u.uundetected) {
/* You're mimicking a pile of gold or you're hidden. */
if (mimickobj || u.uundetected) {
if (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));
mongone(guard);
return;