version 1.73 | | version 1.74 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.73 2006/03/14 14:34:19 ryo_saeba Exp $"; | | * "$Id: skills.c,v 1.74 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
/* Helper function for do_skill_ident, so that we can loop | | /* Helper function for do_skill_ident, so that we can loop |
* over inventory AND objects on the ground conveniently. | | * over inventory AND objects on the ground conveniently. |
*/ | | */ |
int do_skill_ident2(object *tmp,object *pl, int obj_class, object *skill) | | static int do_skill_ident2(object *tmp,object *pl, int obj_class, object *skill) |
{ | | { |
int success=0,chance, ip; | | int success=0,chance, ip; |
int skill_value = skill->level * pl->stats.Int?pl->stats.Int:10; | | int skill_value = skill->level * pl->stats.Int?pl->stats.Int:10; |