#define CLAMP(x, y, z) (x <= y ? y : (x >= z ? z : x)) #define CLAMP01(x) (CLAMP(x, 0, 1)) #define span(class, text) ("[text]") #define get_turf(A) get_step(A,0) #define RANDOM_BLOOD_TYPE pick(4;"O-", 36;"O+", 3;"A-", 28;"A+", 1;"B-", 20;"B+", 1;"AB-", 5;"AB+") #define to_world(message) to_chat(world, messaget) #define to_world_log(message) world.log << message // TODO - Baystation has this log to crazy places. For now lets just world.log, but maybe look into it later. #define log_world(message) world.log << message #define to_file(file_entry, source_var) file_entry << source_var #define from_file(file_entry, target_var) file_entry >> target_var #define CanInteract(user, state) (CanUseTopic(user, state) == STATUS_INTERACTIVE) #define ARGS_DEBUG log_debug("[__FILE__] - [__LINE__]") ; for(var/arg in args) { log_debug("\t[log_info_line(arg)]") }