From e4a94393d576fb4e6d500e657848e884bddc8111 Mon Sep 17 00:00:00 2001 From: farie82 Date: Wed, 21 Oct 2020 22:52:39 +0200 Subject: [PATCH] Makes revenants not able to interact with TGUI interfaces (#14689) * Makes revs not able to interact with TGUI stuff * Fixes the edge cases --- code/modules/tgui/states/default.dm | 3 +++ code/modules/tgui/states/hands.dm | 3 +++ code/modules/tgui/states/physical.dm | 3 +++ 3 files changed, 9 insertions(+) diff --git a/code/modules/tgui/states/default.dm b/code/modules/tgui/states/default.dm index 4da729aa7e5..4067d6fc15b 100644 --- a/code/modules/tgui/states/default.dm +++ b/code/modules/tgui/states/default.dm @@ -45,6 +45,9 @@ GLOBAL_DATUM_INIT(tgui_default_state, /datum/tgui_state/default, new) return STATUS_INTERACTIVE return STATUS_CLOSE +/mob/living/simple_animal/revenant/default_can_use_tgui_topic(src_object) + return STATUS_UPDATE + /mob/living/simple_animal/default_can_use_tgui_topic(src_object) . = shared_tgui_interaction(src_object) if(. > STATUS_CLOSE) diff --git a/code/modules/tgui/states/hands.dm b/code/modules/tgui/states/hands.dm index 6dc1e2fc1a4..9ad6340eea1 100644 --- a/code/modules/tgui/states/hands.dm +++ b/code/modules/tgui/states/hands.dm @@ -19,6 +19,9 @@ GLOBAL_DATUM_INIT(tgui_hands_state, /datum/tgui_state/hands_state, new) return STATUS_INTERACTIVE return STATUS_CLOSE +/mob/living/simple_animal/revenant/hands_can_use_tgui_topic(src_object) + return STATUS_UPDATE + /mob/living/silicon/robot/hands_can_use_tgui_topic(src_object) if(activated(src_object)) return STATUS_INTERACTIVE diff --git a/code/modules/tgui/states/physical.dm b/code/modules/tgui/states/physical.dm index a57a321e958..dc30cb0d487 100644 --- a/code/modules/tgui/states/physical.dm +++ b/code/modules/tgui/states/physical.dm @@ -14,6 +14,9 @@ GLOBAL_DATUM_INIT(tgui_physical_state, /datum/tgui_state/physical, new) /mob/proc/physical_can_use_tgui_topic(src_object) return STATUS_CLOSE +/mob/living/simple_animal/revenant/physical_can_use_tgui_topic(src_object) + return STATUS_UPDATE + /mob/living/physical_can_use_tgui_topic(src_object) return shared_living_tgui_distance(src_object)