#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); int dospelleffects(lifeform_t *caster, enum OBTYPE spellid, int power, lifeform_t *target, object_t *targob, cell_t *targcell, int blessed, int *seenbyplayer); void fizzle(lifeform_t *caster); //int getiqreq(enum OBTYPE oid); int getmpcost(lifeform_t *lf, enum OBTYPE oid); enum SKILL getschoolskill(enum SPELLSCHOOL ss); char *getspellcosttext(lifeform_t *lf, enum OBTYPE spellid, int power, char *buf); int getspellduration(int min,int max,int blessed); int getspelllevel(enum OBTYPE spellid); int getspellmaxpower(enum OBTYPE spellid); char *getspellname(enum OBTYPE spellid, lifeform_t *lf, char *buf); int getspellpower(lifeform_t *lf, enum OBTYPE spellid); enum SPELLSCHOOL getspellschool(enum OBTYPE spellid); enum SPELLSCHOOL getspellschoolknown(lifeform_t *lf, enum OBTYPE spellid); int getspellrange(enum OBTYPE spellid, int power); char *getvarpowerspelldesc(enum OBTYPE spellid, int power, char *buf); void pullobto(object_t *o, lifeform_t *lf); void stopspell(lifeform_t *caster, enum OBTYPE spellid); void stopallspells(lifeform_t *lf); int summonlfs(lifeform_t *caster, enum RACECLASS wantrc, enum LFSIZE wantsize, int howmany, int lifetime); lifeform_t *validateabillf(lifeform_t *user, enum OBTYPE aid, lifeform_t **target); cell_t *validatespellcell(lifeform_t *caster, cell_t **targcell, int targtype, enum OBTYPE spellid, int power); lifeform_t *validatespelllf(lifeform_t *caster, lifeform_t **lf); #endif