version 1.21 | | version 1.22 |
---|
| | |
/* | | /* |
* static char *rcsid_utils_c = | | * static char *rcsid_utils_c = |
* "$Id: utils.c,v 1.21 2005/10/21 19:03:24 cavesomething Exp $"; | | * "$Id: utils.c,v 1.22 2006/01/08 22:47:56 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#ifndef NEW_MATERIAL_CODE | | #ifndef NEW_MATERIAL_CODE |
op->materialname = add_string(lmt->name); | | op->materialname = add_string(lmt->name); |
return; | | return; |
#endif | | #else |
| | |
if (op->stats.dam && IS_WEAPON(op)) { | | if (op->stats.dam && IS_WEAPON(op)) { |
op->stats.dam += lmt->damage; | | op->stats.dam += lmt->damage; |
| | |
op->weight = (op->weight * lmt->weight)/100; | | op->weight = (op->weight * lmt->weight)/100; |
op->value = (op->value * lmt->value)/100; | | op->value = (op->value * lmt->value)/100; |
} | | } |
| | #endif |
} | | } |
} | | } |
| | |