Fix ghost FOV bug (#21614)
This commit is contained in:
@@ -301,6 +301,18 @@ namespace Content.Shared.Chemistry.Components
|
||||
return total;
|
||||
}
|
||||
|
||||
public FixedPoint2 GetTotalPrototypeQuantity(string id)
|
||||
{
|
||||
var total = FixedPoint2.Zero;
|
||||
foreach (var (reagent, quantity) in Contents)
|
||||
{
|
||||
if (id == reagent.Prototype)
|
||||
total += quantity;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
public ReagentId? GetPrimaryReagentId()
|
||||
{
|
||||
if (Contents.Count == 0)
|
||||
|
||||
Reference in New Issue
Block a user