Space Station 13 - Nebula13 - Modules - TypesVar Details - Proc Details

/(global)

Vars

COMPOST_WORM_EAT_AMOUNTThe number of worms influences the rate at which contents are decomposed into compost.
FailsafeFailsafe
MasterStonedMC
SSdaycycleSubsystem for updating day/night ambient lighting for sets of z-levels that share a common day/night state.
SStimer
_comment_mood_legendVisual formatting for character info/comments.
access_cent_generalCentral Command
access_hackedAntag access
access_securityStation access
access_synthMisc
alphabetAlphabet a-z.
alphabet_capitalAlphabet A-Z.
apophonic_pluralsWords that have a different plural form, and their plural form
area_blurb_stated_toThis list of names is here to make sure we don't state our descriptive blurb to a person more than once.
english_loanwordsUsed to tell how to make it a plural word and etc.
mil_branchesDatums for military branches and ranks
numbersNumbers 0-9.
plural_endings_in_vesPlurals endings in -ves
plural_endings_with_doubled_letterPlurals endings in -sses or -zzes
plural_siblantsSiblants that should end with es
plural_vocalized_yVocalized y sounds that needs to end in -ies when made plural
plural_words_unchangedWords that stay the same in plural
syndicate_code_phraseCode phrase for traitors.
syndicate_code_responseCode response for traitors.
vowelsVowels.

Procs

CreateBansDEBUG
ReloadThemeCssForce the light and dark theme css files to be reloaded. Mainly usefule for devs.
_addtimerCreate a new timer and insert it in the queue. You should not call this directly, and should instead use the addtimer macro, which includes source information.
all_hearersHear Helpers
all_viewersView Helpers
callHook@file hooks.dm Implements hooks, a simple way to run code on pre-defined events.
clients_in_rangeRange Helpers
color_matrix_addReturns a matrix addition of A with B
color_matrix_contrastChanges distance colors have from rgb(127,127,127) grey
color_matrix_identityReturns the matrix identity
color_matrix_lightnessAdds/subtracts overall lightness
color_matrix_multiplyReturns a matrix multiplication of A with B
color_matrix_rotate_hueMoves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys
color_matrix_rotate_xRotates around the red axis
color_matrix_rotate_yRotates around the green axis
color_matrix_rotate_zRotates around the blue axis
color_matrix_saturationChanges distance hues have from grey while maintaining the overall lightness. Greys are unaffected.
color_to_full_rgba_matrixConverts RGB shorthands into RGBA matrices complete of constants rows (ergo a 20 keys list in byond).
copy_extensionCopy the extension instance on the 'source' and put it on the 'destination'.
create_area_imageGenerate_image function generates image of specified range and location:
deltimerDelete a timer
findNullRodConstruct Spells
gaussianConverts a uniform distributed random number into a normal distributed one since this method produces two random numbers, one is saved for subsequent calls (making the cost negligble for every second call).
get_default_outfit_backpackHelpers
get_mannequinInitial Building
get_mobs_in_analog_radio_rangesReturns a list of mobs who can hear any of the radios given in @radios Assume all the radios in the list are eligible; we just care about mobs
get_ordinal_stringReturns a number string with its ordinal suffix th, st, nd, rd
get_random_uplink_itemsSupport procs
get_surrounding_pressure_differentialGets the highest and lowest pressures from the tiles in cardinal directions around us, then checks the difference.
get_transition_edge_corner_turfsReturns all the turfs from all 4 corners of the transition border of a level.
get_transition_edge_turfsReturns all the turfs within a zlevel's transition edge, on a given direction. If include corners is true, the corners of the map will be included.
get_turf_transition_edge_directionReturns the a cardinal direction for a turf on the map that's beyond the transition edge
get_wound_typeWOUND DEFINITIONS
handle_paper_stack_shared_topicsHandles topic interactions shared by folders and clipboard.
is_dense_assocIs this a dense (all keys have non-null values) associative list with at least one entry?
is_special_characterADMIN HELPER PROCS
listDeepCloneDeep copy/clone everything in the list, or reference things that cannot be cloned. Use with caution. atom_refs_only: If true, the proc will only reference /atom subtypes, and will not clone them.
number_to_3digitsGiven a number, returns a representation fit for a 3-digit display.
oncloseRegisters the on-close verb for a browse window (client/verb/.windowclose) this will be called when the close-button of a window is pressed.
passA do nothing proc used to prevent empty block warnings In hot code (like atmos checks), use EMPTY_BLOCK_GUARD instead.
play_dtmf_key_soundPlays a DTMF tone (Telephone key press sound) for any valid telephone key.
send_fax_to_adminHelper for sending a fax from a fax machine to an admin destination.
set_scent_by_reagentsReagents have the following vars, which coorelate to the vars on the standard scent extension: scent, scent_intensity, scent_descriptor, scent_range To add a scent extension to an atom using a reagent's info, where R. is the reagent, use set_scent_by_reagents().
shared_mimic_edge_get_add_vis_contentsShared proc to provide the default vis_content for the edge_turf.
shared_transition_edge_bumpedHandles teleporting an atom that touches a transition edge/loop edge.
shared_transition_edge_get_coordinates_turf_to_mimicReturns the turf that's opposite to the specified turf, on the level specified.
shared_transition_edge_get_valid_level_dataGrab the connected level data for the level connected in the direction the 'T' turf is in.
stoplagreturns the number of ticks slept
text_ends_withReturns true if the text ends with the given sequence of characters.
text_ends_with_any_ofReturns true if the text ends with ANY of the given sequences of characters.
text_make_pluralProperly changes the given word (or the last word of the string) into a plural word. Applies a bunch of exceptions from the english language.
text_starts_withReturns true if the text starts with the given sequence of characters.
timeleftGet the remaining deciseconds on a timer

Var Details

COMPOST_WORM_EAT_AMOUNT

The number of worms influences the rate at which contents are decomposed into compost.

Failsafe

Failsafe

Pretty much pokes the MC to make sure it's still alive.

Master

StonedMC

Designed to properly split up a given tick among subsystems Note: if you read parts of this code and think "why is it doing it that way" Odds are, there is a reason

SSdaycycle

Subsystem for updating day/night ambient lighting for sets of z-levels that share a common day/night state.

SStimer

Timer Subsystem

Handles creation, callbacks, and destruction of timed events.

It is important to understand the buckets used in the timer subsystem are just a series of doubly-linked lists. The object at a given index in bucket_list is a /datum/timedevent, the head of a list, which has prev and next references for the respective elements in that bucket's list.

_comment_mood_legend

Visual formatting for character info/comments.

access_cent_general

Central Command

access_hacked

Antag access

access_security

Station access

access_synth

Misc

alphabet

Alphabet a-z.

alphabet_capital

Alphabet A-Z.

apophonic_plurals

Words that have a different plural form, and their plural form

area_blurb_stated_to

This list of names is here to make sure we don't state our descriptive blurb to a person more than once.

english_loanwords

Used to tell how to make it a plural word and etc.

mil_branches

Datums for military branches and ranks

Map datums can optionally specify a list of /datum/mil_branch paths. These paths are used to initialize the global mil_branches object, which contains a list of branch objects the map uses. Each branch definition specifies a list of /datum/mil_rank paths, which are ranks available to that branch.

Which branches and ranks can be selected for spawning is specifed in global.using_map and each branch datum definition, respectively.

numbers

Numbers 0-9.

plural_endings_in_ves

Plurals endings in -ves

plural_endings_with_doubled_letter

Plurals endings in -sses or -zzes

plural_siblants

Siblants that should end with es

plural_vocalized_y

Vocalized y sounds that needs to end in -ies when made plural

plural_words_unchanged

Words that stay the same in plural

syndicate_code_phrase

Code phrase for traitors.

syndicate_code_response

Code response for traitors.

vowels

Vowels.

Proc Details

CreateBans

DEBUG

ReloadThemeCss

Force the light and dark theme css files to be reloaded. Mainly usefule for devs.

_addtimer

Create a new timer and insert it in the queue. You should not call this directly, and should instead use the addtimer macro, which includes source information.

Arguments:

all_hearers

Hear Helpers

all_viewers

View Helpers

callHook

@file hooks.dm Implements hooks, a simple way to run code on pre-defined events.

Calls a hook, executing every piece of code that's attached to it. @param hook Identifier of the hook to call. @returns 1 if all hooked code runs successfully, 0 otherwise.

clients_in_range

Range Helpers

color_matrix_add

Returns a matrix addition of A with B

color_matrix_contrast

Changes distance colors have from rgb(127,127,127) grey

color_matrix_identity

Returns the matrix identity

color_matrix_lightness

Adds/subtracts overall lightness

color_matrix_multiply

Returns a matrix multiplication of A with B

color_matrix_rotate_hue

Moves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys

color_matrix_rotate_x

Rotates around the red axis

color_matrix_rotate_y

Rotates around the green axis

color_matrix_rotate_z

Rotates around the blue axis

color_matrix_saturation

Changes distance hues have from grey while maintaining the overall lightness. Greys are unaffected.

color_to_full_rgba_matrix

Converts RGB shorthands into RGBA matrices complete of constants rows (ergo a 20 keys list in byond).

copy_extension

Copy the extension instance on the 'source' and put it on the 'destination'.

create_area_image

Generate_image function generates image of specified range and location:

deltimer

Delete a timer

Arguments:

findNullRod

Construct Spells

gaussian

Converts a uniform distributed random number into a normal distributed one since this method produces two random numbers, one is saved for subsequent calls (making the cost negligble for every second call).

get_default_outfit_backpack

Helpers

get_mannequin

Initial Building

get_mobs_in_analog_radio_ranges

Returns a list of mobs who can hear any of the radios given in @radios Assume all the radios in the list are eligible; we just care about mobs

get_ordinal_string

Returns a number string with its ordinal suffix th, st, nd, rd

Support procs

get_surrounding_pressure_differential

Gets the highest and lowest pressures from the tiles in cardinal directions around us, then checks the difference.

get_transition_edge_corner_turfs

Returns all the turfs from all 4 corners of the transition border of a level.

get_transition_edge_turfs

Returns all the turfs within a zlevel's transition edge, on a given direction. If include corners is true, the corners of the map will be included.

get_turf_transition_edge_direction

Returns the a cardinal direction for a turf on the map that's beyond the transition edge

get_wound_type

WOUND DEFINITIONS

handle_paper_stack_shared_topics

Handles topic interactions shared by folders and clipboard.

is_dense_assoc

Is this a dense (all keys have non-null values) associative list with at least one entry?

is_special_character

ADMIN HELPER PROCS

listDeepClone

Deep copy/clone everything in the list, or reference things that cannot be cloned. Use with caution. atom_refs_only: If true, the proc will only reference /atom subtypes, and will not clone them.

number_to_3digits

Given a number, returns a representation fit for a 3-digit display.

Assumes that besides the digits themselves, display provides decimal point on the highest digit, plus (for overflow) and minus signs. Returns lists indexed by (power of ten)+1, that is, with [1] showing ones, [2] tens, [3] hundreds. Valid values are -99 to 99<M>, with ++<M> and --- for over and underflow, where is the maximal provided decimal postfix (k, M, B, T, etc).

onclose

Registers the on-close verb for a browse window (client/verb/.windowclose) this will be called when the close-button of a window is pressed.

This is usually only needed for devices that regularly update the browse window, e.g. canisters, timers, etc.

windowid should be the specified window name e.g. code is : show_browser(user, text, "window=fred") then use : onclose(user, "fred")

Optionally, specify the "ref" parameter as the controlled atom (usually src) to pass a "close=1" parameter to the atom's Topic() proc for special handling. Otherwise, the user mob's machine var will be reset directly.

pass

A do nothing proc used to prevent empty block warnings In hot code (like atmos checks), use EMPTY_BLOCK_GUARD instead.

play_dtmf_key_sound

Plays a DTMF tone (Telephone key press sound) for any valid telephone key.

send_fax_to_admin

Helper for sending a fax from a fax machine to an admin destination.

set_scent_by_reagents

Reagents have the following vars, which coorelate to the vars on the standard scent extension: scent, scent_intensity, scent_descriptor, scent_range To add a scent extension to an atom using a reagent's info, where R. is the reagent, use set_scent_by_reagents().

shared_mimic_edge_get_add_vis_contents

Shared proc to provide the default vis_content for the edge_turf.

shared_transition_edge_bumped

Handles teleporting an atom that touches a transition edge/loop edge.

shared_transition_edge_get_coordinates_turf_to_mimic

Returns the turf that's opposite to the specified turf, on the level specified.

shared_transition_edge_get_valid_level_data

Grab the connected level data for the level connected in the direction the 'T' turf is in.

stoplag

returns the number of ticks slept

text_ends_with

Returns true if the text ends with the given sequence of characters.

text_ends_with_any_of

Returns true if the text ends with ANY of the given sequences of characters.

text_make_plural

Properly changes the given word (or the last word of the string) into a plural word. Applies a bunch of exceptions from the english language.

text_starts_with

Returns true if the text starts with the given sequence of characters.

timeleft

Get the remaining deciseconds on a timer

Arguments: