> In the do_simple_move function... I want it to check it there is an
> ITEM_LANDMINE laying in the room(not on a person)... how would I go about
> doing this?
>
for (obj=world[ch->in_room].contents; obj; obj=obj->next_content)
if (GET_OBJ_TYPE(obj)==ITEM_LANDMINE) {
/* boom? */
}
Marc
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST