Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61014

Revealing contents in darkness
Submitted by: Cedric Knight     Appeared in: Library 6/7 or before     Fixed in: Library 6/11
Problem

If you are in a dark room, you cannot examine what you are holding. Yet if you open a container you brought in from a lit room, the standard message "You open the box, revealing a [cheese and pickle sandwich...]" is not suppressed.

Solution

Add another condition between lines 1726-7 of VerbLibm.h:

  if (noun has container && noun hasnt transparent && child(noun)~=0
      && location ~= thedark
      && IndirectlyContains(noun,player)==0)


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.