Add puddles / reagent spills (#743)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Content.Tests.Shared.Chemistry
|
||||
var solution = new Solution();
|
||||
solution.AddReagent("water", ReagentUnit.New(1000));
|
||||
var quantity = solution.GetReagentQuantity("water");
|
||||
|
||||
|
||||
Assert.That(quantity.Int(), Is.EqualTo(1000));
|
||||
}
|
||||
|
||||
@@ -302,6 +302,27 @@ namespace Content.Tests.Shared.Chemistry
|
||||
Assert.That(splitSolution.TotalVolume.Int(), Is.EqualTo(0));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SplitSolutionZero()
|
||||
{
|
||||
var solution = new Solution();
|
||||
solution.AddReagent("chem.Impedrezene", ReagentUnit.New(0.01 + 0.19));
|
||||
solution.AddReagent("chem.Thermite", ReagentUnit.New(0.01 + 0.39));
|
||||
solution.AddReagent("chem.Li", ReagentUnit.New(0.01 + 0.17));
|
||||
solution.AddReagent("chem.F", ReagentUnit.New(0.01 + 0.17));
|
||||
solution.AddReagent("chem.Na", ReagentUnit.New(0 + 0.13));
|
||||
solution.AddReagent("chem.Hg", ReagentUnit.New(0.15 + 4.15));
|
||||
solution.AddReagent("chem.Cu", ReagentUnit.New(0 + 0.13));
|
||||
solution.AddReagent("chem.U", ReagentUnit.New(0.76 + 20.77));
|
||||
solution.AddReagent("chem.Fe", ReagentUnit.New(0.01 + 0.36));
|
||||
solution.AddReagent("chem.SpaceDrugs", ReagentUnit.New(0.02 + 0.41));
|
||||
solution.AddReagent("chem.Al", ReagentUnit.New(0));
|
||||
solution.AddReagent("chem.Glucose", ReagentUnit.New(0));
|
||||
solution.AddReagent("chem.O", ReagentUnit.New(0));
|
||||
|
||||
solution.SplitSolution(ReagentUnit.New(0.98));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AddSolution()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user