Inform - Support - Source

Back to List

Inventory
Complete

Backward
Forward

Plain
Coloured
Gaudy

This code
in plain text

Browsing parserm.h

OffersLight (lines 4151-4165)

4151  [ OffersLight i j;
4152     if (i==0) rfalse;
4153     if (i has light) rtrue;
4154     objectloop (j in i)
4155         if (HasLightSource(j)==1) rtrue;
4156     if (i has container)
4157     {   if (i has open || i has transparent)
4158             return OffersLight(parent(i));
4159     }
4160     else
4161     {   if (i has enterable || i has transparent || i has supporter)
4162             return OffersLight(parent(i));
4163     }
4164     rfalse;
4165  ];


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 (graham@gnelson.demon.co.uk) assisted by C Knight.