mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Ports https://github.com/d3athrow/vgstation13/pull/4142 with added Bay-flavor. To operate once must be adjacent to the scrubber. Silicons can view the status panel from any distance they are able to access the scrubber from. This preserves the current behavior.
19 lines
683 B
Plaintext
19 lines
683 B
Plaintext
/var/global/datum/topic_state/physical/physical_state = new()
|
|
|
|
/datum/topic_state/physical/can_use_topic(var/src_object, var/mob/user)
|
|
. = user.shared_nano_interaction(src_object)
|
|
if(. > STATUS_CLOSE)
|
|
return min(., user.check_physical_distance(src_object))
|
|
|
|
/mob/proc/check_physical_distance(var/src_object)
|
|
return STATUS_CLOSE
|
|
|
|
/mob/dead/observer/check_physical_distance(var/src_object)
|
|
return default_can_use_topic(src_object)
|
|
|
|
/mob/living/check_physical_distance(var/src_object)
|
|
return shared_living_nano_distance(src_object)
|
|
|
|
/mob/living/silicon/check_physical_distance(var/src_object)
|
|
return max(STATUS_UPDATE, shared_living_nano_distance(src_object))
|