MedHUD Patch

Medical hud patch. Arrr.
This commit is contained in:
radar651
2020-05-12 10:29:29 -04:00
parent 4ff57116b4
commit 3a245943d3
2 changed files with 31 additions and 2 deletions

View File

@@ -43,5 +43,9 @@
path = /obj/item/clothing/glasses/fluff/science_proper
/datum/gear/eyes/security/secpatch
display_name = "security hudpatch"
path = /obj/item/clothing/glasses/hud/security/eyepatch
display_name = "Security HUDpatch"
path = /obj/item/clothing/glasses/hud/security/eyepatch
/datum/gear/eyes/medical/medpatch
display_name = "Health HUDpatch"
path = /obj/item/clothing/glasses/hud/health/eyepatch

View File

@@ -184,3 +184,28 @@
else
icon_state = initial(icon_state)
update_clothing_icon()
/obj/item/clothing/glasses/hud/health/eyepatch
name = "Medical Hudpatch"
desc = "An eyepatch with built in scanners, that analyzes those in view and provides accurate data about their health status."
icon_state = "eyepatch"
item_state_slots = list(slot_r_hand_str = "blindfold", slot_l_hand_str = "blindfold")
body_parts_covered = 0
enables_planes = list(VIS_CH_STATUS,VIS_CH_HEALTH)
var/eye = null
/obj/item/clothing/glasses/hud/health/eyepatch/verb/switcheye()
set name = "Switch Eyepatch"
set category = "Object"
set src in usr
if(!istype(usr, /mob/living)) return
if(usr.stat) return
eye = !eye
if(eye)
icon_state = "[icon_state]_1"
else
icon_state = initial(icon_state)
update_clothing_icon()