-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description IPCs were ported from a codebase that didn't necessarily follow all of our repo's coding standards. And while I had done my part to cleanup as much of the system as was practical within the bounds of a Maintainer Review, there were a lot of things that I felt were inappropriate to leave to review, and wished to go over with a fine lense. Thus, here is my Refactor of IPC code. Do not merge this without first testing that nothing was broken. Because I haven't tested it myself yet.
- Loading branch information
Showing
32 changed files
with
424 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
Content.Server/Power/Components/SiliconEmitSoundOnDrainedComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 17 additions & 22 deletions
39
Content.Server/Silicon/BlindHealing/BlindHealingComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
using Content.Shared.Damage; | ||
using Content.Shared.Tools; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
namespace Content.Server.Silicon.BlindHealing; | ||
|
||
namespace Content.Server.Silicon.BlindHealing | ||
[RegisterComponent] | ||
public sealed partial class BlindHealingComponent : Component | ||
{ | ||
[RegisterComponent] | ||
public sealed partial class BlindHealingComponent : Component | ||
{ | ||
[DataField] | ||
public int DoAfterDelay = 3; | ||
[DataField] | ||
public int DoAfterDelay = 3; | ||
|
||
/// <summary> | ||
/// A multiplier that will be applied to the above if an entity is repairing themselves. | ||
/// </summary> | ||
[DataField] | ||
public float SelfHealPenalty = 3f; | ||
/// <summary> | ||
/// A multiplier that will be applied to the above if an entity is repairing themselves. | ||
/// </summary> | ||
[DataField] | ||
public float SelfHealPenalty = 3f; | ||
|
||
/// <summary> | ||
/// Whether or not an entity is allowed to repair itself. | ||
/// </summary> | ||
[DataField] | ||
public bool AllowSelfHeal = true; | ||
/// <summary> | ||
/// Whether or not an entity is allowed to repair itself. | ||
/// </summary> | ||
[DataField] | ||
public bool AllowSelfHeal = true; | ||
|
||
[DataField(required: true)] | ||
public List<string> DamageContainers; | ||
} | ||
[DataField(required: true)] | ||
public List<string> DamageContainers; | ||
} |
Oops, something went wrong.