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.31 by root, Tue Aug 7 22:57:57 2007 UTC vs.
Revision 1.34 by root, Sun Aug 12 07:04:48 2007 UTC

282 } 282 }
283 283
284 return 1; 284 return 1;
285} 285}
286 286
287
288/* check to see if an object is infectable: 287/* check to see if an object is infectable:
289 * objects with immunity aren't infectable. 288 * objects with immunity aren't infectable.
290 * objects already infected aren't infectable. 289 * objects already infected aren't infectable.
291 * dead objects aren't infectable. 290 * dead objects aren't infectable.
292 * undead objects are infectible only if specifically named. 291 * undead objects are infectible only if specifically named.
508 symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127); 507 symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127);
509 508
510 symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024); 509 symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024);
511 symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024); 510 symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024);
512 symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024); 511 symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024);
513 symptom->last_sp = clamp (scale * disease->last_sp , -1024, 1024);
514 symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024); 512 symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024);
515 symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024); 513 symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024);
516 symptom->stats.exp = 0; 514 symptom->stats.exp = 0;
517 515 symptom->last_sp = disease->last_sp ? clamp (disease->last_sp / scale, 1, 1024) : 0;
518 symptom->msg = disease->msg; 516 symptom->msg = disease->msg;
519 symptom->attacktype = disease->attacktype; 517 symptom->attacktype = disease->attacktype;
520 symptom->other_arch = disease->other_arch; 518 symptom->other_arch = disease->other_arch;
521 } 519 }
522 520

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines