From 91fdcb8612120b5e3f34c76c861d6b3c398c95c5 Mon Sep 17 00:00:00 2001 From: Svinthefirst <115838204+Svinthefirst@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:01:17 +0200 Subject: [PATCH] Alexandre fixes --- Content.Server/Bible/BibleSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Bible/BibleSystem.cs b/Content.Server/Bible/BibleSystem.cs index 7b74a59757d..78d59cc1184 100644 --- a/Content.Server/Bible/BibleSystem.cs +++ b/Content.Server/Bible/BibleSystem.cs @@ -27,6 +27,7 @@ using Robust.Shared.Prototypes; using Robust.Shared.Random; using Robust.Shared.Timing; +using System.Linq; namespace Content.Server.Bible { @@ -161,7 +162,7 @@ private void OnAfterInteract(EntityUid uid, BibleComponent component, AfterInter //Sunrise-start if (TryPrototype((EntityUid) args.Target, out var prototype) - && prototype.ID == "MobPig" + && (prototype.ID == "MobPig" || (prototype.Parents != null && prototype.Parents.Contains("MobPig"))) && !HasComp(args.Target)) { if (_lookUp.GetEntitiesInRange(Transform(uid).Coordinates, 5).Count >= 5