version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.11 2004/05/04 07:14:53 mwedel Exp $"; | | * "$Id: spell_attack.c,v 1.12 2004/05/20 05:50:00 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* effects monsters, it seems best to put it into this file | | * effects monsters, it seems best to put it into this file |
***********************************************************************/ | | ***********************************************************************/ |
| | |
/* This covers the variosu spells that change the moods of monsters - | | /* This covers the various spells that change the moods of monsters - |
* makes them angry, peacful, friendly, etc. | | * makes them angry, peacful, friendly, etc. |
*/ | | */ |
int mood_change(object *op, object *caster, object *spell) { | | int mood_change(object *op, object *caster, object *spell) { |
| | |
set_owner(head, op); | | set_owner(head, op); |
set_spell_skill(op, caster, spell, head); | | set_spell_skill(op, caster, spell, head); |
add_friendly_object(head); | | add_friendly_object(head); |
head->stats.exp = 0; | | |
head->move_type = PETMOVE; | | head->move_type = PETMOVE; |
done_one = 1; | | done_one = 1; |
| | change_exp(op, head->stats.exp / 2, spell->skill, SK_EXP_ADD_SKILL); |
| | head->stats.exp = 0; |
} | | } |
| | |
/* If a monster was effected, put an effect in */ | | /* If a monster was effected, put an effect in */ |