mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
[MIRROR] Cleans up suit/nanite sensor code a bit (#1547)
* Cleans up suit/nanite sensor code a bit (#54670) * Cleans up suit/nanite sensor code * linted * Cleans up suit/nanite sensor code a bit Co-authored-by: XDTM <heliumt@yahoo.it>
This commit is contained in:
@@ -33,19 +33,16 @@
|
||||
|
||||
/datum/nanite_program/monitoring/enable_passive_effect()
|
||||
. = ..()
|
||||
SSnanites.nanite_monitored_mobs |= host_mob
|
||||
ADD_TRAIT(host_mob, TRAIT_NANITE_MONITORING, "nanites") //Shows up in diagnostic and medical HUDs as a small blinking icon
|
||||
if(ishuman(host_mob))
|
||||
var/mob/living/carbon/human/H = host_mob
|
||||
if(!(H in GLOB.nanite_sensors_list))
|
||||
GLOB.nanite_sensors_list |= H
|
||||
GLOB.nanite_sensors_list |= host_mob
|
||||
host_mob.hud_set_nanite_indicator()
|
||||
|
||||
/datum/nanite_program/monitoring/disable_passive_effect()
|
||||
. = ..()
|
||||
SSnanites.nanite_monitored_mobs -= host_mob
|
||||
REMOVE_TRAIT(host_mob, TRAIT_NANITE_MONITORING, "nanites")
|
||||
if(ishuman(host_mob))
|
||||
var/mob/living/carbon/human/H = host_mob
|
||||
GLOB.nanite_sensors_list -= H
|
||||
GLOB.nanite_sensors_list -= host_mob
|
||||
|
||||
host_mob.hud_set_nanite_indicator()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user