Prescription HUDs

Added the funcitonality to attach HUDs to prescription glasses, and
remove them.
This commit is contained in:
skull132
2014-07-05 20:53:44 +03:00
parent 572812c96d
commit 8df67ef26c
4 changed files with 48 additions and 1 deletions
+18
View File
@@ -64,6 +64,24 @@
item_state = "glasses"
prescription = 1
/obj/item/clothing/glasses/regular/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/clothing/glasses/hud/health))
user.drop_item()
del(W)
user << "<span class='notice'>You attach a set of medical HUDs to your glasses.</span>"
var/turf/T = get_turf(src)
new /obj/item/clothing/glasses/hud/health/prescription(T)
user.drop_from_inventory(src)
del(src)
if(istype(W, /obj/item/clothing/glasses/hud/security))
user.drop_item()
del(W)
user << "<span class='notice'>You attach a set of security HUDs to your glasses.</span>"
var/turf/T = get_turf(src)
new /obj/item/clothing/glasses/hud/security/prescription(T)
user.drop_from_inventory(src)
del(src)
/obj/item/clothing/glasses/regular/hipster
name = "Prescription Glasses"
desc = "Made by Uncool. Co."
+30 -1
View File
@@ -27,12 +27,41 @@
C.images += patient.hud_list[HEALTH_HUD]
C.images += patient.hud_list[STATUS_HUD]
/obj/item/clothing/glasses/hud/health/prescription
name = "prescription glasses/HUD assembly"
desc = "A medical HUD clipped onto the side of prescription glasses."
prescription = 1
icon_state = "healthhudpresc"
item_state = "healthhudpresc"
/obj/item/clothing/glasses/hud/health/prescription/attack_self(mob/user)
user << "<span class='notice'>You detach a set of medical HUDs form your glasses.</span>"
var/turf/T = get_turf(src)
new /obj/item/clothing/glasses/hud/health(T)
new /obj/item/clothing/glasses/regular(T)
user.drop_item(src)
del(src)
/obj/item/clothing/glasses/hud/security
name = "Security HUD"
desc = "A heads-up display that scans the humans in view and provides accurate data about their ID status and security records."
icon_state = "securityhud"
var/global/list/jobs[0]
var/global/list/jobs[0]
/obj/item/clothing/glasses/hud/security/prescription
name = "prescription glasses/HUD assembly"
desc = "A security HUD clipped onto the side of prescription glasses."
prescription = 1
icon_state = "sechudpresc"
item_state = "sechudpresc"
/obj/item/clothing/glasses/hud/security/prescription/attack_self(mob/user)
user << "<span class='notice'>You detach a set of medical HUDs form your glasses.</span>"
var/turf/T = get_turf(src)
new /obj/item/clothing/glasses/hud/health(T)
new /obj/item/clothing/glasses/regular(T)
user.drop_item(src)
del(src)
/obj/item/clothing/glasses/hud/security/jensenshades
name = "Augmented shades"