#include "defs.h" int needan(char *text); char *capitalise(char *text); char *capitaliseall(char *text); enum COLOUR chartocol(char ch); char *construct_hit_string(lifeform_t *lf, lifeform_t *victim, char *attackername, char *victimname, char *victimbpname, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp, int damidx, int critical, int backstab, int fatal, int isunarmed, char *retbuf); char *dicetotext(int ndice, int nsides, int bonus, int *min, int *max, char *dicebuf, char *minmaxbuf); int flip(int ch); char *getaccuracyname(int accpct); int getaccuracymodnum(int accmodpct); int getaccuracynum(int accpct); char *getattackverb(lifeform_t *lf, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp); char *getattrabbrev(enum ATTRIB att); char *getattrname(enum ATTRIB att); char *getdirname(int dir); char *getdirnameshort(int dir); void getdisttext(cell_t *src, cell_t *dst,char *distbuf, char *distbufapprox, char *dirbuf); int gethitconferlifetime(char *text, int *min, int *max); char *getkillverb(lifeform_t *victim, object_t *wep, enum DAMTYPE damtype, int dam, int maxhp); char *getpoisondamverb(enum POISONTYPE ptype); char *getpoisondesc(enum POISONTYPE ptype); char *getpoisonname(enum POISONTYPE ptype); char *getpossessive(char *text); char *getdrunktext(flag_t *drunkflag); char *getinjuredbpname(enum BODYPART bp); char *getinjuryname(enum DAMTYPE dt); char *getinjurydesc(enum BODYPART bp, enum DAMTYPE dt); char *getrarityname(enum RARITY rr); char *getregionname(char *buf, map_t *m, region_t *r, int withlevel); char *getreldirname(int reldir); char *getsizetext(enum LFSIZE sz); char *gettimetext(char *retbuf); char *gettimetextfuzzy(char *retbuf, int wantpm); char *getwaterdepthname(enum DEPTH d); char *getweighttext(float weight, char *buf, int shortfmt); char *is(lifeform_t *lf); int isvowel(char c); void makegunaimstring(lifeform_t *lf, int lfid, char *retbuf); char *makekillertext(char *retbuf, char *killverb, char *lastdam, int wantextra); char *makelowercase(char *text); char *makeplural(char *text); char *makethrowaccstring(lifeform_t *lf, cell_t *c, flag_t *throwflag, char *retbuf); char *makeuppercase(char *text); char *makewearstring(lifeform_t *lf, object_t *o, int wantyour, char *posbuf); char *makewearstringsingle(lifeform_t *lf, flag_t *f, char *yourbuf, char *posbuf); int needses(char *text); char *noprefix(char *obname); char *numtotext(int num, char *buf); char *readuntil(char *retbuf, char *src, char delim); char *roman(int num); int speedtokph(int speed); void splittime(int *hours, int *mins, int *secs); char *strrep(char *text, char *oldtok, char *newtok, int *rv); char *dostrrep(char* in, char** out, char* oldtok, char* newtok, int *rv); int streq(char *a, char *b); char *strends(char *a, char *suffix); char *strstarts(char *a, char *prefix); int strpixmatch(char *haystack, char *needle); int texttodice(char *text, int *ndice, int *nsides, int *bonus); void texttospellopts(char *text, ... ); //void texttospellopts(char *text, int *power, char *damstr, int *needgrab, int *range, char *racestr); char *you(lifeform_t *lf); char *you_l(lifeform_t *lf); char *your(lifeform_t *lf); char *your_l(lifeform_t *lf);