bug in enchant_weapon

From: Edward J Glamkowski (eglamkowski@angelfire.com)
Date: 05/31/03


Currently, it just sticks the APPLY_HITROLL
and APPLY_DAMROLL into obj->affected[0] and
[1] without regard to whether some other
APPLY is already in those slots.

Try this instead:

  for (i = 0; i < MAX_OBJ_AFFECT; i++) {
    if (obj->affected[i].location == APPLY_NONE) {
      obj->affected[i].location = APPLY_HITROLL;
      obj->affected[i].modifier = 1;
      break;
    }
  }

  for (i = 0; i < MAX_OBJ_AFFECT; i++) {
    if (obj->affected[i].location == APPLY_NONE) {
      obj->affected[i].location = APPLY_DAMROLL;
      obj->affected[i].modifier = 1;
      break;
    }
  }



____________________________________________________________
Get 25MB of email storage with Lycos Mail Plus!
Sign up today -- http://www.mail.lycos.com/brandPage.shtml?pageId=plus

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT