mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 05:51:56 +00:00
Crayon Augment (#14217)
This commit is contained in:
@@ -71,6 +71,36 @@
|
||||
shadeColour = input(user, "Please select the shade colour.", "Crayon colour") as color
|
||||
return
|
||||
|
||||
/obj/item/pen/crayon/augment
|
||||
icon_state = "crayonaugment"
|
||||
colour = "#FFF200"
|
||||
shadeColour = "#886422"
|
||||
desc = "A crayon that is integrated into a user's finger. It can synthesize a multitude of colors."
|
||||
|
||||
/obj/item/pen/crayon/augment/Initialize()
|
||||
. = ..()
|
||||
name = "integrated crayon"
|
||||
update_icon()
|
||||
|
||||
/obj/item/pen/crayon/augment/attack_self(mob/living/user)
|
||||
colour = input(user, "Please select the main colour.", "Crayon colour") as color
|
||||
shadeColour = input(user, "Please select the shade colour.", "Crayon colour") as color
|
||||
playsound(get_turf(src), 'sound/effects/pop.ogg', 50, 0)
|
||||
update_icon()
|
||||
|
||||
/obj/item/pen/crayon/augment/update_icon()
|
||||
cut_overlays()
|
||||
var/image/crayon_tip = image('icons/obj/crayons.dmi', "crayonaugment_tip")
|
||||
crayon_tip.color = colour
|
||||
add_overlay(crayon_tip)
|
||||
|
||||
/obj/item/pen/crayon/augment/throw_at(atom/target, range, speed, mob/user)
|
||||
user.drop_from_inventory(src)
|
||||
|
||||
/obj/item/pen/crayon/augment/dropped()
|
||||
loc = null
|
||||
qdel(src)
|
||||
|
||||
/obj/item/pen/crayon/afterattack(atom/target, mob/user as mob, proximity)
|
||||
if(!proximity) return
|
||||
if(istype(target,/turf/simulated/floor))
|
||||
|
||||
Reference in New Issue
Block a user