Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The CUM Update - First Iteration. #49

Merged
merged 9 commits into from
Aug 5, 2024
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Content.Shared.FixedPoint;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FloofStation.Traits;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.GameStates;

namespace Content.Server.FloofStation.Traits;

[RegisterComponent, Access(typeof(LewdTraitSystem))]
public sealed partial class CumProducerComponent : Component
{
[DataField("solutionname"), ViewVariables(VVAccess.ReadWrite)]
public string SolutionName;

[DataField, ViewVariables(VVAccess.ReadWrite)]
public ProtoId<ReagentPrototype> ReagentId = "Cum";

[DataField]
public FixedPoint2 MaxVolume = FixedPoint2.New(25);

[DataField]
public Entity<SolutionComponent>? Solution = null;

[DataField, ViewVariables(VVAccess.ReadOnly)]
public FixedPoint2 QuantityPerUpdate = 25;

[DataField]
public float HungerUsage = 10f;

[DataField]
public TimeSpan GrowthDelay = TimeSpan.FromMinutes(1);

[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan NextGrowth = TimeSpan.FromSeconds(0);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Content.Shared.FixedPoint;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FloofStation.Traits;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.GameStates;

namespace Content.Server.FloofStation.Traits;

[RegisterComponent, Access(typeof(LewdTraitSystem))]
public sealed partial class MilkProducerComponent : Component
{
[DataField("solutionname"), ViewVariables(VVAccess.ReadWrite)]
public string SolutionName;

[DataField, ViewVariables(VVAccess.ReadWrite)]
public ProtoId<ReagentPrototype> ReagentId = "Milk";

[DataField]
public FixedPoint2 MaxVolume = FixedPoint2.New(25);

[DataField]
public Entity<SolutionComponent>? Solution = null;

[DataField, ViewVariables(VVAccess.ReadOnly)]
public FixedPoint2 QuantityPerUpdate = 25;

[DataField]
public float HungerUsage = 10f;

[DataField]
public TimeSpan GrowthDelay = TimeSpan.FromMinutes(1);

[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan NextGrowth = TimeSpan.FromSeconds(0);
}
Loading
Loading