Fixes the crayon decal runtime (#22289)

decal/cleanable had different new args than the crayon, so it was doing weird things like comparing a string to 1
This commit is contained in:
MadmanMartian
2019-04-01 14:42:18 +01:00
committed by jknpj
parent 9d47658b99
commit 42de61be97
3 changed files with 8 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ var/global/list/all_graffitis = list(
colour = "#DA00FF"
shadeColour = "#810CFF"
colourName = "purple"
/obj/item/toy/crayon/black
icon_state = "crayonblack"
colour = "#222222"
@@ -192,7 +192,7 @@ var/global/list/all_graffitis = list(
C.maptext = "[maptext_start][preference][maptext_end]"
else
C = new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype)
C = new /obj/effect/decal/cleanable/crayon(target, main = colour, shade = shadeColour, type = drawtype)
if(target.density && (C.loc != get_turf(user))) //Drawn on a wall (while standing on a floor)
C.forceMove(get_turf(user))