Paradise Station 13 - Modules - TypesDefine Details

code/__DEFINES/misc_defines.dm

GERM_LEVEL_AMBIENTGERMS AND INFECTIONS
RANGE_EDGE_TURFSReturns 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.
REGION_ALLAccess Region Codes
GREYSCALE_COLOR_REPLACEPure Black and white colorblindness. Every species except Vulpkanins and Tajarans will have this.
PROTANOPIA_COLOR_REPLACERed colorblindness. Vulpkanins/Wolpins have this.
TRITANOPIA_COLOR_REPLACEYellow-Blue colorblindness. Tajarans/Farwas have this.
CLIENT_FROM_VARReturn a Client
BASE_DEFIB_TIME_LIMITPast this much time the patient is unrecoverable (in deciseconds).
DEFIB_TIME_LOSSBrain damage starts setting in on the patient after some time left rotting.
MAPTEXTPrepares a text to be used for maptext. Use this so it doesn't look hideous.
DISCORD_WEBHOOK_PRIMARYSend to the primary Discord webhook
DISCORD_WEBHOOK_ADMINSend to the admin Discord webhook
DISCORD_WEBHOOK_MENTORSend to the mentor Discord webhook
UNTILWaits at a line of code until X is true
REFLECTABILITY_NEVERProjectile reflectability defines
DEADCHAT_DEMOCRACY_MODEWill execute a single command after the cooldown based on player votes.
DEADCHAT_ANARCHY_MODEAllows each player to do a single command every cooldown.
MUTE_DEADCHAT_DEMOCRACY_MESSAGESMutes 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_QDELSleep check QDEL. Like sleep check death, but checks deleting. Good for non mobs.
BRAIN_DAMAGE_BOOK_TIMEReading 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_TIMEThe amount of time a mob needs to wait between any book reading
text_refTakes 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

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

GERM_LEVEL_AMBIENT

GERMS AND INFECTIONS

GREYSCALE_COLOR_REPLACE

Pure Black and white colorblindness. Every species except Vulpkanins and Tajarans will have this.

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.

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

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

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