mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Moves the constants from defines and compile_options files into the __DEFINES directory. The compile options in the latter file that are actually tweakable remain in their existing file in the code directory. Constants from DEFINES.dm, globals.dm, names.dm, and global_lists.dm have been moved into the _globalvars subdirectory. stylesheet.dm has been moved into the interface directory since that's a better place for it. This move contains no code changes for stock TG. It is purely an organizational move meant to clean up hard to read code. Some global constants that appear to be unused have been put into unused.dm, but not unticked. This list is by no means exhaustive. Branches should be aware that they need to move any additional defines and global constants manually.
61 lines
2.9 KiB
Plaintext
61 lines
2.9 KiB
Plaintext
#define DEBUG //Enables byond profiling and full runtime logs - note, this may also be defined in your .dme file
|
|
//#define dellogging //Enables logging of forced del() calls (used for debugging)
|
|
//#define TESTING //Enables in-depth debug messages to runtime log (used for debugging)
|
|
//By using the testing("message") proc you can create debug-feedback for people with this
|
|
//uncommented, but not visible in the release version)
|
|
|
|
#define PRELOAD_RSC 1 /*set to:
|
|
0 to allow using external resources or on-demand behaviour;
|
|
1 to use the default behaviour;
|
|
2 for preloading absolutely everything;
|
|
*/
|
|
//ADMIN STUFF
|
|
#define ROUNDSTART_LOGOUT_REPORT_TIME 6000 //Amount of time (in deciseconds) after the rounds starts, that the player disconnect report is issued.
|
|
|
|
#define SPAM_TRIGGER_WARNING 5 //Number of identical messages required before the spam-prevention will warn you to stfu
|
|
#define SPAM_TRIGGER_AUTOMUTE 10 //Number of identical messages required before the spam-prevention will automute you
|
|
|
|
//Don't set this very much higher then 1024 unless you like inviting people in to dos your server with message spam
|
|
#define MAX_MESSAGE_LEN 1024
|
|
#define MAX_NAME_LEN 26
|
|
#define MAX_BROADCAST_LEN 512
|
|
|
|
//MINOR TWEAKS/MISC
|
|
#define AGE_MIN 17 //youngest a character can be
|
|
#define AGE_MAX 85 //oldest a character can be
|
|
#define SHOES_SLOWDOWN -1 //How much shoes slow you down by default. Negative values speed you up
|
|
#define STRIP_DELAY 40 //time taken (in deciseconds) to strip somebody
|
|
#define DOOR_CRUSH_DAMAGE 10 //the amount of damage that airlocks deal when they crush you
|
|
|
|
#define HUNGER_FACTOR 0.1 //factor at which mob nutrition decreases
|
|
#define REAGENTS_METABOLISM 0.4 //How many units of reagent are consumed per tick, by default.
|
|
#define REAGENTS_EFFECT_MULTIPLIER (REAGENTS_METABOLISM / 0.4) // By defining the effect multiplier this way, it'll exactly adjust all effects according to how they originally were with the 0.4 metabolism
|
|
|
|
#define MAX_STACK_AMOUNT_METAL 50
|
|
#define MAX_STACK_AMOUNT_GLASS 50
|
|
#define MAX_STACK_AMOUNT_RODS 60
|
|
|
|
#define AI_CAMERA_LUMINOSITY 5
|
|
|
|
|
|
//Additional code for the above flags.
|
|
#ifdef dellogging
|
|
#warn compiling del logging. This will have additional overheads. //will warn you if compiling with dellogging
|
|
var/list/del_counter = list()
|
|
/proc/log_del(datum/X)
|
|
if(istype(X)){del_counter[X.type]++;}
|
|
del(X)
|
|
#define del(X) log_del(X) //overrides all del() calls with log_del()
|
|
#endif
|
|
|
|
#ifdef TESTING
|
|
#warn compiling in TESTING mode. testing() debug messages will be visible.
|
|
#endif
|
|
|
|
//SYSTEM TOGGLES - these allow you to compile the game without some of the laggier systems if your server cannot cope with demand
|
|
/* Not yet coded
|
|
#define USE_DYNAMIC_GRAVITY //Enables the dynamic gravity system
|
|
#define USE_DYNAMIC_LIGHTING //Enables the dynamic lighting system
|
|
#define USE_DYNAMIC_ATMOS //Enables the dynamic atmos system
|
|
*/
|