Generalize ReagentUnit into FixedPoint2 and use it for damage calculations (#5151)
* Damage units * sum ext method
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
@@ -11,8 +12,8 @@ namespace Content.Server.Cleanable
|
||||
public override string Name => "Cleanable";
|
||||
|
||||
[DataField("cleanAmount")]
|
||||
private ReagentUnit _cleanAmount = ReagentUnit.Zero;
|
||||
private FixedPoint2 _cleanAmount = FixedPoint2.Zero;
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public ReagentUnit CleanAmount => _cleanAmount;
|
||||
public FixedPoint2 CleanAmount => _cleanAmount;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user