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

Comparing deliantra/server/common/utils.C (file contents):
Revision 1.45 by root, Sat Jan 27 02:19:36 2007 UTC vs.
Revision 1.46 by root, Mon Feb 5 01:47:22 2007 UTC

388 { 388 {
389 op->stats.dam += lmt->damage; 389 op->stats.dam += lmt->damage;
390 if (op->stats.dam < 1) 390 if (op->stats.dam < 1)
391 op->stats.dam = 1; 391 op->stats.dam = 1;
392 } 392 }
393
393 if (op->stats.sp && op->type == BOW) 394 if (op->stats.sp && op->type == BOW)
394 op->stats.sp += lmt->sp; 395 op->stats.sp += lmt->sp;
395 if (op->stats.wc && op->is_weapon ()) 396 if (op->stats.wc && op->is_weapon ())
396 op->stats.wc += lmt->wc; 397 op->stats.wc += lmt->wc;
397 if (op->is_armor ()) 398 if (op->is_armor ())
406 op->resist[j] = 100; 407 op->resist[j] = 100;
407 if (op->resist[j] < -100) 408 if (op->resist[j] < -100)
408 op->resist[j] = -100; 409 op->resist[j] = -100;
409 } 410 }
410 } 411 }
411 op->materialname = add_string (lmt->name); 412 op->materialname = lmt->name;
412 /* dont make it unstackable if it doesn't need to be */ 413 /* dont make it unstackable if it doesn't need to be */
413 if (op->is_weapon () || op->is_armor ()) 414 if (op->is_weapon () || op->is_armor ())
414 { 415 {
415 op->weight = (op->weight * lmt->weight) / 100; 416 op->weight = (op->weight * lmt->weight) / 100;
416 op->value = (op->value * lmt->value) / 100; 417 op->value = (op->value * lmt->value) / 100;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines