mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
27 lines
845 B
Plaintext
27 lines
845 B
Plaintext
/mob/living/silicon/pai/Life()
|
|
if (src.stat == 2)
|
|
return
|
|
if(src.cable)
|
|
if(get_dist(src, src.cable) > 1)
|
|
var/turf/T = get_turf_or_move(src.loc)
|
|
for (var/mob/M in viewers(T))
|
|
M.show_message("\red [src.cable] rapidly retracts back into its spool.", 3, "\red You hear a click and the sound of wire spooling rapidly.", 2)
|
|
del(src.cable)
|
|
|
|
regular_hud_updates()
|
|
if(src.secHUD)
|
|
process_sec_hud(src)
|
|
if(src.medHUD)
|
|
process_med_hud(src)
|
|
if(silence_time)
|
|
if(world.timeofday >= silence_time)
|
|
silence_time = null
|
|
src << "<font color=green>Communication circuit reinitialized. Speech and messaging functionality restored.</font>"
|
|
|
|
/mob/living/silicon/pai/updatehealth()
|
|
if(status_flags & GODMODE)
|
|
health = maxHealth
|
|
stat = CONSCIOUS
|
|
else
|
|
health = maxHealth - getBruteLoss() - getFireLoss()
|