version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.5 2000/05/26 09:50:49 jec Exp $"; | | * "$Id: time.c,v 1.6 2000/05/29 16:31:26 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
in op->stats.sp. maxsp also has some meaning, i'm not sure what. | | in op->stats.sp. maxsp also has some meaning, i'm not sure what. |
walls can have hp, so they can be torn down. */ | | walls can have hp, so they can be torn down. */ |
void move_firewall(object *op) { | | void move_firewall(object *op) { |
| | if ( ! op->map) |
| | return; /* dm has created a firewall in his inventory */ |
cast_spell(op,op,op->stats.sp?op->stats.sp:(RANDOM()%8)+1,op->stats.dam, | | cast_spell(op,op,op->stats.sp?op->stats.sp:(RANDOM()%8)+1,op->stats.dam, |
1,spellNormal,NULL); | | 1,spellNormal,NULL); |
} | | } |
| | |
void move_firechest(object *op) { | | void move_firechest(object *op) { |
| | if ( ! op->map) |
| | return; /* dm has created a firechest in his inventory */ |
fire_a_ball(op,(RANDOM()%8)+1,7); | | fire_a_ball(op,(RANDOM()%8)+1,7); |
} | | } |
| | |