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.9 by root, Tue Dec 12 21:39:57 2006 UTC vs.
Revision 1.10 by root, Wed Dec 13 00:42:04 2006 UTC

333 else if (tmp->type == DISEASE && !strcmp (tmp->name, disease->name)) 333 else if (tmp->type == DISEASE && !strcmp (tmp->name, disease->name))
334 return 0; /* already diseased */ 334 return 0; /* already diseased */
335 } 335 }
336 336
337 /* If we've gotten this far, go ahead and infect the victim. */ 337 /* If we've gotten this far, go ahead and infect the victim. */
338 new_disease = object::create (); 338 new_disease = disease->clone ();
339 disease->copy_to (new_disease);
340 new_disease->stats.food = disease->stats.maxgrace; 339 new_disease->stats.food = disease->stats.maxgrace;
341 new_disease->value = disease->stats.maxhp; 340 new_disease->value = disease->stats.maxhp;
342 new_disease->stats.wc -= disease->last_grace; /* self-limiting factor */ 341 new_disease->stats.wc -= disease->last_grace; /* self-limiting factor */
343 342
344 /* Unfortunately, set_owner does the wrong thing to the skills pointers 343 /* Unfortunately, set_owner does the wrong thing to the skills pointers

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines