Yogstation 13 - Modules - TypesVar Details - Proc Details

/mob/living/carbon

Vars

all_scarsAll of the scars a carbon has afflicted throughout their limbs
all_woundsAll of the wounds a carbon has afflicted throughout their limbs
dreamingHow many dream images we have left to send
external"External" air tank. Never set this manually. Not required to stay directly equipped on the mob (i.e. could be a machine or MOD suit module).
handcuffedA reference to the current handcuff on this carbon if one is equipped.
internalEquipped air tank. Never set this manually.
internal_organsList of /obj/item/organ in the mob. They don't go in the contents for some reason I don't want to know.
internal_organs_slotList of /obj/item/organ in the mob by slot ID for easy access. They don't go in the contents for some reason I don't want to know.
legcuffedA reference to the current legcuff on this carbon if one is equipped. Bear traps use this.
silentCan't talk. Value goes down every life proc. NOTE TO FUTURE CODERS: DO NOT INITIALIZE NUMERICAL VARS AS NULL OR I WILL MURDER YOU.
transformation_timerTimer id of any transformation
visual_only_organsOnly load in visual organs

Procs

adjustOrganLoss
adjustPlasmaAdjusts the plasma level of the carbon's plasma vessel if they have one
bleed_warnbleed_warn() is used to for carbons with an active client to occasionally receive messages warning them about their bleeding status (if applicable)
can_breathe_helmetReturns TRUE if an air tank compatible helmet is equipped.
can_breathe_internalsReturns TRUE if an air tank compatible mask or breathing tube is equipped.
can_breathe_maskReturns TRUE if an air tank compatible mask is equipped.
can_breathe_tubeReturns TRUE if a breathing tube is equipped.
check_virusMedical HUD! Basic mode needs suit sensors on.
clear_stamina_regenClears dynamic stamina regeneration on all limbs, typically used for continuous buildup like chems.
close_all_airtanksQuickly/lazily close all airtanks without any returns or notifications.
close_externalsClose the the currently open external (that's EX-ternal) air tank. Returns TREUE if successful.
close_internalsActually closes the active internal or external air tank. Returns TRUE if the tank was opened successfully.
cutoff_internalsPrepares emergency disconnect from open air tanks and notifies in chat. Usually called after mob suddenly unequips breathing apparatus.
embed_objectEmbeds an object into this carbon
generate_fake_scarsgenerate_fake_scars()- for when you want to scar someone, but you don't want to hurt them first. These scars don't count for temporal scarring (hence, fake)
getOrganLoss
getPlasmaGets the plasma level of this carbon's plasma vessel, or -1 if they don't have one
get_biological_stateget_biological_state is a helper used to see what kind of wounds we roll for. By default we just assume carbons (read:monkeys) are flesh and bone, but humans rely on their species datums
get_bleed_rateA helper to see how much blood we're losing per tick
get_blood_dna_listGet the mobs dna list
get_embedded_objectsReturns a list of all embedded objects
get_embedded_partReturns the bodypart that the item is embedded in or returns false if it is not currently embedded
get_total_bleed_rateget our total bleedrate
get_wounded_bodypartsReturns a list of bodyparts with wounds (in case someone has a wound on an otherwise fully healed limb)
handle_breath_temperatureFourth and final link in a breath chain
handle_liverDecides if the liver is failing or not.
humanizeHumanize
immortalityFor the Wishgranter
invalid_internalsReturns truthy if air tank is open and mob lacks apparatus, or if the tank moved away from the mob.
is_bleedingif any of our bodyparts are bleeding
open_internalsOpen the internal air tank without checking for any breathing apparatus. Returns TRUE if the air tank was opened successfully. Closes any existing tanks before opening another one.
remove_embedded_objectRemoves the given embedded object from this carbon
secondary_shockCalled slightly after electrocute act to apply a secondary stun.
setOrganLoss
should_electrocuteReturns whether or not the carbon should be able to be shocked
spray_bloodThis proc is a helper for spraying blood for things like slashing/piercing wounds and dismemberment.
toggle_close_internalsPrepares to close the currently open internal air tank and notifies in chat. Handles displaying messages to the user before doing the actual closing. Returns TRUE if
toggle_externalsToggles the given external (that's EX-ternal) air tank open, or close the currently open one, if a compatible breathing apparatus is found. Returns TRUE if the tank was opened successfully.
toggle_internalsToggles the given internal air tank open, or close the currently open one, if a compatible breathing apparatus is found. Returns TRUE if the tank was opened successfully.
toggle_open_internalsPrepares to open the internal air tank and notifies the mob in chat. Handles displaying messages to the user before doing the actual opening. Returns TRUE if the tank was opened/closed successfully.
try_open_internalsOpens the given internal air tank if a breathing apparatus is found. Returns TRUE if successful, FALSE otherwise. Returns TRUE if the tank was opened successfully.
try_remove_embedded_objectCalled when a mob tries to remove an embedded object from this carbon
wearing_shock_proof_glovesReturns if the carbon is wearing shock proof gloves

Var Details

all_scars

All of the scars a carbon has afflicted throughout their limbs

all_wounds

All of the wounds a carbon has afflicted throughout their limbs

dreaming

How many dream images we have left to send

external

"External" air tank. Never set this manually. Not required to stay directly equipped on the mob (i.e. could be a machine or MOD suit module).

handcuffed

A reference to the current handcuff on this carbon if one is equipped.

internal

Equipped air tank. Never set this manually.

internal_organs

List of /obj/item/organ in the mob. They don't go in the contents for some reason I don't want to know.

internal_organs_slot

List of /obj/item/organ in the mob by slot ID for easy access. They don't go in the contents for some reason I don't want to know.

legcuffed

A reference to the current legcuff on this carbon if one is equipped. Bear traps use this.

silent

Can't talk. Value goes down every life proc. NOTE TO FUTURE CODERS: DO NOT INITIALIZE NUMERICAL VARS AS NULL OR I WILL MURDER YOU.

transformation_timer

Timer id of any transformation

visual_only_organs

Only load in visual organs

Proc Details

adjustOrganLoss

adjustPlasma

Adjusts the plasma level of the carbon's plasma vessel if they have one

bleed_warn

bleed_warn() is used to for carbons with an active client to occasionally receive messages warning them about their bleeding status (if applicable)

Arguments:

can_breathe_helmet

Returns TRUE if an air tank compatible helmet is equipped.

can_breathe_internals

Returns TRUE if an air tank compatible mask or breathing tube is equipped.

can_breathe_mask

Returns TRUE if an air tank compatible mask is equipped.

can_breathe_tube

Returns TRUE if a breathing tube is equipped.

check_virus

Medical HUD! Basic mode needs suit sensors on.

clear_stamina_regen

Clears dynamic stamina regeneration on all limbs, typically used for continuous buildup like chems.

Make sure it's used AFTER stamina damage is applied.

close_all_airtanks

Quickly/lazily close all airtanks without any returns or notifications.

close_externals

Close the the currently open external (that's EX-ternal) air tank. Returns TREUE if successful.

close_internals

Actually closes the active internal or external air tank. Returns TRUE if the tank was opened successfully.

Arguments:

cutoff_internals

Prepares emergency disconnect from open air tanks and notifies in chat. Usually called after mob suddenly unequips breathing apparatus.

embed_object

Embeds an object into this carbon

generate_fake_scars

generate_fake_scars()- for when you want to scar someone, but you don't want to hurt them first. These scars don't count for temporal scarring (hence, fake)

If you want a specific wound scar, pass that wound type as the second arg, otherwise you can pass a list like WOUND_LIST_SLASH to generate a random cut scar.

Arguments:

getOrganLoss

getPlasma

Gets the plasma level of this carbon's plasma vessel, or -1 if they don't have one

get_biological_state

get_biological_state is a helper used to see what kind of wounds we roll for. By default we just assume carbons (read:monkeys) are flesh and bone, but humans rely on their species datums

go look at the species def for more info /datum/species/proc/get_biological_state

get_bleed_rate

A helper to see how much blood we're losing per tick

get_blood_dna_list

Get the mobs dna list

get_embedded_objects

Returns a list of all embedded objects

get_embedded_part

Returns the bodypart that the item is embedded in or returns false if it is not currently embedded

get_total_bleed_rate

get our total bleedrate

get_wounded_bodyparts

Returns a list of bodyparts with wounds (in case someone has a wound on an otherwise fully healed limb)

handle_breath_temperature

Fourth and final link in a breath chain

handle_liver

Decides if the liver is failing or not.

humanize

Humanize

immortality

For the Wishgranter

invalid_internals

Returns truthy if air tank is open and mob lacks apparatus, or if the tank moved away from the mob.

is_bleeding

if any of our bodyparts are bleeding

open_internals

Open the internal air tank without checking for any breathing apparatus. Returns TRUE if the air tank was opened successfully. Closes any existing tanks before opening another one.

Arguments:

remove_embedded_object

Removes the given embedded object from this carbon

secondary_shock

Called slightly after electrocute act to apply a secondary stun.

setOrganLoss

should_electrocute

Returns whether or not the carbon should be able to be shocked

spray_blood

This proc is a helper for spraying blood for things like slashing/piercing wounds and dismemberment.

The strength of the splatter in the second argument determines how much it can dirty and how far it can go

Arguments:

toggle_close_internals

Prepares to close the currently open internal air tank and notifies in chat. Handles displaying messages to the user before doing the actual closing. Returns TRUE if

Arguments:

toggle_externals

Toggles the given external (that's EX-ternal) air tank open, or close the currently open one, if a compatible breathing apparatus is found. Returns TRUE if the tank was opened successfully.

Arguments:

toggle_internals

Toggles the given internal air tank open, or close the currently open one, if a compatible breathing apparatus is found. Returns TRUE if the tank was opened successfully.

Arguments:

toggle_open_internals

Prepares to open the internal air tank and notifies the mob in chat. Handles displaying messages to the user before doing the actual opening. Returns TRUE if the tank was opened/closed successfully.

Arguments:

try_open_internals

Opens the given internal air tank if a breathing apparatus is found. Returns TRUE if successful, FALSE otherwise. Returns TRUE if the tank was opened successfully.

Arguments:

try_remove_embedded_object

Called when a mob tries to remove an embedded object from this carbon

wearing_shock_proof_gloves

Returns if the carbon is wearing shock proof gloves