Skip to content

Commit

Permalink
Merge branch 'ClothingOps2' of https://github.com/Smugman/Delta-v int…
Browse files Browse the repository at this point in the history
…o ClothingOps2
  • Loading branch information
Smugman committed Jan 23, 2025
2 parents 8dd9fe5 + b6ce4ac commit 0cbe9dd
Show file tree
Hide file tree
Showing 54 changed files with 632 additions and 597 deletions.
5 changes: 5 additions & 0 deletions Content.Client/_DV/Abilities/Felinid/FelinidSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Content.Shared._DV.Abilities.Felinid;

namespace Content.Shared._DV.Abilities.Felinid;

public sealed class FelinidSystem : SharedFelinidSystem;
2 changes: 1 addition & 1 deletion Content.Server/Chemistry/EntitySystems/InjectorSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Server.Abilities.Chitinid;
using Content.Server.Body.Components;
using Content.Server.Body.Systems;
using Content.Shared._DV.Chemistry.Components; // DeltaV
using Content.Shared.Chemistry;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Components.SolutionManager;
Expand Down

This file was deleted.

36 changes: 0 additions & 36 deletions Content.Server/Nyanotrasen/Abilities/Felinid/FelinidComponent.cs

This file was deleted.

This file was deleted.

195 changes: 0 additions & 195 deletions Content.Server/Nyanotrasen/Abilities/Felinid/FelinidSystem.cs

This file was deleted.

This file was deleted.

This file was deleted.

32 changes: 17 additions & 15 deletions Content.Server/_DV/Abilities/Chitinid/ChitinidComponent.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;

namespace Content.Server.Abilities.Chitinid;
namespace Content.Server._DV.Abilities.Chitinid;

[RegisterComponent]
/// <summary>
/// Passively heals radiation up to a limit, which then uses <c>ItemCougherComponent</c> to cough up Chitzite.
/// After that it will heal radiation damage again.
/// </summary>
[RegisterComponent, Access(typeof(ChitinidSystem))]
[AutoGenerateComponentPause]
public sealed partial class ChitinidComponent : Component
{
[DataField]
public EntProtoId ChitzitePrototype = "Chitzite";

[DataField]
public EntProtoId ChitziteActionId = "ActionChitzite";

[DataField]
public EntityUid? ChitziteAction;
public FixedPoint2 AmountAbsorbed = 0f;

/// <summary>
/// Once this much damage is absorbed, it will stop healing and require you to cough up chitzite.
/// </summary>
[DataField]
public FixedPoint2 AmountAbsorbed = 0f;
public FixedPoint2 MaximumAbsorbed = 30f;

/// <summary>
/// What damage is healed, by adding, every <see cref="UpdateInterval"/>.
/// This must be negative.
/// </summary>
[DataField]
public DamageSpecifier Healing = new()
{
Expand All @@ -30,12 +34,10 @@ public sealed partial class ChitinidComponent : Component
}
};

[DataField]
public FixedPoint2 MaximumAbsorbed = 30f;

[DataField]
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(1);

[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
[AutoPausedField]
public TimeSpan NextUpdate;
}
Loading

0 comments on commit 0cbe9dd

Please sign in to comment.