Re: Adding in firearms

From: Welcor (welcor@dune.net)
Date: 03/02/02


From: "Abraham Dizon" <soldier2003@HOTMAIL.COM>
>
> act.informative.c: void look_in_obj(struct char_data * ch, char *arg)
<snip>
>   } else if ((GET_OBJ_TYPE(obj) != ITEM_DRINKCON) &&
>              (GET_OBJ_TYPE(obj) != ITEM_FOUNTAIN) &&
>              (GET_OBJ_TYPE(obj) != ITEM_CONTAINER))
>
-          if ((GET_OBJ_TYPE(obj) == ITEM_FIREWEAPON) &&
+          if ((GET_OBJ_TYPE(obj) == ITEM_FIREWEAPON) ||
>              (GET_OBJ_TYPE(obj) == ITEM_MISSILE)) {
<snip>

The item would never be BOTH a fireweapon AND a missile. Thus you always
got the false message.

Welcor

--
   +---------------------------------------------------------------+
   | 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