Cyborgs can now use succumb (#15887)

* cyborg succumb

* Update code/modules/mob/living/silicon/robot/robot.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

---------

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
Alberyk
2023-02-27 03:42:59 +01:00
committed by GitHub
co-authored by SleepyGemmy
parent 43af7973f1
commit 18e98cb019
2 changed files with 16 additions and 2 deletions
+10 -2
View File
@@ -511,7 +511,7 @@
set category = "Robot Commands"
set name = "View Holomap"
set desc = "View a virtual map of the surrounding area."
var/obj/machinery/station_map/mobile/holo_map_object
if(src.holo_map)
holo_map_object = src.holo_map.resolve()
@@ -520,7 +520,7 @@
if(!holo_map_object)
holo_map_object = new(src)
src.holo_map = WEAKREF(holo_map)
holo_map_object.startWatching(src)
/mob/living/silicon/robot/verb/rebuild_overlays()
@@ -1296,3 +1296,11 @@
to_chat(src, SPAN_DANGER("Hack attempt detected and thwarted. Evacuate the area immediately."))
return SMOOTH_TRUE
return
/mob/living/silicon/robot/succumb()
set hidden = TRUE
if(health < maxHealth / 3)
death()
to_chat(src, SPAN_NOTICE("You have given up life and succumbed to death."))
else
to_chat(src, SPAN_NOTICE("You are not injured enough to succumb to death!"))