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.44 by root, Sun Nov 25 13:27:11 2007 UTC vs.
Revision 1.45 by root, Sun Nov 25 13:28:07 2007 UTC

542 } 542 }
543 543
544 if (symptom->stats.dam > 0) 544 if (symptom->stats.dam > 0)
545 hit_player (victim, symptom->stats.dam, symptom, symptom->attacktype, 1); 545 hit_player (victim, symptom->stats.dam, symptom, symptom->attacktype, 1);
546 else 546 else
547 hit_player (victim, max (1., -victim->stats.maxhp * symptom->stats.dam / 100.0), symptom, symptom->attacktype, 1); 547 hit_player (victim, max (1, -victim->stats.maxhp * symptom->stats.dam / 100), symptom, symptom->attacktype, 1);
548 548
549 if (symptom->stats.maxsp > 0) 549 if (symptom->stats.maxsp > 0)
550 sp_reduce = symptom->stats.maxsp; 550 sp_reduce = symptom->stats.maxsp;
551 else 551 else
552 sp_reduce = max (1, victim->stats.maxsp * symptom->stats.maxsp / 100.0); 552 sp_reduce = max (1, victim->stats.maxsp * symptom->stats.maxsp / 100);
553 553
554 victim->stats.sp = max (0, victim->stats.sp - sp_reduce); 554 victim->stats.sp = max (0, victim->stats.sp - sp_reduce);
555 555
556 /* create the symptom "other arch" object and drop it here 556 /* create the symptom "other arch" object and drop it here
557 * under every part of the monster 557 * under every part of the monster

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines