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

Comparing deliantra/server/common/item.C (file contents):
Revision 1.65 by root, Sat Nov 7 18:30:05 2009 UTC vs.
Revision 1.66 by root, Sun Nov 8 20:55:39 2009 UTC

313 313
314 enc += op->stats.luck; 314 enc += op->stats.luck;
315 315
316 /* Do spell paths now */ 316 /* Do spell paths now */
317 for (i = 1; i < NRSPELLPATHS; i++) 317 for (i = 1; i < NRSPELLPATHS; i++)
318 {
319 if (op->path_attuned & (1 << i)) 318 if (op->path_attuned & (1 << i))
320 enc++; 319 enc++;
321 else if (op->path_denied & (1 << i)) 320 else if (op->path_denied & (1 << i))
322 enc -= 2; 321 enc -= 2;
323 else if (op->path_repelled & (1 << i)) 322 else if (op->path_repelled & (1 << i))
324 enc--; 323 enc--;
325 }
326 324
327 if (op->flag [FLAG_LIFESAVE ]) enc += 5; 325 if (op->flag [FLAG_LIFESAVE ]) enc += 5;
328 if (op->flag [FLAG_REFL_SPELL ]) enc += 3; 326 if (op->flag [FLAG_REFL_SPELL ]) enc += 3;
329 if (op->flag [FLAG_REFL_MISSILE]) enc += 2; 327 if (op->flag [FLAG_REFL_MISSILE]) enc += 2;
330 if (op->flag [FLAG_XRAYS ]) enc += 2; 328 if (op->flag [FLAG_XRAYS ]) enc += 2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines