2010-12-07 18:34:26 +11:00
|
|
|
#ifndef __SPELLS_H
|
|
|
|
#define __SPELLS_H
|
|
|
|
#include "defs.h"
|
|
|
|
|
2011-03-22 18:06:28 +11:00
|
|
|
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);
|
2011-03-22 18:06:28 +11:00
|
|
|
int getmpcost(lifeform_t *lf, enum OBTYPE oid);
|
2011-03-18 12:25:18 +11:00
|
|
|
enum SKILL getschoolskill(enum SPELLSCHOOL ss);
|
2011-04-14 09:44:29 +10:00
|
|
|
char *getspellcosttext(lifeform_t *lf, enum OBTYPE spellid, int power, char *buf);
|
2011-02-16 05:21:33 +11:00
|
|
|
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);
|
2011-03-18 12:25:18 +11:00
|
|
|
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);
|
2011-03-22 18:06:28 +11:00
|
|
|
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-24 16:09:31 +11:00
|
|
|
cell_t *validatespellcell(lifeform_t *caster, cell_t **targcell, int targtype, int needlos, enum LOFTYPE 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
|
|
|
|