Robotic Cable Coils

- Cyborgs and Drones can now use change-colour verb to change colour of their integrated cable coil.
This commit is contained in:
Atlantiscze
2014-12-01 02:02:11 +01:00
parent 0731badf87
commit e2196fe6ec
2 changed files with 28 additions and 3 deletions

View File

@@ -189,7 +189,7 @@
/obj/item/stack/sheet/metal = 50,
/obj/item/stack/sheet/glass = 50,
/obj/item/stack/sheet/glass/reinforced = 50,
/obj/item/stack/cable_coil = 50,
/obj/item/stack/cable_coil/robot = 50,
/obj/item/stack/rods = 15,
/obj/item/stack/tile/plasteel = 15
)
@@ -225,7 +225,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/robot/W = new /obj/item/stack/cable_coil/robot(src)
W.amount = 50
src.modules += W
@@ -406,7 +406,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/robot = 30
)
New()

View File

@@ -590,6 +590,31 @@ obj/structure/cable/proc/cableColor(var/colorC)
usr << "\blue You cannot do that."
..()
/obj/item/stack/cable_coil/robot/verb/set_colour()
set name = "Change Colour"
set category = "Object"
var/list/possible_colours = list ("Yellow", "Green", "Pink", "Blue", "Orange", "Cyan", "Red")
var/selected_type = input("Pick new colour.", "Cable Colour", null, null) as null|anything in possible_colours
if(selected_type)
switch(selected_type)
if("Yellow")
color = COLOR_YELLOW
if("Green")
color = COLOR_GREEN
if("Pink")
color = COLOR_PINK
if("Blue")
color = COLOR_BLUE
if("Orange")
color = COLOR_ORANGE
if("Cyan")
color = COLOR_CYAN
else
color = COLOR_RED
usr << "You change your cable coil's colour to [selected_type]"
// Items usable on a cable coil :
// - Wirecutters : cut them duh !
// - Cable coil : merge cables