Generalize ReagentUnit into FixedPoint2 and use it for damage calculations (#5151)
* Damage units * sum ext method
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Smoking;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -19,7 +20,7 @@ namespace Content.Server.Nutrition.Components
|
||||
/// Solution inhale amount per second.
|
||||
/// </summary>
|
||||
[DataField("inhaleAmount")]
|
||||
public ReagentUnit InhaleAmount { get; } = ReagentUnit.New(0.05f);
|
||||
public FixedPoint2 InhaleAmount { get; } = FixedPoint2.New(0.05f);
|
||||
|
||||
[DataField("state")]
|
||||
public SmokableState State { get; set; } = SmokableState.Unlit;
|
||||
|
||||
Reference in New Issue
Block a user