mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
shade on shade off
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user