Space Station 13 - Modules - TypesVar Details - Proc Details

carbon

Vars

cuff_breakout_attemptsused to track how many times the mob has tried breaking away from their handcuffs since being cuffed. Reset to zero in update_handcuffed()
handcuffedWhether or not the mob is currently handcuffed, defined as the handcuff item restraining them
last_stomach_attackJust a timer stamp for [/mob/living/carbon/relaymove]
revival_in_progressUsed for wishgranter see wildwest.dm

Procs

adjust_alien_plasmaAdjust_alien_plasma just requires the plasma amount, so admins can easily varedit it and stuff. Updates the spell's actions on use as well, so they know when they can or can't use their powers.
apply_restraintsSimple helper used to equip passed item to the predefined slots.
bleedMakes a blood drop, leaking amt units of blood from the mob
cuff_resistGeneral proc to resist passed item.
dreamDREAMS
electrocute_actAdds to the parent by also adding functionality to propagate shocks through pulling and doing some fluff effects.
get_held_overlaysGenerate held item overlays
immortalityFor the Wishgranter
is_in_critMedical HUD! Basic mode needs suit sensors on. Whether the carbon mob is currently in crit.
on_no_scanCalled when TRAIT_NO_SCAN is gained or lost
on_virusimmune_trait_gainCalled when TRAIT_VIRUSIMMUNE is gained
process_toxin_damage_on_deathThis function applies damage to internal organs in case the mob died having toxin damage This feature increases amount of effort it takes to revive a victim of poisoning
put_in_hand_checkAll the necessary checks for carbon to put an item in hand
put_in_handsPut item in our active hand if possible. Failing that it tries our inactive hand. Returns TRUE on success. If both fail it drops item on the floor and returns FALSE Just puts stuff on the floor for most mobs, since all mobs have hands but putting stuff in the AI/corgi/ghost hand is VERY BAD.
secondary_shockCalled slightly after electrocute act to apply a secondary stun.
set_handcuffedModifies the handcuffed value if a different value is passed, returning FALSE otherwise. The variable should only be changed through this proc.
set_legcuffedModifies the legcuffed value if a different value is passed, returning FALSE otherwise. The variable should only be changed through this proc.
toggle_giveToggles the /datum/click_intercept/give on or off for the src mob.
uncuffForcefully removes legcuffs and handcuffs.
update_item_on_hudChanges item's screen_loc position and adds it on client screen. If togleable_inventory is set to TRUE, additionally /datum/hud/var/inventory_shown will be checked.
update_legcuffed_statusUpdates move intent, popup alert and human legcuffed overlay.
update_plasma_displayAlthough this is on the carbon level, we only want this proc'ing for aliens that do have this hud. Only humanoid aliens do at the moment, so we have a check and carry the owner just to make sure.
update_suit_sensorsHOOKS

Var Details

cuff_breakout_attempts

used to track how many times the mob has tried breaking away from their handcuffs since being cuffed. Reset to zero in update_handcuffed()

handcuffed

Whether or not the mob is currently handcuffed, defined as the handcuff item restraining them

last_stomach_attack

Just a timer stamp for [/mob/living/carbon/relaymove]

revival_in_progress

Used for wishgranter see wildwest.dm

Proc Details

adjust_alien_plasma

Adjust_alien_plasma just requires the plasma amount, so admins can easily varedit it and stuff. Updates the spell's actions on use as well, so they know when they can or can't use their powers.

apply_restraints

Simple helper used to equip passed item to the predefined slots.

bleed

Makes a blood drop, leaking amt units of blood from the mob

cuff_resist

General proc to resist passed item.

dream

DREAMS

electrocute_act

Adds to the parent by also adding functionality to propagate shocks through pulling and doing some fluff effects.

get_held_overlays

Generate held item overlays

immortality

For the Wishgranter

is_in_crit

Medical HUD! Basic mode needs suit sensors on. Whether the carbon mob is currently in crit.

on_no_scan

Called when TRAIT_NO_SCAN is gained or lost

on_virusimmune_trait_gain

Called when TRAIT_VIRUSIMMUNE is gained

process_toxin_damage_on_death

This function applies damage to internal organs in case the mob died having toxin damage This feature increases amount of effort it takes to revive a victim of poisoning

put_in_hand_check

All the necessary checks for carbon to put an item in hand

put_in_hands

Put item in our active hand if possible. Failing that it tries our inactive hand. Returns TRUE on success. If both fail it drops item on the floor and returns FALSE Just puts stuff on the floor for most mobs, since all mobs have hands but putting stuff in the AI/corgi/ghost hand is VERY BAD.

Arguments

secondary_shock

Called slightly after electrocute act to apply a secondary stun.

set_handcuffed

Modifies the handcuffed value if a different value is passed, returning FALSE otherwise. The variable should only be changed through this proc.

set_legcuffed

Modifies the legcuffed value if a different value is passed, returning FALSE otherwise. The variable should only be changed through this proc.

toggle_give

Toggles the /datum/click_intercept/give on or off for the src mob.

uncuff

Forcefully removes legcuffs and handcuffs.

update_item_on_hud

Changes item's screen_loc position and adds it on client screen. If togleable_inventory is set to TRUE, additionally /datum/hud/var/inventory_shown will be checked.

update_legcuffed_status

Updates move intent, popup alert and human legcuffed overlay.

update_plasma_display

Although this is on the carbon level, we only want this proc'ing for aliens that do have this hud. Only humanoid aliens do at the moment, so we have a check and carry the owner just to make sure.

update_suit_sensors

HOOKS