Introduce the four-color pen

Add a fancy pen that lets you choose between black, red, green, and blue ink.
This commit is contained in:
octareenroon91
2015-11-16 20:14:30 -06:00
parent 97cd53a8b3
commit 4a5cda8a8b
+25
View File
@@ -44,6 +44,31 @@
icon_state = "pen"
colour = "white"
/obj/item/weapon/pen/fourcolor
desc = "It's a fancy four-color ink pen."
name = "four-color pen"
icon = 'icons/obj/bureaucracy.dmi'
icon_state = "pen"
item_state = "pen"
/obj/item/weapon/pen/fourcolor/New()
..()
colour = "black"
desc = "It's a fancy four-color ink pen, set to [src.colour]."
/obj/item/weapon/pen/fourcolor/attack_self(mob/living/carbon/user)
switch(colour)
if("black")
colour = "red"
if("red")
colour = "green"
if("green")
colour = "blue"
else
colour = "black"
user << "<span class='notice'>[src] will now write in [src.colour].</span>"
//user << "<span class='notice'>[src] will now write in <span style='color=[colour]'>[colour]</span>.</span>" // If anyone feels lucky
desc = "It's a fancy four-color ink pen, set to [src.colour]."
/obj/item/weapon/pen/attack(mob/living/M, mob/user,stealth)
if(!istype(M))