Content update for NetEntities (#18935)
This commit is contained in:
@@ -15,7 +15,8 @@ public sealed class MachineConstruction : InteractionTest
|
||||
{
|
||||
await StartConstruction(MachineFrame);
|
||||
await Interact(Steel, 5);
|
||||
AssertPrototype(Unfinished);
|
||||
ClientAssertPrototype(Unfinished, ClientTarget);
|
||||
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
|
||||
await Interact(Wrench, Cable);
|
||||
AssertPrototype(MachineFrame);
|
||||
await Interact(ProtolatheBoard, Bin1, Bin1, Manipulator1, Manipulator1, Beaker, Beaker, Screw);
|
||||
@@ -61,9 +62,10 @@ public sealed class MachineConstruction : InteractionTest
|
||||
{
|
||||
// Partially deconstruct a protolathe.
|
||||
await SpawnTarget(Protolathe);
|
||||
var serverTarget = SEntMan.GetEntity(Target!.Value);
|
||||
|
||||
// Initially has all quality-1 parts.
|
||||
foreach (var part in SConstruction.GetAllParts(Target!.Value))
|
||||
foreach (var part in SConstruction.GetAllParts(serverTarget))
|
||||
{
|
||||
Assert.That(part.Rating, Is.EqualTo(1));
|
||||
}
|
||||
@@ -78,7 +80,7 @@ public sealed class MachineConstruction : InteractionTest
|
||||
AssertPrototype(Protolathe);
|
||||
|
||||
// Query now returns higher quality parts.
|
||||
foreach (var part in SConstruction.GetAllParts(Target!.Value))
|
||||
foreach (var part in SConstruction.GetAllParts(SEntMan.GetEntity(Target!.Value)))
|
||||
{
|
||||
Assert.That(part.Rating, Is.EqualTo(4));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user