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-22 18:06:28 +11:00
|
|
|
void confereffects(flagpile_t *fp, lifeform_t *victim);
|
2011-03-04 12:22:36 +11:00
|
|
|
int getarmourdamreduction(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype);
|
2011-03-22 18:06:28 +11:00
|
|
|
char *getattackverb(lifeform_t *lf, object_t *wep, 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-04-01 10:54:44 +11:00
|
|
|
int getextradamlf(lifeform_t *lf, int *dam, enum DAMTYPE *damtype, int *ndam);
|
|
|
|
int getextradamwep(object_t *wep, int *dam, enum DAMTYPE *damtype, int *ndam);
|
2011-02-16 05:21:33 +11:00
|
|
|
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);
|
2011-02-16 05:21:33 +11:00
|
|
|
void getdamrangeunarmed(flag_t *f, int *min, int *max);
|
2011-02-01 06:16:13 +11:00
|
|
|
float getdamreducepct(float armourrating);
|
2011-02-16 05:21:33 +11:00
|
|
|
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-03-24 16:09:31 +11:00
|
|
|
void wepeffects(flagpile_t *fp, cell_t *where, int dam);
|