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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.90 by root, Fri Nov 6 13:31:47 2009 UTC vs.
Revision 1.92 by root, Sat Nov 7 18:30:05 2009 UTC

1097 * 10 time multiplier). This way, the value are a bit more reasonable. 1097 * 10 time multiplier). This way, the value are a bit more reasonable.
1098 */ 1098 */
1099 op->value = op->value * op->inv->value * (op->level + 50) / (op->inv->level + 50); 1099 op->value = op->value * op->inv->value * (op->level + 50) / (op->inv->level + 50);
1100 /* maxhp is used to denote how many 'charges' the rod holds before */ 1100 /* maxhp is used to denote how many 'charges' the rod holds before */
1101 if (op->stats.maxhp) 1101 if (op->stats.maxhp)
1102 op->stats.maxhp *= MAX (op->inv->stats.sp, op->inv->stats.grace); 1102 op->stats.maxhp *= max (op->inv->stats.sp, op->inv->stats.grace);
1103 else 1103 else
1104 op->stats.maxhp = 2 * MAX (op->inv->stats.sp, op->inv->stats.grace); 1104 op->stats.maxhp = 2 * max (op->inv->stats.sp, op->inv->stats.grace);
1105 1105
1106 op->stats.hp = op->stats.maxhp; 1106 op->stats.hp = op->stats.maxhp;
1107 break; 1107 break;
1108 1108
1109 case SCROLL: 1109 case SCROLL:
1688 at->item->destroy (); 1688 at->item->destroy ();
1689 1689
1690 sfree (at); 1690 sfree (at);
1691} 1691}
1692 1692
1693static void
1694free_artifactlist (artifactlist *al)
1695{
1696 artifactlist *nextal;
1697
1698 for (al = first_artifactlist; al; al = nextal)
1699 {
1700 nextal = al->next;
1701
1702 if (al->items)
1703 free_artifact (al->items);
1704
1705 sfree (al);
1706 }
1707}
1708

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines