mimic orange follow-up
This commit is contained in:
10
src/vault.c
10
src/vault.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user