#include "defs.h" 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); int attackcell(lifeform_t *lf, cell_t *c, int force); 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); void confereffects(flagpile_t *fp, lifeform_t *victim); int damtypecausesbleed(enum DAMTYPE dt); int getarmourdamreduction(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype); void getarrange(int arating, int *min, int *max); char *getattackverb(lifeform_t *lf, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp); //object_t *getattackwep(lifeform_t *lf, obpile_t **unarmedpile, flag_t **unarmedflag); enum DAMTYPE getdamtype(object_t *wep); int getextradamlf(lifeform_t *lf, int *dam, enum DAMTYPE *damtype, int *ndam); int getextradamwep(object_t *wep, int *dam, enum DAMTYPE *damtype, int *ndam); char *getkillverb(lifeform_t *victim, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp); void getdamrange(flag_t *f, int *min, int *max); //void getdamrangeunarmed(flag_t *f, int *min, int *max); //float getdamreducepct(float armourrating); int getdamroll(object_t *o, lifeform_t *victim, flag_t *damflag); //int getunarmeddamroll(flag_t *f); float getstrdammod(lifeform_t *lf); //obpile_t *getunarmedweapon(lifeform_t *lf, flag_t **uflag); int ismeleedam(enum DAMTYPE damtype); int isphysicaldam(enum DAMTYPE damtype); void modifyforsize(int *val, lifeform_t *lf, lifeform_t *victim, int howmuch, enum MODTYPE how); 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);