version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.31 2003/03/07 07:33:14 mwedel Exp $"; | | * "$Id: rune.c,v 1.32 2003/09/01 14:31:16 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
MIN(20,trap->level-disarmer_level | | MIN(20,trap->level-disarmer_level |
+5 - disarmer->stats.Dex/2))-1), disarmer, PREFER_LOW))) | | +5 - disarmer->stats.Dex/2))-1), disarmer, PREFER_LOW))) |
{ | | { |
new_draw_info(NDI_UNIQUE, 0,disarmer,"You successfuly disarm it!"); | | new_draw_info_format(NDI_UNIQUE, 0,disarmer, |
| | "You successfuly disarm the %s!",trap->name); |
remove_ob(trap); | | remove_ob(trap); |
free_object(trap); | | free_object(trap); |
/* If it is your own trap, (or any players trap), don't you don't | | /* If it is your own trap, (or any players trap), don't you don't |
| | |
} | | } |
else | | else |
{ | | { |
new_draw_info(NDI_UNIQUE, 0,disarmer,"You fail to disarm the trap."); | | new_draw_info_format(NDI_UNIQUE, 0,disarmer, |
| | "You fail to disarm the %s.",trap->name); |
if(! (random_roll(0, (MAX(2,disarmer_level-trap->level | | if(! (random_roll(0, (MAX(2,disarmer_level-trap->level |
+ disarmer->stats.Dex/2-6))-1, disarmer, PREFER_LOW)) &&risk) { | | + disarmer->stats.Dex/2-6))-1, disarmer, PREFER_LOW)) &&risk) { |
new_draw_info(NDI_UNIQUE, 0,disarmer,"In fact, you set it off!"); | | new_draw_info(NDI_UNIQUE, 0,disarmer,"In fact, you set it off!"); |