version 1.101 | | version 1.102 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.101 2004/04/18 07:59:36 mwedel Exp $"; | | * "$Id: apply.c,v 1.102 2004/04/21 06:44:40 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
*/ | | */ |
int check_weapon_power(object *who, int improvs) | | int check_weapon_power(object *who, int improvs) |
{ | | { |
| | /* Old code is below (commented out). Basically, since weapons are the only |
| | * object players really have any control to improve, it's a bit harsh to |
| | * require high level in some combat skill, so we just use overall level. |
| | */ |
| | #if 1 |
| | if (((who->level/5)+5) >= improvs) return 1; |
| | else return 0; |
| | |
| | #else |
int level=0; | | int level=0; |
| | |
/* The skill system hands out wc and dam bonuses to fighters | | /* The skill system hands out wc and dam bonuses to fighters |
| | |
level=who->level; | | level=who->level; |
| | |
return (improvs <= ((level/5)+5)); | | return (improvs <= ((level/5)+5)); |
| | #endif |
} | | } |
| | |
/* Returns the object count that of the number of objects found that | | /* Returns the object count that of the number of objects found that |