code/__DEFINES/misc_defines.dm
GERM_LEVEL_AMBIENT | GERMS AND INFECTIONS |
---|---|
EMOJI_SET | Emoji icon set |
MACH_CENTER | A define for the center of the coordinate map of big machinery |
RANGE_EDGE_TURFS | Returns the turfs on the edge of a square with CENTER in the middle and with the given RADIUS. If used near the edge of the map, will still work fine. |
get_area | Grabs the area of a supplied object. Passing an area in to this will result in an error |
FOAM_REACT_NEVER | The chemicals in the foam (if any) will never react. |
FOAM_REACT_ON_DISSIPATE | Chemicals in the foam will only react when the foam dissipates. |
FOAM_REACT_DURING_SPREAD | Chemicals in the foam will react while the foam is still processing. |
FOAM_REACT_BEFORE_SPREAD | Chemicals in the foam will react when the foam first reaches a tile. |
REGION_ALL | Access Region Codes |
GREYSCALE_COLOR_REPLACE | Pure Black and white colorblindness. Every species except Vulpkanins and Tajarans will have this. |
PROTANOPIA_COLOR_REPLACE | Red colorblindness. Vulpkanins/Wolpins have this. |
TRITANOPIA_COLOR_REPLACE | Yellow-Blue colorblindness. Tajarans/Farwas have this. |
CLIENT_FROM_VAR | Return a Client |
BASE_DEFIB_TIME_LIMIT | Past this much time the patient is unrecoverable (in deciseconds). |
DEFIB_TIME_LOSS | Brain damage starts setting in on the patient after some time left rotting. |
MAPTEXT | Prepares a text to be used for maptext. Use this so it doesn't look hideous. |
PARALLAX_DELAY_DEFAULT | About 0.05 Seconds of delay |
DISCORD_WEBHOOK_PRIMARY | Send to the primary Discord webhook |
DISCORD_WEBHOOK_ADMIN | Send to the admin Discord webhook |
DISCORD_WEBHOOK_MENTOR | Send to the mentor Discord webhook |
UNTIL | Waits at a line of code until X is true |
REFLECTABILITY_NEVER | Projectile reflectability defines |
DEADCHAT_DEMOCRACY_MODE | Will execute a single command after the cooldown based on player votes. |
DEADCHAT_ANARCHY_MODE | Allows each player to do a single command every cooldown. |
MUTE_DEADCHAT_DEMOCRACY_MESSAGES | Mutes the democracy mode messages send to orbiters at the end of each cycle. Useful for when the cooldown is so low it'd get spammy. |
SLEEP_CHECK_QDEL | Sleep check QDEL. Like sleep check death, but checks deleting. Good for non mobs. |
BRAIN_DAMAGE_BOOK_TIME | Reading books can help with brain damage! These are seperate times so that a user gains more benefits by reading more books, but also cant infinitely switch between 1000 books. The amount of time needed to pass to let a single book be read again for brain benefits |
BRAIN_DAMAGE_MOB_TIME | The amount of time a mob needs to wait between any book reading |
text_ref | Takes a datum as input, returns its ref string, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck |
LOG_MAZE_PROGRESS | I dont recommend touching these map generator defines unless you know what you're doing with maze generators. |
PINPOINTER_MODE_DET | Detective's mode on pinpointers |
DISPOSAL_SOUND_COOLDOWN | How frequently disposals can make sounds, to prevent huge sound stacking |
VOTE_RESULT_TYPE_MAJORITY | The different kinds of voting |
RESTRICT_TYPE | A helper used by restrict_file_types.py to identify types to restrict in a file. Not used by byond at all. |
LAVALAND_TENDRIL_COLLAPSE_RANGE | The radius of the chasm created by killed tendrils. |
Define Details
BASE_DEFIB_TIME_LIMIT
Past this much time the patient is unrecoverable (in deciseconds).
BRAIN_DAMAGE_BOOK_TIME
Reading books can help with brain damage! These are seperate times so that a user gains more benefits by reading more books, but also cant infinitely switch between 1000 books. The amount of time needed to pass to let a single book be read again for brain benefits
BRAIN_DAMAGE_MOB_TIME
The amount of time a mob needs to wait between any book reading
CLIENT_FROM_VAR
Return a Client
DEADCHAT_ANARCHY_MODE
Allows each player to do a single command every cooldown.
DEADCHAT_DEMOCRACY_MODE
Will execute a single command after the cooldown based on player votes.
DEFIB_TIME_LOSS
Brain damage starts setting in on the patient after some time left rotting.
DISCORD_WEBHOOK_ADMIN
Send to the admin Discord webhook
DISCORD_WEBHOOK_MENTOR
Send to the mentor Discord webhook
DISCORD_WEBHOOK_PRIMARY
Send to the primary Discord webhook
DISPOSAL_SOUND_COOLDOWN
How frequently disposals can make sounds, to prevent huge sound stacking
EMOJI_SET
Emoji icon set
FOAM_REACT_BEFORE_SPREAD
Chemicals in the foam will react when the foam first reaches a tile.
FOAM_REACT_DURING_SPREAD
Chemicals in the foam will react while the foam is still processing.
FOAM_REACT_NEVER
The chemicals in the foam (if any) will never react.
FOAM_REACT_ON_DISSIPATE
Chemicals in the foam will only react when the foam dissipates.
GERM_LEVEL_AMBIENT
GERMS AND INFECTIONS
GREYSCALE_COLOR_REPLACE
Pure Black and white colorblindness. Every species except Vulpkanins and Tajarans will have this.
LAVALAND_TENDRIL_COLLAPSE_RANGE
The radius of the chasm created by killed tendrils.
LOG_MAZE_PROGRESS
I dont recommend touching these map generator defines unless you know what you're doing with maze generators.
MACH_CENTER
A define for the center of the coordinate map of big machinery
MAPTEXT
Prepares a text to be used for maptext. Use this so it doesn't look hideous.
MUTE_DEADCHAT_DEMOCRACY_MESSAGES
Mutes the democracy mode messages send to orbiters at the end of each cycle. Useful for when the cooldown is so low it'd get spammy.
PARALLAX_DELAY_DEFAULT
About 0.05 Seconds of delay
PINPOINTER_MODE_DET
Detective's mode on pinpointers
PROTANOPIA_COLOR_REPLACE
Red colorblindness. Vulpkanins/Wolpins have this.
RANGE_EDGE_TURFS
Returns the turfs on the edge of a square with CENTER in the middle and with the given RADIUS. If used near the edge of the map, will still work fine.
REFLECTABILITY_NEVER
Projectile reflectability defines
REGION_ALL
Access Region Codes
RESTRICT_TYPE
A helper used by restrict_file_types.py
to identify types to restrict in a file. Not used by byond at all.
SLEEP_CHECK_QDEL
Sleep check QDEL. Like sleep check death, but checks deleting. Good for non mobs.
TRITANOPIA_COLOR_REPLACE
Yellow-Blue colorblindness. Tajarans/Farwas have this.
UNTIL
Waits at a line of code until X is true
VOTE_RESULT_TYPE_MAJORITY
The different kinds of voting
get_area
Grabs the area of a supplied object. Passing an area in to this will result in an error
text_ref
Takes a datum as input, returns its ref string, or a cached version of it This allows us to cache \ref creation, which ensures it'll only ever happen once per datum, saving string tree time It is slightly less optimal then a []'d datum, but the cost is massively outweighed by the potential savings It will only work for datums mind, for datum reasons : because of the embedded typecheck