Solution rejig (#12428)

This commit is contained in:
Leon Friedrich
2023-01-12 16:41:40 +13:00
committed by GitHub
parent 38504f6412
commit 466384b081
61 changed files with 873 additions and 619 deletions

View File

@@ -71,11 +71,11 @@ namespace Content.Server.Nutrition.Components
}
if (TransferAmount == null)
return solution.CurrentVolume == 0 ? 0 : 1;
return solution.Volume == 0 ? 0 : 1;
return solution.CurrentVolume == 0
return solution.Volume == 0
? 0
: Math.Max(1, (int) Math.Ceiling((solution.CurrentVolume / (FixedPoint2)TransferAmount).Float()));
: Math.Max(1, (int) Math.Ceiling((solution.Volume / (FixedPoint2)TransferAmount).Float()));
}
}
}