From eaab0d5f84854e90b5226a8334d4471aa00d1c3a Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 27 May 2012 09:01:38 +0300 Subject: [PATCH] Added a var to a obj/effect/decal/cleanable/crayon storing the client who drew it --- code/game/objects/toys.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/toys.dm b/code/game/objects/toys.dm index 02ffbd272d6..4cf697d8746 100644 --- a/code/game/objects/toys.dm +++ b/code/game/objects/toys.dm @@ -140,7 +140,7 @@ CRAYONS user << "You start drawing a rune on the [target.name]." if(instant || do_after(user, 50)) if(user.equipped() == src) - new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype) + new /obj/effect/decal/cleanable/crayon(user.client,target,colour,shadeColour,drawtype) user << "You finish drawing." if(uses) uses-- @@ -175,6 +175,7 @@ CRAYONS icon = 'rune.dmi' layer = 2.1 anchored = 1 + var/client/who_drew_this examine() @@ -183,9 +184,10 @@ CRAYONS return - New(location,main = "#FFFFFF",shade = "#000000",var/type = "rune") + New(who,location,main = "#FFFFFF",shade = "#000000",var/type = "rune") ..() loc = location + who_drew_this = who name = type desc = "A [type] drawn in crayon."