shade on shade off

This commit is contained in:
Aurorablade
2016-02-22 06:03:11 -05:00
parent 2c38d8fb61
commit 7b5c5c2a13
2 changed files with 14 additions and 6 deletions
+14
View File
@@ -218,6 +218,20 @@
var/punused = null
action_button_name = "YEAH!"
/obj/item/clothing/glasses/sunglasses/noir/equipped(mob/user, slot)
if(slot == slot_glasses)
if(color_view && user.client && !user.client.color)
if(user.mind && (user.mind.assigned_role == "Detective"))
animate(user.client, color = color_view, time = 10)
//H.client.color = G.color_view
..(user, slot)
/obj/item/clothing/glasses/sunglasses/noir/dropped(mob/user)
if(user.client && user.client.color)
animate(user.client, color = null, time = 10)
//H.client.color = null
..(user)
/obj/item/clothing/glasses/sunglasses/noir/attack_self()
pun()
@@ -432,12 +432,6 @@
if(!G.see_darkness)
H.see_invisible = SEE_INVISIBLE_MINIMUM
if(G.color_view && H.client && !H.client.color)
if(H.mind && (H.mind.assigned_role == "Detective"))
animate(H.client, color = G.color_view, time = 10)
else
if(H.client && H.client.color)
animate(H.client, color = null, time = 10)
if(H.head)
if(istype(H.head, /obj/item/clothing/head))