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.19 by root, Thu Sep 14 22:34:00 2006 UTC vs.
Revision 1.20 by root, Tue Sep 26 17:19:38 2006 UTC

1556 op->gen_sp_armour = (op->gen_sp_armour * (change->gen_sp_armour)) / 100; 1556 op->gen_sp_armour = (op->gen_sp_armour * (change->gen_sp_armour)) / 100;
1557 1557
1558 op->item_power = change->item_power; 1558 op->item_power = change->item_power;
1559 1559
1560 for (i = 0; i < NROFATTACKS; i++) 1560 for (i = 0; i < NROFATTACKS; i++)
1561 {
1562 if (change->resist[i]) 1561 if (change->resist[i])
1563 {
1564 op->resist[i] += change->resist[i]; 1562 op->resist[i] += change->resist[i];
1565 }
1566 }
1567 1563
1568 if (change->stats.dam) 1564 if (change->stats.dam)
1569 { 1565 {
1570 if (change->stats.dam < 0) 1566 if (change->stats.dam < 0)
1571 op->stats.dam = (-change->stats.dam); 1567 op->stats.dam = (-change->stats.dam);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines