alt click description and license update

This commit is contained in:
Seris02
2023-02-26 16:57:14 +08:00
parent cdaaba7386
commit 7fcb9347f9
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -100,7 +100,11 @@
/obj/item/toy/plushie/borgplushie/drake/AltClick(mob/living/user)
. = ..()
var/turf/T = get_turf(src)
if(!T.AdjacentQuick(user)) // So people aren't messing with these from across the room
return FALSE
lights_glowing = !lights_glowing
to_chat(user, "<span class='notice'>You turn the [src]'s glow-fabric [lights_glowing ? "on" : "off"].</span>")
update_icon()
/obj/item/toy/plushie/borgplushie/drake/update_icon()
@@ -108,6 +112,9 @@
if (lights_glowing)
add_overlay(emissive_appearance(icon, "[icon_state]-lights"))
/obj/item/toy/plushie/borgplushie/drake/get_description_info()
return "The lights on the plushie can be toggled [lights_glowing ? "off" : "on"] by alt-clicking on it."
/obj/item/toy/plushie/borgplushie/drake/sec
name = "security drake plushie"
icon_state = "secdrake"