Merge pull request #7804 from radar651/MedHUDpatch

MedHUD Patch
This commit is contained in:
Aronai Sieyes
2020-05-12 11:47:49 -04:00
committed by GitHub
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()