Cyborg cable coil + color picking

This commit makes a subtype of cable_coils for cyborgs (and drones) that
can have it's color changed by an attack_self (clicking on it)
This commit is contained in:
Tigercat2000
2015-05-03 14:21:30 -07:00
parent 7e5b7f9297
commit d69c0a535f
2 changed files with 11 additions and 3 deletions
@@ -142,7 +142,7 @@
/obj/item/stack/sheet/metal = 50,
/obj/item/stack/sheet/glass = 50,
/obj/item/stack/sheet/rglass = 50,
/obj/item/stack/cable_coil = 50,
/obj/item/stack/cable_coil/cyborg = 50,
/obj/item/stack/rods = 15,
/obj/item/stack/tile/plasteel = 15
)
@@ -179,7 +179,7 @@
G.amount = 50
src.modules += G
var/obj/item/stack/cable_coil/W = new /obj/item/stack/cable_coil(src)
var/obj/item/stack/cable_coil/cyborg/W = new /obj/item/stack/cable_coil/cyborg(src)
W.amount = 50
src.modules += W
@@ -389,7 +389,7 @@
/obj/item/stack/tile/plasteel = 15,
/obj/item/stack/sheet/metal = 20,
/obj/item/stack/sheet/glass = 20,
/obj/item/stack/cable_coil = 30
/obj/item/stack/cable_coil/cyborg = 30
)
New()
+8
View File
@@ -635,3 +635,11 @@ obj/structure/cable/proc/cableColor(var/colorC)
else
return ..()
/obj/item/stack/cable_coil/cyborg
name = "cyborg cable coil"
/obj/item/stack/cable_coil/cyborg/attack_self(mob/user)
var/cable_color = input(user,"Pick a cable color.","Cable Color") in list("red","yellow","green","blue","pink","orange","cyan","white")
_color = cable_color
update_icon()