Skip to content

Commit

Permalink
feat(robot): add MiniMap to cyborgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Doster-d committed Apr 3, 2024
1 parent e824b3b commit 8ee7062
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8ee7062

Please sign in to comment.