version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_swamp_c = | | * static char *rcsid_swamp_c = |
* "$Id: swamp.c,v 1.4 2001/10/15 21:12:08 garbled Exp $"; | | * "$Id: swamp.c,v 1.5 2002/02/08 20:19:37 avogl Exp $"; |
*/ | | */ |
| | |
#include <global.h> | | #include <global.h> |
| | |
break; | | break; |
case 3: | | case 3: |
if (rndm(0, 4) == 0) { | | if (rndm(0, 4) == 0) { |
| | /* player is ready to drown - only woodsman skill can save him */ |
| | if (rndm(0, 4) == 0 || !change_skill(above, lookup_skill_by_name("woodsman"))) { |
op->stats.food = 0; | | op->stats.food = 0; |
new_draw_info_format(NDI_UNIQUE | NDI_ALL, 1, NULL, | | new_draw_info_format(NDI_UNIQUE | NDI_ALL, 1, NULL, |
"%s disappeared into a swamp.",above->name); | | "%s disappeared into a swamp.",above->name); |
strcpy(above->contr->killer,"drowning in a swamp"); | | strcpy(above->contr->killer,"drowning in a swamp"); |
| | |
above->stats.hp = -1; | | above->stats.hp = -1; |
| | kill_player(above); /* player dies in the swamp */ |
| | } |
| | else { |
| | op->stats.food = 2; |
| | new_draw_info(NDI_UNIQUE, 0,above, "You almost drowned in the swamp! You"); |
| | new_draw_info(NDI_UNIQUE, 0,above, "survived due to your woodsman skill."); |
| | } |
} | | } |
break; | | break; |
} | | } |