nexus/spell.h

27 lines
1.2 KiB
C
Raw Normal View History

2010-12-07 18:34:26 +11:00
#ifndef __SPELLS_H
#define __SPELLS_H
#include "defs.h"
int abilityeffects(lifeform_t *user, enum OBTYPE abilid, cell_t *targcell, lifeform_t *target, flag_t *cwflag);
2011-03-16 15:45:46 +11:00
int dospelleffects(lifeform_t *caster, enum OBTYPE spellid, int power, lifeform_t *target, object_t *targob, cell_t *targcell, int blessed, int *seenbyplayer);
2011-02-01 06:16:13 +11:00
void fizzle(lifeform_t *caster);
2011-03-16 15:45:46 +11:00
//int getiqreq(enum OBTYPE oid);
int getmpcost(lifeform_t *lf, enum OBTYPE oid);
enum SKILL getschoolskill(enum SPELLSCHOOL ss);
int getspellduration(int min,int max,int blessed);
2011-03-04 12:22:36 +11:00
int getspelllevel(enum OBTYPE spellid);
2011-03-16 15:45:46 +11:00
int getspellmaxpower(enum OBTYPE spellid);
char *getspellname(enum OBTYPE spellid, lifeform_t *lf, char *buf);
2011-03-16 15:45:46 +11:00
int getspellpower(lifeform_t *lf, enum OBTYPE spellid);
2011-03-04 12:22:36 +11:00
enum SPELLSCHOOL getspellschool(enum OBTYPE spellid);
2011-03-16 15:45:46 +11:00
int getspellrange(enum OBTYPE spellid, int power);
2011-02-01 06:16:13 +11:00
void pullobto(object_t *o, lifeform_t *lf);
void stopspell(lifeform_t *caster, enum OBTYPE spellid);
void stopallspells(lifeform_t *lf);
lifeform_t *validateabillf(lifeform_t *user, enum OBTYPE aid, lifeform_t **target);
2011-03-16 15:45:46 +11:00
cell_t *validatespellcell(lifeform_t *caster, cell_t **targcell, int targtype, int needlof, enum OBTYPE spellid, int power);
2011-02-01 06:16:13 +11:00
lifeform_t *validatespelllf(lifeform_t *caster, lifeform_t **lf);
2010-12-07 18:34:26 +11:00
#endif
2011-02-01 06:16:13 +11:00