mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 20:30:46 +01:00
d4e4c8268c
* Defib and tank * Defib, CPR, and stabilizer changes qol: Defib now informs you WHY it's failing, so you can properly fix the problem. balance: CPR can now REVIVE people if their HP is below a threshold with a 10% chance per CPR usage. balance: CPR will cause the recipient to metabolize reagents. balance: CPR now has a small chance of causing brute damage and rib fractures to the chest. balance: Patient Stabilizer will cause the patient to metabolize reagents if dead. * Broken bone fix A fracture has a random chance of shifting around inside the first time you break it. * shadekin runtime fix * tgui Adds two new TGUI states - living and living_adjacent Fixes tram to allow mobs (and robots) * Vital Organ chance fix * flip flop
18 lines
372 B
Plaintext
18 lines
372 B
Plaintext
/*!
|
|
* Copyright (c) 2020 Aleksej Komarov
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/**
|
|
* tgui state: living_state
|
|
*
|
|
* Checks that the user is a mob/living.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_living_state, /datum/tgui_state/living_state, new)
|
|
|
|
/datum/tgui_state/living_state/can_use_topic(src_object, mob/user)
|
|
if(isliving(user))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|