mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 16:48:10 +03:00
No spead merge (#475)
* Revert "[GoobPort] WIZ REAL (#465)"
This reverts commit 091a8ff433.
* fix local
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Content.Shared.Mind;
|
||||
using Content.Shared.Objectives;
|
||||
using Content.Shared.Objectives.Components;
|
||||
@@ -92,17 +91,6 @@ public abstract class SharedObjectivesSystem : EntitySystem
|
||||
return uid;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Spawns and assigns an objective for a mind.
|
||||
/// The objective is not added to the mind's objectives, mind system does that in TryAddObjective.
|
||||
/// If the objective could not be assigned the objective is deleted and false is returned.
|
||||
/// </summary>
|
||||
public bool TryCreateObjective(Entity<MindComponent> mind, EntProtoId proto, [NotNullWhen(true)] out EntityUid? objective)
|
||||
{
|
||||
objective = TryCreateObjective(mind.Owner, mind.Comp, proto);
|
||||
return objective != null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the title, description, icon and progress of an objective using <see cref="ObjectiveGetProgressEvent"/>.
|
||||
/// If any of them are null it is logged and null is returned.
|
||||
|
||||
Reference in New Issue
Block a user