Re: newbie multi attacks - ascii pfiles..

From: J. Kyle Glowacki (glowacki@fiam.net)
Date: 01/25/03


Steve,
    I found that to get multiple attacks per round I had to modify the
"perform_violence" function in fight.c

Down towards the bottom of the function you will have code like
       if ((FIGHTING(ch) == NULL) ||
           (ch->in_room != FIGHTING(ch)->in_room)) {
          stop_fighting(ch);
          continue;
       } else {
          hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
       }

I just wrapped that code with a for loop :

    for (i = 0; i < numAttacks;++i)
       if ((FIGHTING(ch) == NULL) ||
           (ch->in_room != FIGHTING(ch)->in_room)) {
          stop_fighting(ch);
          continue;
       } else {
          hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
       }

-Kyle  (Zandalor on KaneMud)

---
[This E-mail scanned for viruses at mail.fiam.net]

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