Changed helmet lights over to a general system/overlays.

This commit is contained in:
Zuhayr
2014-11-16 13:40:13 +10:30
parent 579ebb84bb
commit 823f01f4bf
46 changed files with 326 additions and 225 deletions

View File

@@ -533,19 +533,23 @@
var/suit_icon // Sets suit icon_state and item_state.
var/helmet_color // Sets item_color.
var/uses = 2 // Uses before the kit deletes itself.
var/new_light_overlay
/obj/item/clothing/head/helmet/space/rig/attackby(var/obj/item/O as obj, mob/user as mob)
/obj/item/clothing/head/helmet/space/void/attackby(var/obj/item/O as obj, mob/user as mob)
..()
if(istype(O,/obj/item/device/kit/suit/fluff))
var/obj/item/device/kit/suit/fluff/kit = O
name = "[kit.new_name] hardsuit helmet"
name = "[kit.new_name] suit helmet"
desc = kit.new_helmet_desc
icon_state = kit.helmet_icon
item_state = kit.helmet_icon
item_color = kit.helmet_color
if(kit.new_light_overlay)
light_overlay = kit.new_light_overlay
user << "You set about modifying the helmet into [src]."
playsound(user.loc, 'sound/items/Screwdriver.ogg', 50, 1)
@@ -608,6 +612,7 @@
helmet_icon = "rig0-hazardhardsuit"
suit_icon = "rig-hazardhardsuit"
helmet_color = "hazardhardsuit"
new_light_overlay = "helmet_light_dual"
//////// Meat Hook - Korom Bhararaya - Matthew951 ////////////////////////