Re: Lighting rooms with objects in your inventory.

From: David Cole (tiznor@softhome.net)
Date: 04/24/02


> try using OBJ_FLAGGED(obj, ITEM_ILLUMINATE) instead of extra_flags =
> item_illuminate

Tha made it look a little better, but in the sense of working, it did not.
Any other ideas?

in char_to_room():

    for (obj = ch->carrying; obj; obj = next_obj) {
      next_obj = obj->next_content;
      if (OBJ_FLAGGED(obj, ITEM_ILLUMINATE))
        world[ch->in_room].light ++;
 }

Thanks,
David Cole

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT