-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1432 from Yawn-Wider/upstream-update
Voreupdate [MDB IGNORE] [IDB IGNORE]
- Loading branch information
Showing
559 changed files
with
11,015 additions
and
11,925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
code/__datastructures/globals.dm → code/__defines/__globals.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
// See also controllers/globals.dm | ||
|
||
// Creates a global initializer with a given InitValue expression, do not use outside this file | ||
/// Creates a global initializer with a given InitValue expression, do not use | ||
#define GLOBAL_MANAGED(X, InitValue)\ | ||
/datum/controller/global_vars/proc/InitGlobal##X(){\ | ||
##X = ##InitValue;\ | ||
gvars_datum_init_order += #X;\ | ||
} | ||
// Creates an empty global initializer, do not use outside this file | ||
/// Creates an empty global initializer, do not use | ||
#define GLOBAL_UNMANAGED(X) /datum/controller/global_vars/proc/InitGlobal##X() { return; } | ||
|
||
// Prevents a given global from being VV'd | ||
/// Prevents a given global from being VV'd | ||
#ifndef TESTING | ||
#define GLOBAL_PROTECT(X)\ | ||
/datum/controller/global_vars/InitGlobal##X(){\ | ||
..();\ | ||
gvars_datum_protected_varlist += #X;\ | ||
gvars_datum_protected_varlist[#X] = TRUE;\ | ||
} | ||
#else | ||
#define GLOBAL_PROTECT(X) | ||
#endif | ||
|
||
// Standard BYOND global, do not use outside this file | ||
/// Standard BYOND global, seriously do not use without an earthshakingly good reason | ||
#define GLOBAL_REAL_VAR(X) var/global/##X | ||
|
||
// Standard typed BYOND global, do not use outside this file | ||
|
||
/// Standard typed BYOND global, seriously do not use without an earthshakingly good reason | ||
#define GLOBAL_REAL(X, Typepath) var/global##Typepath/##X | ||
|
||
// Defines a global var on the controller, do not use outside this file. | ||
/// Defines a global var on the controller, do not use | ||
#define GLOBAL_RAW(X) /datum/controller/global_vars/var/global##X | ||
|
||
// Create an untyped global with an initializer expression | ||
/// Create an untyped global with an initializer expression | ||
#define GLOBAL_VAR_INIT(X, InitValue) GLOBAL_RAW(/##X); GLOBAL_MANAGED(X, InitValue) | ||
|
||
// Create a global const var, do not use | ||
/// Create a global const var, do not use | ||
#define GLOBAL_VAR_CONST(X, InitValue) GLOBAL_RAW(/const/##X) = InitValue; GLOBAL_UNMANAGED(X) | ||
|
||
// Create a list global with an initializer expression | ||
/// Create a list global with an initializer expression | ||
#define GLOBAL_LIST_INIT(X, InitValue) GLOBAL_RAW(/list/##X); GLOBAL_MANAGED(X, InitValue) | ||
|
||
// Create a list global that is initialized as an empty list | ||
/// Create a list global that is initialized as an empty list | ||
#define GLOBAL_LIST_EMPTY(X) GLOBAL_LIST_INIT(X, list()) | ||
|
||
// Create a typed list global with an initializer expression | ||
/// Create a typed list global with an initializer expression | ||
#define GLOBAL_LIST_INIT_TYPED(X, Typepath, InitValue) GLOBAL_RAW(/list##Typepath/X); GLOBAL_MANAGED(X, InitValue) | ||
|
||
// Create a typed list global that is initialized as an empty list | ||
/// Create a typed list global that is initialized as an empty list | ||
#define GLOBAL_LIST_EMPTY_TYPED(X, Typepath) GLOBAL_LIST_INIT_TYPED(X, Typepath, list()) | ||
|
||
// Create a typed global with an initializer expression | ||
/// Create a typed global with an initializer expression | ||
#define GLOBAL_DATUM_INIT(X, Typepath, InitValue) GLOBAL_RAW(Typepath/##X); GLOBAL_MANAGED(X, InitValue) | ||
|
||
// Create an untyped null global | ||
/// Create an untyped null global | ||
#define GLOBAL_VAR(X) GLOBAL_RAW(/##X); GLOBAL_UNMANAGED(X) | ||
|
||
// Create a null global list | ||
/// Create a null global list | ||
#define GLOBAL_LIST(X) GLOBAL_RAW(/list/##X); GLOBAL_UNMANAGED(X) | ||
|
||
// Create a typed null global | ||
/// Create a typed null global | ||
#define GLOBAL_DATUM(X, Typepath) GLOBAL_RAW(Typepath/##X); GLOBAL_UNMANAGED(X) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//Designed for things that need precision trajectories like projectiles. | ||
//Don't use this for anything that you don't absolutely have to use this with (like projectiles!) because it isn't worth using a datum unless you need accuracy down to decimal places in pixels. | ||
|
||
//You might see places where it does - 16 - 1. This is intentionally 17 instead of 16, because of how byond's tiles work and how not doing it will result in rounding errors like things getting put on the wrong turf. | ||
|
||
#define RETURN_PRECISE_POSITION(A) new /datum/position(A) | ||
#define RETURN_PRECISE_POINT(A) new /datum/point(A) | ||
|
||
#define RETURN_POINT_VECTOR(ATOM, ANGLE, SPEED) (new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED)) | ||
#define RETURN_POINT_VECTOR_INCREMENT(ATOM, ANGLE, SPEED, AMT) (new /datum/point/vector(ATOM, null, null, null, null, ANGLE, SPEED, AMT)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#define VORE_SOUND_FALLOFF 0.1 | ||
#define VORE_SOUND_RANGE 3 | ||
|
||
#define HOLO_ORIGINAL_COLOR null //Original hologram color: "#7db4e1" | ||
#define HOLO_HARDLIGHT_COLOR "#d97de0" | ||
#define HOLO_ORIGINAL_ALPHA 120 | ||
#define HOLO_HARDLIGHT_ALPHA 200 | ||
|
||
#define BELLIES_MAX 40 | ||
#define BELLIES_NAME_MIN 2 | ||
#define BELLIES_NAME_MAX 40 | ||
#define BELLIES_DESC_MAX 4096 | ||
#define FLAVOR_MAX 400 | ||
|
||
#define VORE_VERSION 2 //This is a Define so you don't have to worry about magic numbers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,3 +305,6 @@ | |
|
||
build_eff = man_rating | ||
eat_eff = bin_rating | ||
|
||
#undef BIOGEN_ITEM | ||
#undef BIOGEN_REAGENT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.