Files
Aurora.3/code/modules/power/cable_heavyduty.dm
Wowzewow (Wezzy) 3160508c1a Makes tool colors work, despaghettifies code (#9231)
I finally figured out how to make tool inhands and inhand coloring work properly, so custom colors can apply to inhands! (yes, even the stuff from loadout.)

Code-wise, this guts the superfluous our_color variable.
This cuts it out from screwdrivers, wirecutters, cable, and everything else which uses this shit.
I'm pretty sure testing this has taken out a day out of my life.

Also I fixed up the cable examine to be less crappy. (so you can finally see cable descriptions.)

Don't mind the commits, I just built this on top the handcuff noose PR.
2020-07-02 20:40:17 +03:00

32 lines
885 B
Plaintext

/obj/item/stack/cable_coil/heavyduty
name = "heavy-duty power cable"
desc = "A tough, heavy-duty coil of power cable."
icon = 'icons/obj/power.dmi'
icon_state = "wire"
item_state = "wire"
color = null
/obj/structure/cable/heavyduty
icon = 'icons/obj/power_cond_heavy.dmi'
name = "large power cable"
desc = "This cable is tough. It cannot be cut with simple hand tools."
layer = 2.39 //Just below pipes, which are at 2.4
/obj/structure/cable/heavyduty/attackby(obj/item/W, mob/user)
var/turf/T = src.loc
if(!T.is_plating())
return
if(W.iswirecutter())
to_chat(usr, "<span class='notice'>These cables are too tough to be cut with those [W.name].</span>")
return
else if(W.iscoil())
to_chat(usr, "<span class='notice'>You will need heavier cables to connect to these.</span>")
return
else
..()
/obj/structure/cable/heavyduty/cableColor(var/colorC)
return