#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 attacklf(lifeform_t *lf, lifeform_t *victim); int attackob(lifeform_t *lf, object_t *o); void confereffects(flagpile_t *fp, lifeform_t *victim); int getarmourdamreduction(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype); 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 getextradam(object_t *wep, int *dam, enum DAMTYPE *damtype, int *ndam); char *getkillverb(lifeform_t *victim, enum DAMTYPE damtype, int dam, int maxhp); void getdamrange(flagpile_t *fp, 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); int getdamrollfromflag(flag_t *f); float getstrdammod(lifeform_t *lf); obpile_t *getunarmedweapon(lifeform_t *lf, flag_t **uflag); int rolltohit(lifeform_t *lf, lifeform_t *victim, int *critical); void wepeffects(flagpile_t *fp, cell_t *where);