WELCOME BACK (whoops sorry) OBcircle

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 07/08/98


Well, that should have gone to my mud's admin list and not the circle list...
argh.  Sorry about that, a little OBcircle here:

A couple of little things to harm those mages with fleets of charmies:
add this into the damage calculation in fight.c

This will remove 4 points of damage for every person over 6 that is attacking
someone.
dam -= MAX(0,num_fighting(victim) - 6) * 4;


into utils.c add:
/* How many mobs/players are fighting you? */
int     num_fighting(struct char_data *ch)
{
   struct char_data *tmp;
   int num = 0;

   for (tmp = world[IN_ROOM(ch)].people; tmp; tmp = tmp->next_in_room)
      {
      if (FIGHTING(tmp) == ch)
         {
         num++;
         }
      }
   return num;
}



--Angus


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