[feat] New Interface (#10)

This commit is contained in:
rhailrake
2023-05-01 16:36:41 +06:00
committed by Aviu00
parent c14cabae3a
commit 0deda77a06
71 changed files with 1855 additions and 136 deletions

View File

@@ -2,6 +2,7 @@ using Content.Server.Bible.Components;
using Content.Server.Ghost.Roles.Components;
using Content.Server.Ghost.Roles.Events;
using Content.Server.Popups;
using Content.Server.White.Other.Lazy;
using Content.Shared.ActionBlocker;
using Content.Shared.Actions;
using Content.Shared.Bible;
@@ -160,6 +161,9 @@ namespace Content.Server.Bible
if (!args.CanInteract || !args.CanAccess || component.AlreadySummoned || component.SpecialItemPrototype == null)
return;
if (HasComp<EarsSpawnComponent>(component.Owner))
return;
if (component.RequiresBibleUser && !HasComp<BibleUserComponent>(args.User))
return;
@@ -183,6 +187,9 @@ namespace Content.Server.Bible
if (component.AlreadySummoned)
return;
if (HasComp<EarsSpawnComponent>(component.Owner))
return;
args.AddAction(ref component.SummonActionEntity, component.SummonAction);
}