Refactor wire datums

Finish wire port and refactor wire datums to use string keys; widen color
range to support more wires and more colors.
This commit is contained in:
Bjorn Neergaard
2016-01-22 19:22:09 -06:00
parent cda2f26d56
commit 87b0857b93
40 changed files with 945 additions and 1141 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
//Called when this device attempts to act on another device, var/radio determines if it was sent via radio or direct
/obj/item/device/assembly/proc/pulse(radio = 0)
if(src.connected && src.wires)
connected.Pulse(src)
connected.pulse_assembly(src)
return 1
if(holder && (wires & WIRE_PULSE))
holder.process_activation(src, 1, 0)
+1 -1
View File
@@ -55,7 +55,7 @@
if(specialfunctions & IDSCAN)
D.aiDisabledIdScanner = !D.aiDisabledIdScanner
if(specialfunctions & BOLTS)
if(!D.isWireCut(4) && D.hasPower())
if(!D.wires.is_cut(D.wires.W_BOLTS) && D.hasPower())
D.locked = !D.locked
D.update_icon()
if(specialfunctions & SHOCK)