mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 00:57:26 +00:00
Port goobstation factorio (#4035)
* Initial port of goobstation factorio, missing disposals integration and faxing. Also ports impstations modification for robotic arms to have static power draw. Also adds automation slots to silos and advanced microwave. * Ports goobstation factorio fax automation, adds to the guidebook entry info about gas canisters. * Ported Goob Disposals. Removed part about taking mats out of storage silo cuz it ain't implemented yet. Seems to work. * Adds constructor circuitboard to research cuz I forgor
This commit is contained in:
@@ -188,6 +188,32 @@ public abstract class SharedDeviceLinkSystem : EntitySystem
|
||||
|
||||
return Loc.GetString(proto.Name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Goobstation - Removes a port from a source.
|
||||
/// </summary>
|
||||
public void RemoveSourcePort(EntityUid uid, ProtoId<SourcePortPrototype> port)
|
||||
{
|
||||
if (!TryComp<DeviceLinkSourceComponent>(uid, out var comp))
|
||||
return;
|
||||
|
||||
comp.Ports.Remove(port);
|
||||
if (comp.Ports.Count == 0)
|
||||
RemCompDeferred<DeviceLinkSourceComponent>(uid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Goobstation - Removes a port from a sink.
|
||||
/// </summary>
|
||||
public void RemoveSinkPort(EntityUid uid, ProtoId<SinkPortPrototype> port)
|
||||
{
|
||||
if (!TryComp<DeviceLinkSinkComponent>(uid, out var comp))
|
||||
return;
|
||||
|
||||
comp.Ports.Remove(port);
|
||||
if (comp.Ports.Count == 0)
|
||||
RemCompDeferred<DeviceLinkSinkComponent>(uid);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Links
|
||||
|
||||
Reference in New Issue
Block a user