Cult spells update (#607)
* - add: CultSystem.BloodSpells. * - add: Cleanup.
This commit is contained in:
@@ -29,6 +29,7 @@ namespace Content.Server.Construction
|
||||
public sealed partial class ConstructionSystem
|
||||
{
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly IEntityManager _entityManager = default!; // WD
|
||||
#if EXCEPTION_TOLERANCE
|
||||
[Dependency] private readonly IRuntimeLog _runtimeLog = default!;
|
||||
#endif
|
||||
@@ -95,9 +96,6 @@ namespace Content.Server.Construction
|
||||
if (!Resolve(uid, ref construction))
|
||||
return HandleResult.False;
|
||||
|
||||
if (TryComp(uid, out StackComponent? stack) && stack.Count > 1) // WD
|
||||
return HandleResult.False;
|
||||
|
||||
// Let's make extra sure this is zero...
|
||||
construction.StepIndex = 0;
|
||||
|
||||
@@ -209,7 +207,7 @@ namespace Content.Server.Construction
|
||||
// We can only perform the rest of our logic if it returns true.
|
||||
var handle = HandleInteraction(uid, ev, step, validation, out user, construction);
|
||||
|
||||
if (step.CultistOnly && !(HasComp<CultistComponent>(user) || HasComp<GhostComponent>(user))) // WD
|
||||
if (user != null && step.UserWhitelist?.IsValid(user.Value, _entityManager) is false) // WD
|
||||
return HandleResult.False;
|
||||
|
||||
if (handle is not HandleResult.True)
|
||||
|
||||
Reference in New Issue
Block a user