living

mob freeze procs
Vars | |
admin_prev_sleeping | Used for keeping track of previous sleeping value with admin freeze. |
---|---|
frozen | Used for preventing attacks on admin-frozen mobs. |
Procs | |
AdjustConfused | Sets confusion to current amount + given, clamped between lower and higher bounds. |
AdjustDizzy | Sets dizziness to current amount + given, clamped between lower and higher bounds. |
AdjustDrowsy | Sets drowsiness to current amount + given, clamped between lower and higher bounds. |
AdjustDrunk | Sets drunkenness to current amount + given, clamped between lower and higher bounds. |
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 |
apply_status_effect | Applies a given status effect to this mob, returning the effect if it was successful or null otherwise |
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. |
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 |
remove_guardian_actions | Removes all /datum/action/guardian type actions from the src mob. |
remove_status_effect | Removes all of a given status effect from this mob, returning TRUE if at least one was removed |
shared_living_ui_distance | public |
transfer_blood_to | BLOOD TRANSFERS |
Var Details
admin_prev_sleeping

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

Used for preventing attacks on admin-frozen mobs.
Proc Details
AdjustConfused
Sets confusion to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to infinity.
AdjustDizzy
Sets dizziness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to infinity.
AdjustDrowsy
Sets drowsiness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to infinity.
AdjustDrunk
Sets drunkenness to current amount + given, clamped between lower and higher bounds.
Arguments:
- amount - Amount to add. Can be negative to reduce duration.
- bound_lower - Minimum bound to set at least to. Defaults to 0.
- bound_upper - Maximum bound to set up to. Defaults to infinity.
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
apply_status_effect
Applies a given status effect to this mob, returning the effect if it was successful or null otherwise
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
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
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