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

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.43 by root, Mon Apr 30 04:43:46 2007 UTC vs.
Revision 1.44 by root, Tue May 15 16:45:23 2007 UTC

627 ****************************************************************************/ 627 ****************************************************************************/
628void 628void
629regenerate_rod (object *rod) 629regenerate_rod (object *rod)
630{ 630{
631 if (rod->stats.hp < rod->stats.maxhp) 631 if (rod->stats.hp < rod->stats.maxhp)
632 { 632 rod->stats.hp = min (rod->stats.maxhp, rod->stats.hp + 1 + rod->stats.maxhp / 10);
633 rod->stats.hp += 1 + rod->stats.maxhp / 10;
634
635 if (rod->stats.hp > rod->stats.maxhp)
636 rod->stats.hp = rod->stats.maxhp;
637 }
638} 633}
639
640 634
641void 635void
642drain_rod_charge (object *rod) 636drain_rod_charge (object *rod)
643{ 637{
644 rod->stats.hp -= SP_level_spellpoint_cost (rod, rod->inv, SPELL_HIGHEST); 638 rod->stats.hp -= SP_level_spellpoint_cost (rod, rod->inv, SPELL_HIGHEST);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines