mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Adds the ability to draw arrows with crayon
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
/obj/item/weapon/pen/crayon/afterattack(atom/target, mob/user as mob, proximity)
|
/obj/item/weapon/pen/crayon/afterattack(atom/target, mob/user as mob, proximity)
|
||||||
if(!proximity) return
|
if(!proximity) return
|
||||||
if(istype(target,/turf/simulated/floor))
|
if(istype(target,/turf/simulated/floor))
|
||||||
var/drawtype = input("Choose what you'd like to draw.", "Crayon scribbles") in list("graffiti","rune","letter")
|
var/drawtype = input("Choose what you'd like to draw.", "Crayon scribbles") in list("graffiti","rune","letter","arrow")
|
||||||
switch(drawtype)
|
switch(drawtype)
|
||||||
if("letter")
|
if("letter")
|
||||||
drawtype = input("Choose the letter.", "Crayon scribbles") in list("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
|
drawtype = input("Choose the letter.", "Crayon scribbles") in list("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
|
||||||
@@ -77,6 +77,9 @@
|
|||||||
user << "You start drawing graffiti on the [target.name]."
|
user << "You start drawing graffiti on the [target.name]."
|
||||||
if("rune")
|
if("rune")
|
||||||
user << "You start drawing a rune on the [target.name]."
|
user << "You start drawing a rune on the [target.name]."
|
||||||
|
if("arrow")
|
||||||
|
drawtype = input("Choose the arrow.", "Crayon scribbles") in list("left", "right", "up", "down")
|
||||||
|
user << "You start drawing an arrow on the [target.name]."
|
||||||
if(instant || do_after(user, 50))
|
if(instant || do_after(user, 50))
|
||||||
new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype)
|
new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype)
|
||||||
user << "You finish drawing."
|
user << "You finish drawing."
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
Reference in New Issue
Block a user