Paradise Station 13 - Modules - TypesVar Details - Proc Details

living

Vars

admin_prev_sleepingUsed for keeping track of previous sleeping value with admin freeze.
flags_2Flag to enable these making trees semi-transparent if behind them
forced_lookThis can either be a numerical direction or a soft object reference (UID). It makes the mob always face towards the selected thing.
frozenUsed for preventing attacks on admin-frozen mobs.
holder_typethe type of holder that will be created when a mob gets scooped up
lying_angleNumber of degrees of rotation of a mob. 0 means no rotation, up-side facing NORTH. 90 means up-side rotated to face EAST, and so on.
restingif a mob is choosing to lay down

Procs

AdjustConfusedSets confusion to current amount + given, clamped between lower and higher bounds.
AdjustDizzySets dizziness to current amount + given, clamped between lower and higher bounds.
AdjustDrowsySets drowsiness to current amount + given, clamped between lower and higher bounds.
AdjustDrunkSets drunkenness to current amount + given, clamped between lower and higher bounds.
AdjustSleepingused for admin freezing.
ConfusedSets confusion if it's higher than current.
DizzySets dizziness if it's higher than current.
DrowsySets drowsiness if it's higher than current.
DrunkSets drunkenness if it's higher than current.
IsFrozenFROZEN
SetConfusedSets confusion if it's higher than zero.
SetDizzySets dizziness if it's higher than zero.
SetDrowsySets drowsiness if it's higher than zero.
SetDrunkSets drunkenness if it's higher than zero.
add_stun_absorptionSTUN ABSORPTION
admin_Freezemob freeze procs
apply_status_effectApplies a given status effect to this mob, returning the effect if it was successful or null otherwise
can_run_surgeryCheck to see if a surgical operation proposed on ourselves is valid or not. We are the target of the surgery
clear_forced_lookClears the mob's direction lock if enabled.
electrocute_actAs the name suggests, this should be called to apply electric shocks.
get_confusionReturns current amount of confusion, 0 if none.
get_dizzinessReturns current amount of dizziness, 0 if none.
get_drowsinessReturns current amount of drowsiness, 0 if none.
get_drunkennessReturns current amount of drunkenness, 0 if none.
get_strip_slot_name_overrideReturns the name override, if any, for the slot somebody is trying to strip
grant_guardian_actionsGrants all existing /datum/action/guardian type actions to the src mob.
handle_fireBurns a mob and slowly puts the fires out. Returns TRUE if the mob is on fire
has_status_effectReturns the effect if the mob calling the proc owns the given status effect, or null otherwise
has_status_effect_listReturns a list of effects with matching IDs that the mod owns; use for effects there can be multiple of
has_status_effect_typeReturns the effect if the mob calling the proc owns the given status effect, but checks by type.
on_fakedeath_trait_gainCalled when [TRAIT_FAKEDEATH] is added to the mob.
on_fakedeath_trait_lossCalled when [TRAIT_FAKEDEATH] is removed from the mob.
on_floored_trait_gainCalled when TRAIT_FLOORED is added to the mob.
on_floored_trait_lossCalled when TRAIT_FLOORED is removed from the mob.
on_forced_standing_trait_gainCalled when [TRAIT_FORCED_STANDING] is added to the mob.
on_forced_standing_trait_lossCalled when [TRAIT_FORCED_STANDING] is removed from the mob.
on_handsblocked_trait_gainCalled when TRAIT_HANDS_BLOCKED is added to the mob.
on_handsblocked_trait_lossCalled when TRAIT_HANDS_BLOCKED is removed from the mob.
on_immobilized_trait_gainCalled when TRAIT_IMMOBILIZED is added to the mob.
on_immobilized_trait_lossCalled when TRAIT_IMMOBILIZED is removed from the mob.
on_knockedout_trait_gainCalled when TRAIT_KNOCKEDOUT is added to the mob.
on_knockedout_trait_lossCalled when TRAIT_KNOCKEDOUT is removed from the mob.
on_pull_blocked_trait_gainCalled when TRAIT_CANNOT_PULL is added to the mob.
on_pull_blocked_trait_lossCalled when TRAIT_CANNOT_PULL is removed from the mob.
on_restrained_trait_gainCalled when TRAIT_RESTRAINED is added to the mob.
on_restrained_trait_lossCalled when TRAIT_RESTRAINED is removed from the mob.
on_ui_blocked_trait_gainCalled when TRAIT_UI_BLOCKED is added to the mob.
on_ui_blocked_trait_lossCalled when TRAIT_UI_BLOCKED is removed from the mob.
register_init_signalsCalled on /mob/living/Initialize(mapload), for the mob to register to relevant signals.
remove_guardian_actionsRemoves all /datum/action/guardian type actions from the src mob.
remove_status_effectRemoves all of a given status effect from this mob, returning TRUE if at least one was removed
run_resistproc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called
set_forced_lookSets the mob's direction lock towards a given atom.
set_lying_angleChanges the inclination angle of a mob, used by humans and others to differentiate between standing up and prone positions.
shared_living_ui_distancepublic
transfer_blood_toBLOOD TRANSFERS

Var Details

admin_prev_sleeping

Used for keeping track of previous sleeping value with admin freeze.

flags_2

Flag to enable these making trees semi-transparent if behind them

forced_look

This can either be a numerical direction or a soft object reference (UID). It makes the mob always face towards the selected thing.

frozen

Used for preventing attacks on admin-frozen mobs.

holder_type

the type of holder that will be created when a mob gets scooped up

lying_angle

Number of degrees of rotation of a mob. 0 means no rotation, up-side facing NORTH. 90 means up-side rotated to face EAST, and so on.

resting

if a mob is choosing to lay down

Proc Details

AdjustConfused

Sets confusion to current amount + given, clamped between lower and higher bounds.

Arguments:

AdjustDizzy

Sets dizziness to current amount + given, clamped between lower and higher bounds.

Arguments:

AdjustDrowsy

Sets drowsiness to current amount + given, clamped between lower and higher bounds.

Arguments:

AdjustDrunk

Sets drunkenness to current amount + given, clamped between lower and higher bounds.

Arguments:

AdjustSleeping

used for admin freezing.

Confused

Sets confusion if it's higher than current.

Dizzy

Sets dizziness if it's higher than current.

Drowsy

Sets drowsiness if it's higher than current.

Drunk

Sets drunkenness if it's higher than current.

IsFrozen

FROZEN

SetConfused

Sets confusion if it's higher than zero.

SetDizzy

Sets dizziness if it's higher than zero.

SetDrowsy

Sets drowsiness if it's higher than zero.

SetDrunk

Sets drunkenness if it's higher than zero.

add_stun_absorption

STUN ABSORPTION

admin_Freeze

mob freeze procs

apply_status_effect

Applies a given status effect to this mob, returning the effect if it was successful or null otherwise

can_run_surgery

Check to see if a surgical operation proposed on ourselves is valid or not. We are the target of the surgery

clear_forced_look

Clears the mob's direction lock if enabled.

Arguments:

electrocute_act

As the name suggests, this should be called to apply electric shocks.

get_confusion

Returns current amount of confusion, 0 if none.

get_dizziness

Returns current amount of dizziness, 0 if none.

get_drowsiness

Returns current amount of drowsiness, 0 if none.

get_drunkenness

Returns current amount of drunkenness, 0 if none.

get_strip_slot_name_override

Returns the name override, if any, for the slot somebody is trying to strip

grant_guardian_actions

Grants all existing /datum/action/guardian type actions to the src mob.

Called whenever the host gains their gauardian.

handle_fire

Burns a mob and slowly puts the fires out. Returns TRUE if the mob is on fire

has_status_effect

Returns the effect if the mob calling the proc owns the given status effect, or null otherwise

has_status_effect_list

Returns a list of effects with matching IDs that the mod owns; use for effects there can be multiple of

has_status_effect_type

Returns the effect if the mob calling the proc owns the given status effect, but checks by type.

on_fakedeath_trait_gain

Called when [TRAIT_FAKEDEATH] is added to the mob.

on_fakedeath_trait_loss

Called when [TRAIT_FAKEDEATH] is removed from the mob.

on_floored_trait_gain

Called when TRAIT_FLOORED is added to the mob.

on_floored_trait_loss

Called when TRAIT_FLOORED is removed from the mob.

on_forced_standing_trait_gain

Called when [TRAIT_FORCED_STANDING] is added to the mob.

on_forced_standing_trait_loss

Called when [TRAIT_FORCED_STANDING] is removed from the mob.

on_handsblocked_trait_gain

Called when TRAIT_HANDS_BLOCKED is added to the mob.

on_handsblocked_trait_loss

Called when TRAIT_HANDS_BLOCKED is removed from the mob.

on_immobilized_trait_gain

Called when TRAIT_IMMOBILIZED is added to the mob.

on_immobilized_trait_loss

Called when TRAIT_IMMOBILIZED is removed from the mob.

on_knockedout_trait_gain

Called when TRAIT_KNOCKEDOUT is added to the mob.

on_knockedout_trait_loss

Called when TRAIT_KNOCKEDOUT is removed from the mob.

on_pull_blocked_trait_gain

Called when TRAIT_CANNOT_PULL is added to the mob.

on_pull_blocked_trait_loss

Called when TRAIT_CANNOT_PULL is removed from the mob.

on_restrained_trait_gain

Called when TRAIT_RESTRAINED is added to the mob.

on_restrained_trait_loss

Called when TRAIT_RESTRAINED is removed from the mob.

on_ui_blocked_trait_gain

Called when TRAIT_UI_BLOCKED is added to the mob.

on_ui_blocked_trait_loss

Called when TRAIT_UI_BLOCKED is removed from the mob.

register_init_signals

Called on /mob/living/Initialize(mapload), for the mob to register to relevant signals.

remove_guardian_actions

Removes all /datum/action/guardian type actions from the src mob.

Called whenever the host loses their guardian.

remove_status_effect

Removes all of a given status effect from this mob, returning TRUE if at least one was removed

run_resist

proc extender of [/mob/living/verb/resist] meant to make the process queable if the server is overloaded when the verb is called

set_forced_look

Sets the mob's direction lock towards a given atom.

Arguments:

set_lying_angle

Changes the inclination angle of a mob, used by humans and others to differentiate between standing up and prone positions.

In BYOND-angles 0 is NORTH, 90 is EAST, 180 is SOUTH and 270 is WEST. This usually means that 0 is standing up, 90 and 270 are horizontal positions to right and left respectively, and 180 is upside-down. Mobs that do now follow these conventions due to unusual sprites should require a special handling or redefinition of this proc, due to the density and layer changes. The return of this proc is the previous value of the modified lying_angle if a change was successful (might include zero), or null if no change was made.

shared_living_ui_distance

public

Distance versus interaction check.

required src_object atom/movable The object which owns the UI.

return UI_state The state of the UI.

transfer_blood_to

BLOOD TRANSFERS