version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_alchemy_c = | | * static char *rcsid_alchemy_c = |
* "$Id: alchemy.c,v 1.25 2005/11/16 08:16:08 mwedel Exp $"; | | * "$Id: alchemy.c,v 1.26 2006/02/10 23:59:27 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#endif | | #endif |
| | |
/** Random cauldrons effects */ | | /** Random cauldrons effects */ |
static char *cauldron_effect [] = { | | static const char* const cauldron_effect [] = { |
"vibrates briefly", | | "vibrates briefly", |
"produces a cloud of steam", | | "produces a cloud of steam", |
"emits bright flames", | | "emits bright flames", |
| | |
| | |
| | |
/** Returns a random selection from cauldron_effect[] */ | | /** Returns a random selection from cauldron_effect[] */ |
char * cauldron_sound ( void ) { | | static const char *cauldron_sound(void) { |
int size=sizeof(cauldron_effect)/sizeof(char *); | | int size=sizeof(cauldron_effect)/sizeof(char *); |
| | |
return cauldron_effect[rndm(0, size-1)]; | | return cauldron_effect[rndm(0, size-1)]; |