ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/disease.C
(Generate patch)

Comparing deliantra/server/server/disease.C (file contents):
Revision 1.17 by pippijn, Mon Jan 15 21:06:20 2007 UTC vs.
Revision 1.18 by root, Sat Jan 20 22:09:54 2007 UTC

451 { 451 {
452 int dam = disease->stats.dam; 452 int dam = disease->stats.dam;
453 453
454 /* reduce the damage, on average, 50%, and making things random. */ 454 /* reduce the damage, on average, 50%, and making things random. */
455 455
456 dam = random_roll (1, FABS (dam), victim, PREFER_LOW); 456 dam = random_roll (1, abs (dam), victim, PREFER_LOW);
457 if (disease->stats.dam < 0) 457 if (disease->stats.dam < 0)
458 dam = -dam; 458 dam = -dam;
459 new_symptom->stats.dam = dam; 459 new_symptom->stats.dam = dam;
460 } 460 }
461 461

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines