From 8ee70624c70cc5529cea86df2e580117ee8c0878 Mon Sep 17 00:00:00 2001 From: Doster <63081538+Doster-d@users.noreply.github.com> Date: Wed, 3 Apr 2024 09:56:16 +0300 Subject: [PATCH] feat(robot): add MiniMap to cyborgs --- code/modules/mob/living/silicon/robot/robot.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 9b318a524b4..8e39bb2098d 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -113,6 +113,8 @@ ) /mob/living/silicon/robot/New(loc, unfinished = 0) + var/datum/component/holomarker/toggleable/H = AddComponent(/datum/component/holomarker/toggleable) + H.should_have_legend = TRUE spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src) spark_system.attach(src) @@ -379,6 +381,16 @@ else flavor_text = client.prefs.flavour_texts_robot["Default"] +/mob/living/silicon/robot/verb/ShowMiniMap() + set category = "Silicon Commands" + set name = "Show MiniMap" + + var/datum/component/holomarker/toggleable/H = get_component(/datum/component/holomarker/toggleable) + if(isnull(H)) + return + + H.toggle(src) + /mob/living/silicon/robot/verb/Namepick() set category = "Silicon Commands" if(custom_name)