version 1.104 | | version 1.105 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_util_c = | | * static char *rcsid_spell_util_c = |
* "$Id: spell_util.c,v 1.104 2006/04/06 21:18:36 tchize Exp $"; | | * "$Id: spell_util.c,v 1.105 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* spell is the spell object. | | * spell is the spell object. |
* Returns modified level. | | * Returns modified level. |
*/ | | */ |
int min_casting_level(object *caster, object *spell) | | static int min_casting_level(object *caster, object *spell) |
{ | | { |
int new_level; | | int new_level; |
| | |
| | |
* also deals with multipart monsters properly. | | * also deals with multipart monsters properly. |
*/ | | */ |
| | |
void put_a_monster(object *op,const char *monstername) { | | static void put_a_monster(object *op,const char *monstername) { |
object *tmp,*head=NULL,*prev=NULL; | | object *tmp,*head=NULL,*prev=NULL; |
archetype *at; | | archetype *at; |
int dir; | | int dir; |
| | |
* power is how much grace the spell would normally take to cast. | | * power is how much grace the spell would normally take to cast. |
*/ | | */ |
| | |
void prayer_failure(object *op, int failure,int power) | | static void prayer_failure(object *op, int failure, int power) |
{ | | { |
const char *godname; | | const char *godname; |
object *tmp; | | object *tmp; |
| | |
} | | } |
} | | } |
| | |
int cast_party_spell(object *op, object *caster,int dir,object *spell_ob, char *stringarg) | | static int cast_party_spell(object *op, object *caster,int dir,object *spell_ob, char *stringarg) |
{ | | { |
int success; | | int success; |
player *pl; | | player *pl; |
| | |
/* this checks to see if something special should happen if | | /* this checks to see if something special should happen if |
* something runs into the object. | | * something runs into the object. |
*/ | | */ |
void check_spell_effect(object *op) { | | static void check_spell_effect(object *op) { |
| | |
switch (op->subtype) { | | switch (op->subtype) { |
case SP_BOLT: | | case SP_BOLT: |