Wire oldHookupResistor(Junction source, Junction target, Direction dirToTarget, int resistance) { Resistor wire = (Resistor)oldHookup(source, target, dirToTarget, WireType.Resistor); wire.resistance = resistance; wire.setSprite(resistance); return(wire); }