Space Station 13 - Modules - TypesVar Details - Proc Details

human

Vars

bodyparts_by_namemap organ names to organs
heightPlayers' height (more fluff)
physiquePlayers physique (even MORE fluff)
previous_damage_appearanceStores what the body last looked like. Prevents updating the body when we don't need to
receiving_cpr_fromUID of the person who is giving this mob CPR.
tailName of tail image in species effects icon file.
wingSame as tail but wing

Procs

RobotizeFor transforming humans into robots (cyborgs).
add_commentHelper function to add a "comment" to a data record. Used for medical or security records.
adjustBrainLosssums up all the damage of all the limbs
check_eye_protcheck_eye_prot() Returns a number between -1 to 2
check_vital_organsReturns true if all the mob's vital organs are functional, otherwise returns false
electrocute_actCalculates the siemens coeff based on clothing and species, can also restart hearts.
get_cpr_timer_adjustmentGet the amount of time that this round of CPR should add to the death timer
get_runechat_colorHelper to get the mobs runechat colour span
handle_fireFIRE CODE
mind_checksHandles any adjustments to the mob after a mind transfer.
regrow_external_limb_if_missingRegrows a given external limb if it is missing. Does not add internal organs back in. Returns whether or not it regrew the limb
sec_hud_set_IDSecurity HUDs! Basic mode shows only the job.
set_speciesChange a mob's species.
setup_dnaSets up DNA and species.
setup_otherSets up other variables and components that may be needed for gameplay.
tintchecktintcheck() Checks eye covering items for visually impairing tinting, such as welding masks Checked in life.dm. 0 & 1 = no impairment, 2 = welding mask overlay, 3 = You can see jack, but you can't see shit.
update_hairGenerates overlays for the hair layer.

Var Details

bodyparts_by_name

map organ names to organs

height

Players' height (more fluff)

physique

Players physique (even MORE fluff)

previous_damage_appearance

Stores what the body last looked like. Prevents updating the body when we don't need to

receiving_cpr_from

UID of the person who is giving this mob CPR.

tail

Name of tail image in species effects icon file.

wing

Same as tail but wing

Proc Details

Robotize

For transforming humans into robots (cyborgs).

Arguments:

add_comment

Helper function to add a "comment" to a data record. Used for medical or security records.

adjustBrainLoss

sums up all the damage of all the limbs

check_eye_prot

check_eye_prot() Returns a number between -1 to 2

check_vital_organs

Returns true if all the mob's vital organs are functional, otherwise returns false

electrocute_act

Calculates the siemens coeff based on clothing and species, can also restart hearts.

get_cpr_timer_adjustment

Get the amount of time that this round of CPR should add to the death timer

get_runechat_color

Helper to get the mobs runechat colour span

Basically just a quick redirect to the DNA handler that gets the species-specific colour handler

handle_fire

FIRE CODE

mind_checks

Handles any adjustments to the mob after a mind transfer.

regrow_external_limb_if_missing

Regrows a given external limb if it is missing. Does not add internal organs back in. Returns whether or not it regrew the limb

Arguments:

sec_hud_set_ID

Security HUDs! Basic mode shows only the job.

set_species

Change a mob's species.

Arguments:

setup_dna

Sets up DNA and species.

Arguments:

setup_other

Sets up other variables and components that may be needed for gameplay.

tintcheck

tintcheck() Checks eye covering items for visually impairing tinting, such as welding masks Checked in life.dm. 0 & 1 = no impairment, 2 = welding mask overlay, 3 = You can see jack, but you can't see shit.

update_hair

Generates overlays for the hair layer.