version 1.160 | | version 1.161 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.160 2006/02/07 07:54:46 mwedel Exp $"; | | * "$Id: apply.c,v 1.161 2006/02/10 23:59:27 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
case IMPROVE_STR: | | case IMPROVE_STR: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Str), | | (signed char *) &(weapon->stats.Str), |
1,(char *) "strength"); | | 1, "strength"); |
case IMPROVE_DEX: | | case IMPROVE_DEX: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Dex), | | (signed char *) &(weapon->stats.Dex), |
1,(char *) "dexterity"); | | 1, "dexterity"); |
case IMPROVE_CON: | | case IMPROVE_CON: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Con), | | (signed char *) &(weapon->stats.Con), |
1,(char *) "constitution"); | | 1, "constitution"); |
case IMPROVE_WIS: | | case IMPROVE_WIS: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Wis), | | (signed char *) &(weapon->stats.Wis), |
1,(char *) "wisdom"); | | 1, "wisdom"); |
case IMPROVE_CHA: | | case IMPROVE_CHA: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Cha), | | (signed char *) &(weapon->stats.Cha), |
1,(char *) "charisma"); | | 1, "charisma"); |
case IMPROVE_INT: | | case IMPROVE_INT: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Int), | | (signed char *) &(weapon->stats.Int), |
1,(char *) "intelligence"); | | 1, "intelligence"); |
case IMPROVE_POW: | | case IMPROVE_POW: |
return improve_weapon_stat(op,improver,weapon, | | return improve_weapon_stat(op,improver,weapon, |
(signed char *) &(weapon->stats.Pow), | | (signed char *) &(weapon->stats.Pow), |