Merge pull request #6737 from listerla/penclick

Makes pen click when you click on them
This commit is contained in:
Atermonera
2020-02-24 13:18:55 -08:00
committed by VirgoBot
parent bfa123c1f0
commit cc487ceebf
3 changed files with 8 additions and 2 deletions

View File

@@ -95,12 +95,12 @@
if(instant || do_after(user, 50))
new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype)
to_chat(user, "You finish drawing.")
if(config.log_graffiti)
var/msg = "[user.client.key] ([user]) has drawn [drawtype] (with [src]) at [target.x],[target.y],[target.z]."
message_admins(msg)
log_game(msg)
target.add_fingerprint(user) // Adds their fingerprints to the floor the crayon is drawn on.
if(uses)
uses--
@@ -207,3 +207,6 @@
qdel(src)
else
..()
/obj/item/weapon/pen/crayon/attack_self(var/mob/user)
return

View File

@@ -24,6 +24,9 @@
var/colour = "black" //what colour the ink is!
pressure_resistance = 2
/obj/item/weapon/pen/attack_self(var/mob/user)
to_chat(user, "<span class='notice'>Click.</span>")
playsound(loc, 'sound/items/penclick.ogg', 50, 1)
/obj/item/weapon/pen/blue
desc = "It's a normal blue ink pen."

BIN
sound/items/penclick.ogg Normal file

Binary file not shown.