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.108 by root, Wed Apr 28 19:49:50 2010 UTC vs.
Revision 1.109 by root, Sun May 2 20:37:57 2010 UTC

1282 */ 1282 */
1283void 1283void
1284add_abilities (object *op, object *change) 1284add_abilities (object *op, object *change)
1285{ 1285{
1286 if (change->face != blank_face) 1286 if (change->face != blank_face)
1287 {
1288#ifdef TREASURE_VERBOSE
1289 LOG (llevDebug, "add_abilities change face: %d\n", change->face);
1290#endif
1291 op->face = change->face; 1287 op->face = change->face;
1292 }
1293 1288
1294 for (int i = 0; i < NUM_STATS; i++) 1289 for (int i = 0; i < NUM_STATS; i++)
1295 change_attr_value (&(op->stats), i, change->stats.stat (i)); 1290 change_attr_value (&(op->stats), i, change->stats.stat (i));
1296 1291
1297 op->attacktype |= change->attacktype; 1292 op->attacktype |= change->attacktype;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines