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.59 by root, Sun Apr 29 00:19:16 2007 UTC vs.
Revision 1.60 by root, Sat May 12 18:14:47 2007 UTC

648 case 2: 648 case 2:
649 case 3: 649 case 3:
650 case 4: 650 case 4:
651 case 5: 651 case 5:
652 case 6: 652 case 6:
653 set_attr_value (&op->stats, r, (signed char) (bonus + get_attr_value (&op->stats, r))); 653 op->stats.stat (r) += bonus;
654 break; 654 break;
655 655
656 case 7: 656 case 7:
657 op->stats.dam += bonus; 657 op->stats.dam += bonus;
658 break; 658 break;
1418#endif 1418#endif
1419 op->face = change->face; 1419 op->face = change->face;
1420 } 1420 }
1421 1421
1422 for (i = 0; i < NUM_STATS; i++) 1422 for (i = 0; i < NUM_STATS; i++)
1423 change_attr_value (&(op->stats), i, get_attr_value (&(change->stats), i)); 1423 change_attr_value (&(op->stats), i, change->stats.stat (i));
1424 1424
1425 op->attacktype |= change->attacktype; 1425 op->attacktype |= change->attacktype;
1426 op->path_attuned |= change->path_attuned; 1426 op->path_attuned |= change->path_attuned;
1427 op->path_repelled |= change->path_repelled; 1427 op->path_repelled |= change->path_repelled;
1428 op->path_denied |= change->path_denied; 1428 op->path_denied |= change->path_denied;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines