mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 03:32:28 +00:00
This commit overhauls the global.dm file, global_lists.dm file, and defines.dm file into a tree system based on -tg-. All defines have been split and distributed in code/__DEFINES/ Everything from global.dm and global_lists.dm has been split and distributed in code/_globalvars The _compile_options.dm file contains anything that absolutely, 100%, must be initialized before world.dm. Name definitions have been moved to code/_globalvars/lists/names.dm. Other things to note - All instances of something.z == 2/1/3/5 have been replaced with easily configurable defines, labeled ZLEVEL_. The map include file can override these by defining custom ones in it's file, as it is at the top of the tree.
13 lines
377 B
Plaintext
13 lines
377 B
Plaintext
#define PI 3.1415
|
|
#define SPEED_OF_LIGHT 3e8 //not exact but hey!
|
|
#define SPEED_OF_LIGHT_SQ 9e+16
|
|
#define INFINITY 1e31 //closer then enough
|
|
|
|
//atmos
|
|
#define R_IDEAL_GAS_EQUATION 8.31 //kPa*L/(K*mol)
|
|
#define ONE_ATMOSPHERE 101.325 //kPa
|
|
#define T0C 273.15 // 0degC
|
|
#define T20C 293.15 // 20degC
|
|
#define TCMB 2.7 // -270.3degC
|
|
|
|
#define CLAMP01(x) max(0, min(1, x)) |