Skip to content

Commit

Permalink
fix: Borgs can no longer sacrifice their equipment to the Oracle
Browse files Browse the repository at this point in the history
fixes #1742
  • Loading branch information
DisposableCrewmember42 committed Sep 7, 2024
1 parent 22fce86 commit b1a82ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/Nyanotrasen/Research/Oracle/OracleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Content.Shared.Mobs.Components;
using Content.Shared.Psionics.Glimmer;
using Content.Shared.Research.Prototypes;
using Content.Shared.Silicons.Borgs.Components;
using Robust.Server.GameObjects;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
Expand Down Expand Up @@ -107,6 +108,9 @@ private void OnInteractUsing(EntityUid uid, OracleComponent component, InteractU
if (!TryComp<MetaDataComponent>(args.Used, out var meta))
return;

if (HasComp<BorgChassisComponent>(args.User))
return;

if (meta.EntityPrototype == null)
return;

Expand Down

0 comments on commit b1a82ef

Please sign in to comment.