mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Merge pull request #1173 from Abi79/master
Added a var to a obj/effect/decal/cleanable/crayon storing the client who drew it
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user