Difference for server/disease.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_disease_c =   * static char *rcsid_disease_c =
  *   "$Id: disease.c,v 1.8 2000/06/09 00:17:22 cvs Exp $";   *   "$Id: disease.c,v 1.9 2000/10/05 23:25:52 peterm Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 322
 
Line 322
  if(!is_susceptible_to_disease(victim, disease)) return 0;   if(!is_susceptible_to_disease(victim, disease)) return 0;
    
  new_symptom = get_archetype("symptom");   new_symptom = get_archetype("symptom");
  new_symptom->stats.dam = disease->stats.dam;   
    /* Something special done with dam.  We want diseases to be more
    random in what they'll kill, so we'll make the damage they
       do random, note, this has a weird effect with progressive diseases.*/
    if(disease->stats.dam != 0) {
      int dam = disease->stats.dam;
      /* reduce the damage, on average, 50%, and making things random. */
      dam = RANDOM() % dam +1;
      if(disease->stats.dam < 0) dam = -dam;
      new_symptom->stats.dam = dam;
    }
   
   
   
  new_symptom->stats.maxsp = disease->stats.maxsp;    new_symptom->stats.maxsp = disease->stats.maxsp;
  new_symptom->stats.food = new_symptom->stats.maxgrace;   new_symptom->stats.food = new_symptom->stats.maxgrace;
   
Line 337
 
Line 350
  new_symptom->stats.Int = disease->stats.Int;   new_symptom->stats.Int = disease->stats.Int;
  new_symptom->stats.Pow = disease->stats.Pow;   new_symptom->stats.Pow = disease->stats.Pow;
  new_symptom->stats.Cha = disease->stats.Cha;   new_symptom->stats.Cha = disease->stats.Cha;
  new_symptom->stats.dam = disease->stats.dam;  
  new_symptom->stats.sp  = disease->stats.sp;   new_symptom->stats.sp  = disease->stats.sp;
  new_symptom->stats.food =disease->last_eat;   new_symptom->stats.food =disease->last_eat;
  new_symptom->stats.maxsp = disease->stats.maxsp;   new_symptom->stats.maxsp = disease->stats.maxsp;


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:32