Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

OffersLight (lines 5127-5141)

5127  [ OffersLight i j;
5128      if (i == 0) rfalse;
5129      if (i has light) rtrue;
5130      objectloop (j in i)
5131          if (HasLightSource(j) == 1) rtrue;
5132      if (i has container) {
5133          if (i has open || i has transparent)
5134              return OffersLight(parent(i));
5135      }
5136      else {
5137          if (i has enterable || i has transparent || i has supporter)
5138              return OffersLight(parent(i));
5139      }
5140      rfalse;
5141  ];


Last updated 27 February 2004. 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 Graham Nelson assisted by C Knight.