version 1.152 | | version 1.153 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.152 2006/04/06 21:18:36 tchize Exp $"; | | * "$Id: spell_effect.c,v 1.153 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* space monsters. | | * space monsters. |
*/ | | */ |
| | |
void polymorph_living(object *op) { | | static void polymorph_living(object *op) { |
archetype *at; | | archetype *at; |
int nr = 0, x = op->x, y = op->y, numat=0, choice,friendly; | | int nr = 0, x = op->x, y = op->y, numat=0, choice,friendly; |
mapstruct *map = op->map; | | mapstruct *map = op->map; |
| | |
* more clever ala nethack - create an iron golem or | | * more clever ala nethack - create an iron golem or |
* something. | | * something. |
*/ | | */ |
void polymorph_melt(object *who, object *op) | | static void polymorph_melt(object *who, object *op) |
{ | | { |
/* Not unique */ | | /* Not unique */ |
new_draw_info_format(NDI_GREY, 0, who, | | new_draw_info_format(NDI_GREY, 0, who, |
| | |
* Changes an item to another item of similar type. | | * Changes an item to another item of similar type. |
* who is the caster of spell, op is the object to be changed. | | * who is the caster of spell, op is the object to be changed. |
*/ | | */ |
void polymorph_item(object *who, object *op) { | | static void polymorph_item(object *who, object *op) { |
archetype *at; | | archetype *at; |
int max_value, difficulty, tries=0,choice, charges=op->stats.food,numat=0; | | int max_value, difficulty, tries=0,choice, charges=op->stats.food,numat=0; |
object *new_ob; | | object *new_ob; |