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-06-20 13:16:30 +10:00
|
|
|
int attackcell(lifeform_t *lf, cell_t *c, int force);
|
2011-04-08 13:18:54 +10:00
|
|
|
int attacklf(lifeform_t *lf, lifeform_t *victim, object_t *wep, flag_t *damflag);
|
|
|
|
int attackob(lifeform_t *lf, object_t *o, object_t *wep, flag_t *damflag);
|
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-04-08 13:18:54 +10:00
|
|
|
//object_t *getattackwep(lifeform_t *lf, obpile_t **unarmedpile, flag_t **unarmedflag);
|
2011-02-01 06:16:13 +11:00
|
|
|
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-04-11 15:05:45 +10:00
|
|
|
char *getkillverb(lifeform_t *victim, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp);
|
2011-04-08 13:18:54 +10:00
|
|
|
void getdamrange(flag_t *f, int *min, int *max);
|
|
|
|
//void getdamrangeunarmed(flag_t *f, int *min, int *max);
|
2011-06-05 19:21:21 +10:00
|
|
|
//float getdamreducepct(float armourrating);
|
2011-04-08 13:18:54 +10:00
|
|
|
int getdamroll(object_t *o, lifeform_t *victim, flag_t *damflag);
|
|
|
|
//int getunarmeddamroll(flag_t *f);
|
2011-02-01 06:16:13 +11:00
|
|
|
float getstrdammod(lifeform_t *lf);
|
2011-04-08 13:18:54 +10:00
|
|
|
//obpile_t *getunarmedweapon(lifeform_t *lf, flag_t **uflag);
|
2011-06-09 18:58:35 +10:00
|
|
|
int ismeleedam(enum DAMTYPE damtype);
|
2011-04-06 17:27:55 +10:00
|
|
|
int isphysicaldam(enum DAMTYPE damtype);
|
2011-06-20 13:16:30 +10:00
|
|
|
void modifyforsize(int *val, lifeform_t *lf, lifeform_t *victim, int howmuch, enum MODTYPE how);
|
2011-04-08 13:18:54 +10:00
|
|
|
int rolltohit(lifeform_t *lf, lifeform_t *victim, object_t *wep, int *critical);
|
|
|
|
void wepeffects(flagpile_t *fp, cell_t *where, flag_t *damflag, int dam);
|