nexus/attack.h

23 lines
1.2 KiB
C
Raw Normal View History

2010-12-02 12:17:54 +11:00
#include "defs.h"
2011-03-04 12:22:36 +11:00
int applyarmourdamage(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype);
void applyarmourdamreduction(lifeform_t *lf, object_t *wep, int reduceamt, int *dam, enum DAMTYPE damtype);
2011-02-01 06:16:13 +11:00
int attackcell(lifeform_t *lf, cell_t *c);
int attacklf(lifeform_t *lf, lifeform_t *victim);
int attackob(lifeform_t *lf, object_t *o);
2011-03-04 12:22:36 +11:00
int getarmourdamreduction(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype);
char *getattackverb(enum DAMTYPE damtype, int dam, int maxhp);
2011-02-01 06:16:13 +11:00
object_t *getattackwep(lifeform_t *lf, obpile_t **unarmedpile, flag_t **unarmedflag);
enum DAMTYPE getdamtype(object_t *wep);
2011-03-04 12:22:36 +11:00
int getextradam(object_t *wep, int *dam, enum DAMTYPE *damtype, int *ndam);
char *getkillverb(lifeform_t *victim, enum DAMTYPE damtype, int dam, int maxhp);
2011-02-01 06:16:13 +11:00
void getdamrange(flagpile_t *fp, int *min, int *max);
void getdamrangeunarmed(flag_t *f, int *min, int *max);
2011-02-01 06:16:13 +11:00
float getdamreducepct(float armourrating);
int getdamroll(object_t *o, lifeform_t *victim);
2011-02-01 06:16:13 +11:00
int getdamrollfromflag(flag_t *f);
float getstrdammod(lifeform_t *lf);
obpile_t *getunarmedweapon(lifeform_t *lf, flag_t **uflag);
2011-03-04 12:22:36 +11:00
int rolltohit(lifeform_t *lf, lifeform_t *victim, int *critical);
2011-02-01 06:16:13 +11:00
void wepeffects(object_t *wep, cell_t *where);