Add do after to surgery (#2756)

* Cleanup surgery classes

* Add DoAfter to surgery

* Consolidate doafter, break on user and target move

* Ignore biological surgery data component on the client

* Apply suggestions from code review

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

* Use a stringbuilder  for surgery descriptions

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
DrSmugleaf
2020-12-17 14:21:43 +01:00
committed by GitHub
parent a1d9248613
commit 4e0f52bbaf
6 changed files with 390 additions and 295 deletions

View File

@@ -89,9 +89,8 @@ namespace Content.Shared.GameObjects.Components.Body.Part
[ViewVariables]
public BodyPartSymmetry Symmetry { get; private set; }
// TODO BODY
[ViewVariables]
public SurgeryDataComponent? SurgeryDataComponent => Owner.GetComponentOrNull<SurgeryDataComponent>();
public ISurgeryData? SurgeryDataComponent => Owner.GetComponentOrNull<ISurgeryData>();
protected virtual void OnAddMechanism(IMechanism mechanism)
{