Self-Surgery

This commit is contained in:
Mechoid
2020-11-18 16:57:32 -05:00
committed by VirgoBot
parent 65f2685678
commit 9cc7d641b2
6 changed files with 39 additions and 8 deletions
@@ -52,6 +52,8 @@
dna.real_name = real_name
sync_organ_dna()
verbs |= /mob/living/proc/toggle_selfsurgery
/mob/living/carbon/human/Destroy()
human_mob_list -= src
for(var/organ in organs)
@@ -73,5 +73,9 @@
var/image/selected_image = null // Used for buildmode AI control stuff.
<<<<<<< HEAD
var/inventory_panel_type = /datum/inventory_panel
var/datum/inventory_panel/inventory_panel
=======
var/allow_self_surgery = FALSE // Used to determine if the mob can perform surgery on itself.
>>>>>>> b411c75... Self-Surgery (#7671)
+10
View File
@@ -20,3 +20,13 @@
layer = HIDING_LAYER //Just above cables with their 2.44
plane = OBJ_PLANE
to_chat(src,"<span class='notice'>You are now hiding.</span>")
/mob/living/proc/toggle_selfsurgery()
set name = "Allow Self Surgery"
set desc = "Toggles the 'safeties' on self-surgery, allowing you to do so."
set category = "Object"
allow_self_surgery = !allow_self_surgery
to_chat(usr, "<span class='notice'>You will [allow_self_surgery ? "now" : "no longer"] attempt to operate upon yourself.</span>")
log_admin("DEBUG \[[world.timeofday]\]: [src.ckey ? "[src.name]:([src.ckey])" : "[src.name]"] has [allow_self_surgery ? "Enabled" : "Disabled"] self surgery.")