dont log missing ArtifactComponent for artifexium (#32073)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -10,7 +10,7 @@ public sealed partial class ActivateArtifact : EntityEffect
|
||||
public override void Effect(EntityEffectBaseArgs args)
|
||||
{
|
||||
var artifact = args.EntityManager.EntitySysManager.GetEntitySystem<ArtifactSystem>();
|
||||
artifact.TryActivateArtifact(args.TargetEntity);
|
||||
artifact.TryActivateArtifact(args.TargetEntity, logMissing: false);
|
||||
}
|
||||
|
||||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
|
||||
|
||||
@@ -140,10 +140,11 @@ public sealed partial class ArtifactSystem : EntitySystem
|
||||
/// <param name="uid"></param>
|
||||
/// <param name="user"></param>
|
||||
/// <param name="component"></param>
|
||||
/// <param name="logMissing">Set this to false if you don't know if the entity is an artifact.</param>
|
||||
/// <returns></returns>
|
||||
public bool TryActivateArtifact(EntityUid uid, EntityUid? user = null, ArtifactComponent? component = null)
|
||||
public bool TryActivateArtifact(EntityUid uid, EntityUid? user = null, ArtifactComponent? component = null, bool logMissing = true)
|
||||
{
|
||||
if (!Resolve(uid, ref component))
|
||||
if (!Resolve(uid, ref component, logMissing))
|
||||
return false;
|
||||
|
||||
// check if artifact is under suppression field
|
||||
|
||||
Reference in New Issue
Block a user