#ifndef _PARAMS_H_95b05494_ #define _PARAMS_H_95b05494_ /* This software is Copyright 1989, 1990, 1992, 1993 by various individuals. Please see the accompanying file COPYRIGHT for details. */ #include "config.h" /* penny related stuff */ /* amount of object endowment, based on cost */ /* setting MAX_OBJECT_ENDOWMENT to any value <=0 means "no limit" */ #define MAX_OBJECT_ENDOWMENT 0 #define OBJECT_ENDOWMENT(cost) (cost) /* (((cost)-5)/5) */ #define OBJECT_DEPOSIT(endow) (endow) /* ((endow)*5+4) */ /* minimum costs for various things */ #define OBJECT_COST 1 /* Amount it costs to make an object */ #define EXIT_COST 1 /* Amount it costs to make an exit */ #define LINK_COST 1 /* Amount it costs to make a link */ #define ROOM_COST 25 /* Amount it costs to dig a room */ #define LOOKUP_COST 0 /* cost to do a scan */ #define PENNY_RATE 4 /* 1/chance of getting a penny per room */ #define USEVAL_SCALE .999991977495368343795814 /* factor of .5 per day */ #define USEVAL_INC .287682072451780854579 /* increment = log(1/.75) */ /* #define MAX_PENNIES 10000 /* max normally possible for mortals */ /* undefining MAX_PENNIES implies no limit */ /* costs of kill command */ #define KILL_BASE_COST 100 /* prob = expenditure/KILL_BASE_COST */ #define KILL_MIN_COST 10 /* minimum amount needed to kill */ #define KILL_BONUS 50 /* amount of "insurance" paid to victim */ /* timing stuff */ #define TIME_MINUTE(x) (60 * (x)) /* 60 seconds */ #define TIME_HOUR(x) (60 * (TIME_MINUTE(x))) /* 60 minutes */ #define TIME_DAY(x) (24 * (TIME_HOUR(x))) /* 24 hours */ # define INIT_ALARM_INTERVAL 1 /* initial seconds per alarm */ # define CHECK_RATE 30 /* seconds per alarm rate check */ # define HIGH_WATER 30 /* MAX % misses/total alarm */ # define LOW_WATER 10 /* MIN % misses/total alarm */ # define DUMP_INTERVAL 3600 /* seconds between dumps (undef disables) */ # define DAEMON_INTERVAL 0 /* seconds between daemon launches */ #define MAX_DAEMONS 20 /* max # of daemons/player */ #define MAX_WIZ_DAEMONS 40 /* max # of daemons/player */ #define MIN_DAEMON_SLEEP 10 /* minimum sleep time for normal daemons */ #define COMMAND_TIME_MSEC 1000 /* time slice length in milliseconds */ #define COMMAND_BURST_SIZE 100 /* commands allowed per user in a burst */ #define COMMANDS_PER_TIME 1 /* commands per time slice after burst */ #define MAX_OUTPUT 16384 /* maximum amount of queued output */ #define DB_INITIAL_SIZE 10000 /* as the name implies... */ #define LOG_DB_GROWTH /* defined -> status log sees db growth */ /* Turn this on when you want MUD to set from root to some user_id */ /* #define MUD_ID "guest" */ /* Change to 'home' if you don't want it to be too confusing to novices. */ #define BREAK_COMMAND "@Q" /* @edit'or stuff */ #define INSERT_COMMAND 'i' #define DELETE_COMMAND 'd' #define QUIT_EDIT_COMMAND 'q' #define COMPILE_COMMAND 'c' #define LIST_COMMAND 'l' #define EDITOR_HELP_COMMAND 'h' #define KILL_COMMAND 'k' #define SHOW_COMMAND 's' #define SHORTSHOW_COMMAND 'a' #define VIEW_COMMAND 'v' #define UNASSEMBLE_COMMAND 'u' #define NUMBER_COMMAND 'n' /* maximum number of arguments */ #define MAX_ARG 2 /* Usage comments: Line numbers start from 1, so when an argument variable is equal to 0, it means that it is non existent. I've chosen to put the parameters before the command, because this should more or less make the players get used to the idea of forth coding.. */ #define EXIT_INSERT "." /* character to exit from the editor */ #define EXIT_DELIMITER ';' /* delimiter for lists of exit aliases */ #define MAX_LINKS 50 /* maximum number of destinations for an exit */ #define PLAYER_START ((dbref) 0) /* room number of player start location */ #define GLOBAL_ENVIRONMENT ((dbref) 0) /* parent of all rooms */ /* magic cookies (not chocolate chip) :) */ #define NOT_TOKEN '!' #define AND_TOKEN '&' #define OR_TOKEN '|' #define LOOKUP_TOKEN '*' #define NUMBER_TOKEN '#' #define ARG_DELIMITER '=' #define PROP_DELIMITER ':' #if 0 #define PROP_RDONLY '_' #define PROP_PRIVATE '.' #define PROP_MUF '*' #define PROP_WIZ '@' #define PROP_WWUR '~' #endif #define PROP_UNSPEC '\0' #endif