/* DELARATIONS FOR jail.h */ /* Prevents sitting in JAILCELL past ABUSE_CHECK / (ABUSE_RATIO * 10) ticks */ #define ABUSE_CHECK 40 #define ABUSE_RATIO 2 #define ABUSE_KICK 140 //kicks justice out of cell after ABUSE_KIKC / (ABUSE_RATIO * 10) ticks /* TYPES OF INCARCERATION (stored in gen_jail.modifier*/ #define JAIL_NONE -1 //Used for killing gen if not in jail cell #define JAIL_RELEASE 0 #define JAIL_TRANSFER 1 #define JAIL_NORMAL 2 #define JAIL_BAIL 3 #define JAIL_EXTENDED 4 #define JAIL_EXECUTE 5 /* DURATIONS OF JAIL TYPES */ #define DUR_NORMAL 20 #define DUR_EXTENDED 30 #define DUR_BAIL 5 #define DUR_EXECUTE 12 #define DUR_RELEASE 0 /* SEVERITY MODIFIERS */ #define SEV_EXTENDED 3 /* ticks */ #define SEV_BAIL 10000 /* gold */ struct execution_type{ char* name; //Name of execution char* announce; //announcement to be fittied into a yell:" For his crimes against the Laws of Aabahran,\n\r //<name> has been sentenced by <justice> <announce>." char* pre_act; //string to be passed to "act" with , mob, NULL, ch, TO_ROOM, 1 tick before execution //Also passed to criminal right before execution char* on_act_r; //string to be passed to "act" with , mob, NULL, ch, TO_NOTVICT, AT execution char* on_act_c; //string to be passed to "act" with , mob, NULL, ch, TO_VICT, AT execution char* room_desc; //String to be set as Room desc. of EXECUTION_OBJ created after execution. //Single %s used for name of criminal. }; extern const struct execution_type execution_table[]; /* functions */ int show_crimes ( CHAR_DATA* ch, CHAR_DATA* victim, bool fPunish, bool fPenOnly ); AFFECT_DATA* set_crime ( CHAR_DATA* ch, CHAR_DATA* victim, AREA_DATA* area, int crime ); bool is_crime ( ROOM_INDEX_DATA* room, int crime, CHAR_DATA* victim ); int crime_lookup (const char *name ); int get_random_rares( CHAR_DATA* ch, CHAR_DATA* victim, int number, bool fRandom );