version 1.40 | | version 1.41 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.40 2004/02/28 10:40:56 ryo_saeba Exp $"; | | * "$Id: item.c,v 1.41 2004/03/07 10:04:20 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if(QUERY_FLAG(op,FLAG_SEE_IN_DARK)) enc += 1; | | if(QUERY_FLAG(op,FLAG_SEE_IN_DARK)) enc += 1; |
if(QUERY_FLAG(op,FLAG_MAKE_INVIS)) enc += 1; | | if(QUERY_FLAG(op,FLAG_MAKE_INVIS)) enc += 1; |
| | |
#if 0 | | return get_power_from_ench(enc); |
if (enc > 20) { | | |
LOG(llevDebug,"calc_item_power got %d enchantments for %s\n", enc, op->name?op->name:"(null)"); | | |
enc = 20; | | |
} | | |
#endif | | |
/* Items only have a positive power rating */ | | |
if (enc < 0) enc = 0; | | |
| | |
return enc_to_item_power[enc]; | | |
| | |
} | | } |
| | |