36 lines
2.3 KiB
C
36 lines
2.3 KiB
C
#include "defs.h"
|
|
|
|
int applyarmourdamage(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype, lifeform_t *attacker);
|
|
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);
|
|
int attackwall(lifeform_t *lf, cell_t *c, object_t *wep, flag_t *damflag);
|
|
enum DAMTYPE basedamagetype(enum DAMTYPE dt);
|
|
int check_for_block(lifeform_t *lf, lifeform_t *victim, int dam, enum DAMTYPE damtype, int difficulty, char *attackname, int ranged);
|
|
//void confereffects(flagpile_t *fp, lifeform_t *victim);
|
|
void criticalhit(lifeform_t *lf, lifeform_t *victim, enum BODYPART hitpos, object_t *wep, int dam, enum DAMTYPE damtype);
|
|
int damtypecausesbleed(enum DAMTYPE dt, object_t *fromob);
|
|
int damtypecausescriteffects(enum DAMTYPE dt);
|
|
int getarmourdamreduction(lifeform_t *lf, object_t *wep, int dam, enum DAMTYPE damtype);
|
|
void getarrange(int arating, int *min, int *max);
|
|
//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 wantmax);
|
|
int getextradamwep(object_t *wep, int *dam, enum DAMTYPE *damtype, int *ndam, int fordisplay);
|
|
void getdamrange(object_t *o, flag_t *f, int *min, int *max);
|
|
//void getdamrange(object_t *o, 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);
|
|
int getstrdammod(lifeform_t *lf);
|
|
//obpile_t *getunarmedweapon(lifeform_t *lf, flag_t **uflag);
|
|
int armourcanstopdam(enum DAMTYPE damtype);
|
|
int iskineticdam(enum DAMTYPE damtype);
|
|
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, int *fumble, int *missby);
|
|
void wepeffects(flagpile_t *fp, cell_t *where, flag_t *damflag, int dam, int isunarmed);
|