mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
MedHUD Patch
Medical hud patch. Arrr.
This commit is contained in:
@@ -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
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user