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 web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.