/* To see a container's closed status when looking inside in nohassle mode, use this code in tbaMUD 3.62 act.informative.c code at line 552. Reverse the order of the questions (if statements) to display closed status before contents, include parentheses "(It is closed.)", etc., or skip this modification. Though the goal of this modification is to aprise nohassle mode "look in'ers" that a closed container is closed, including facts other than ones called for by a player is a potential style issue. */ if (GET_OBJ_TYPE(obj) == ITEM_CONTAINER) { /* is the container open or the observer in nohassle mode? */ if ((!OBJVAL_FLAGGED(obj, CONT_CLOSED)) || PRF_FLAGGED(ch, PRF_NOHASSLE)) { send_to_char(ch, "%s", fname(obj->name)); switch (bits) { case FIND_OBJ_INV: send_to_char(ch, " (carried): \r\n"); break; case FIND_OBJ_ROOM: send_to_char(ch, " (here): \r\n"); break; case FIND_OBJ_EQUIP: send_to_char(ch, " (used): \r\n"); break; } list_obj_to_char(obj->contains, ch, SHOW_OBJ_SHORT, TRUE); } /* is the container closed? */ if OBJVAL_FLAGGED(obj, CONT_CLOSED) { send_to_char(ch, "It is closed.\r\n"); }