version 1.38 | | version 1.39 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.38 2003/03/08 05:35:32 mwedel Exp $"; | | * "$Id: skill_util.c,v 1.39 2003/09/04 06:25:32 temitchell Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if(!op) { /* no item/creature */ | | if(!op) { /* no item/creature */ |
op_lvl= who->map->difficulty < 1 ? 1: who->map->difficulty; | | op_lvl= who->map->difficulty < 1 ? 1: who->map->difficulty; |
op_exp = 0; | | op_exp = 0; |
} else if(op->type==RUNE) { /* all traps. If stats.Cha > 1 we use that | | } else if(op->type==RUNE || op->type==TRAP) { /* all traps. If stats.Cha > 1 we use that |
* for the amount of experience */ | | * for the amount of experience */ |
op_exp = op->stats.Cha>1 ? op->stats.Cha : op->stats.exp; | | op_exp = op->stats.Cha>1 ? op->stats.Cha : op->stats.exp; |
op_lvl = op->level; | | op_lvl = op->level; |