#define TASKER "/handlers/taskmaster" #define BARF -1 #define FAIL 0 #define SUCCEED 1 #define AWARD 2 #define OFFAWARD -2 #define OFFWIN -1 #define DRAW 0 #define DEFWIN 1 #define DEFAWARD 2 // these are used in tweaking the TM rate for different levels of skill #define BASE 100.0 #define DECAY 300.0 #define MODIFIER 10 #define E_MODIFIER 5 /* * these are temporary defines till the new TM stuff is working. */ #define COVERT_TM 100, ({0, 5}) #define CONTINUOUS_COVERT_TM 100, ({0, 3}) #define PERCEPTION_TM 50 #define FAITH_TM 75 #define FAITH_TM_HALF 30 #define MAGIC_TM 75 #define MAGIC_TM_HALF 30 #define OTHER_TM 100 /* * The above don't work, this is used instead. */ #define TM_RATES ([ \ "fighting" : 60, \ "covert" : 60, \ "magic" : 70, \ "faith" : 70, \ "general" : 90, \ "crafts" : 90, \ ]) /* * New definitions for different task types */ // An fixed skill test #define TM_FIXED 1 // A free skill test in a room or somesuch #define TM_FREE 2 // continuous task #define TM_CONTINUOUS 3 // a command #define TM_COMMAND 4 // a ritual #define TM_RITUAL 5 // a spell #define TM_SPELL 6 // just a test, no chance of an increase #define TM_NONE 7 class task_class_result { int result; int degree; }