Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robust Toolbox v228.0.0 #1175

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
03663e7
Update Submodule
VMSolidus Nov 1, 2024
f1653e3
Update Submodule
VMSolidus Nov 1, 2024
bc1ca5b
Replace Matrix3 with System.Numerics.Matrix3x2 (#27443)
eoineoineoin Jun 2, 2024
29326dc
Content changes for entity categories PR (#27232)
ElectroJr Jun 2, 2024
0d3b724
Fix overlays
VMSolidus Nov 2, 2024
f18088c
fix hideSpawnMenu forced camelcase
VMSolidus Nov 2, 2024
6728707
Remove duplicate localizations
VMSolidus Nov 2, 2024
e1527e1
More removed duplicates
VMSolidus Nov 2, 2024
a4775ff
Fix flatpacks
VMSolidus Nov 2, 2024
c313a93
Update instrumentFlatpacks.yml
VMSolidus Nov 2, 2024
0cbe4d7
aaaaaaaa
VMSolidus Nov 2, 2024
e432e79
Update Submodule
VMSolidus Nov 2, 2024
8b7001b
Update global.json
VMSolidus Nov 2, 2024
669e686
No longer need 8.0.100
VMSolidus Nov 2, 2024
cb347cb
Revert "No longer need 8.0.100"
VMSolidus Nov 2, 2024
4e72374
Revert "Update global.json"
VMSolidus Nov 2, 2024
647dea8
Update Submodule
VMSolidus Nov 2, 2024
50acf51
Update Submodule
VMSolidus Nov 2, 2024
6cd6221
Remove obsolete VisibilitySystem functions (#28610)
Plykiya Jun 5, 2024
51080d1
Fuck it, 227.0.0
VMSolidus Nov 2, 2024
a9f34d6
Content changes for engine delta-state PR (#28134)
ElectroJr May 24, 2024
ab021c6
Update SingerComponent.cs
VMSolidus Nov 2, 2024
c0bcb45
Update SingerComponent.cs
VMSolidus Nov 2, 2024
9dcf77c
Improve InteractionSystem range & BUI checks (#27999)
ElectroJr May 24, 2024
680e708
Update LifeDrainerSystem.cs
VMSolidus Nov 2, 2024
baa2a48
Update glacier.yml
VMSolidus Nov 2, 2024
b83a57f
Update Submodule
VMSolidus Nov 2, 2024
b68ca78
Add StorageInteractionTest (#28541)
ElectroJr Jun 3, 2024
c06654c
Fix storage UI interactions (#28291)
ElectroJr May 26, 2024
55c4b79
Update submodule to 228.0.0 (#29947)
metalgearsloth Jul 13, 2024
75312b3
GO
VMSolidus Nov 14, 2024
b3f02d7
Merge branch 'master' into Update-Engine-Past-227
VMSolidus Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Content.Client.UserInterface.Systems.Storage.Controls;

public sealed class ItemGridPiece : Control
public sealed class ItemGridPiece : Control, IEntityControl
{
private readonly IEntityManager _entityManager;
private readonly StorageUIController _storageController;
Expand Down Expand Up @@ -287,6 +287,8 @@ public static Vector2 GetCenterOffset(Entity<ItemComponent?> entity, ItemStorage
var actualSize = new Vector2(boxSize.X + 1, boxSize.Y + 1);
return actualSize * new Vector2i(8, 8);
}

public EntityUid? UiEntity => Entity;
}

public enum ItemGridPieceMarks
Expand Down
2 changes: 1 addition & 1 deletion Content.IntegrationTests/Tests/Chemistry/DispenserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public async Task InsertEjectBuiTest()
ToggleNeedPower();

// Insert beaker
await Interact("Beaker");
await InteractUsing("Beaker");
Assert.That(Hands.ActiveHandEntity, Is.Null);

// Open BUI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ public async Task ConstructComputer()
await StartConstruction(Computer);

// Initial interaction (ghost turns into real entity)
await Interact(Steel, 5);
ClientAssertPrototype(ComputerFrame, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
ClientTarget = null;
await InteractUsing(Steel, 5);
ClientAssertPrototype(ComputerFrame, Target);

// Perform construction steps
await Interact(
Expand All @@ -41,7 +39,7 @@ public async Task DeconstructComputer()
await StartDeconstruction(ComputerId);

// Initial interaction turns id computer into generic computer
await Interact(Screw);
await InteractUsing(Screw);
AssertPrototype(ComputerFrame);

// Perform deconstruction steps
Expand Down Expand Up @@ -71,7 +69,7 @@ public async Task ChangeComputer()
await SpawnTarget(ComputerId);

// Initial interaction turns id computer into generic computer
await Interact(Screw);
await InteractUsing(Screw);
AssertPrototype(ComputerFrame);

// Perform partial deconstruction steps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,22 @@ public async Task WindowOnGrille()
{
// Construct Grille
await StartConstruction(Grille);
await Interact(Rod, 10);
ClientAssertPrototype(Grille, ClientTarget);

Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
await InteractUsing(Rod, 10);
ClientAssertPrototype(Grille, Target);
var grille = Target;

// Construct Window
await StartConstruction(Window);
await Interact(Glass, 10);
ClientAssertPrototype(Window, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
await InteractUsing(Glass, 10);
ClientAssertPrototype(Window, Target);

// Deconstruct Window
await Interact(Screw, Wrench);
AssertDeleted();

// Deconstruct Grille
Target = grille;
await Interact(Cut);
await InteractUsing(Cut);
AssertDeleted();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ public sealed class MachineConstruction : InteractionTest
public async Task ConstructProtolathe()
{
await StartConstruction(MachineFrame);
await Interact(Steel, 5);
ClientAssertPrototype(Unfinished, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
await InteractUsing(Steel, 5);
ClientAssertPrototype(Unfinished, Target);
await Interact(Wrench, Cable);
AssertPrototype(MachineFrame);
await Interact(ProtolatheBoard, Bin1, Bin1, Manipulator1, Manipulator1, Beaker, Beaker, Screw);
Expand Down Expand Up @@ -51,7 +50,7 @@ public async Task ChangeMachine()
AssertPrototype(MachineFrame);

// Change it into an autolathe
await Interact("AutolatheMachineCircuitboard");
await InteractUsing("AutolatheMachineCircuitboard");
AssertPrototype(MachineFrame);
await Interact(Bin1, Bin1, Bin1, Manipulator1, Glass, Screw);
AssertPrototype("Autolathe");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ public async Task WiresPanelScrewing(string prototype)

// Open & close panel
Assert.That(comp.Open, Is.False);
await Interact(Screw);
await InteractUsing(Screw);
Assert.That(comp.Open, Is.True);
await Interact(Screw);
await InteractUsing(Screw);
Assert.That(comp.Open, Is.False);

// Interrupted DoAfters
await Interact(Screw, awaitDoAfters: false);
await InteractUsing(Screw, awaitDoAfters: false);
await CancelDoAfters();
Assert.That(comp.Open, Is.False);
await Interact(Screw);
await InteractUsing(Screw);
Assert.That(comp.Open, Is.True);
await Interact(Screw, awaitDoAfters: false);
await InteractUsing(Screw, awaitDoAfters: false);
await CancelDoAfters();
Assert.That(comp.Open, Is.True);
await Interact(Screw);
await InteractUsing(Screw);
Assert.That(comp.Open, Is.False);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public async Task DeconstructTable()
{
await StartDeconstruction("Table");
Assert.That(Comp<PlaceableSurfaceComponent>().IsPlaceable);
await Interact(Wrench);
await InteractUsing(Wrench);
AssertPrototype("TableFrame");
await Interact(Wrench);
await InteractUsing(Wrench);
AssertDeleted();
await AssertEntityLookup((Steel, 1), (Rod, 2));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ public sealed class WallConstruction : InteractionTest
public async Task ConstructWall()
{
await StartConstruction(Wall);
await Interact(Steel, 2);
await InteractUsing(Steel, 2);
Assert.That(Hands.ActiveHandEntity, Is.Null);
ClientAssertPrototype(Girder, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
await Interact(Steel, 2);
ClientAssertPrototype(Girder, Target);
await InteractUsing(Steel, 2);
Assert.That(Hands.ActiveHandEntity, Is.Null);
AssertPrototype(WallSolid);
}
Expand All @@ -25,7 +24,7 @@ public async Task ConstructWall()
public async Task DeconstructWall()
{
await StartDeconstruction(WallSolid);
await Interact(Weld);
await InteractUsing(Weld);
AssertPrototype(Girder);
await Interact(Wrench, Screw);
AssertDeleted();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public sealed class WindowConstruction : InteractionTest
public async Task ConstructWindow()
{
await StartConstruction(Window);
await Interact(Glass, 5);
ClientAssertPrototype(Window, ClientTarget);
await InteractUsing(Glass, 5);
ClientAssertPrototype(Window, Target);
}

[Test]
Expand All @@ -28,8 +28,8 @@ public async Task DeconstructWindow()
public async Task ConstructReinforcedWindow()
{
await StartConstruction(RWindow);
await Interact(RGlass, 5);
ClientAssertPrototype(RWindow, ClientTarget);
await InteractUsing(RGlass, 5);
ClientAssertPrototype(RWindow, Target);
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task RepairReinforcedWindow()
Assert.That(comp.Damage.GetTotal(), Is.GreaterThan(FixedPoint2.Zero));

// Repair the entity
await Interact(Weld);
await InteractUsing(Weld);
Assert.That(comp.Damage.GetTotal(), Is.EqualTo(FixedPoint2.Zero));

// Validate that we can still deconstruct the entity (i.e., that welding deconstruction is not blocked).
Expand Down
39 changes: 19 additions & 20 deletions Content.IntegrationTests/Tests/DoAfter/DoAfterCancellationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,69 +16,68 @@ public sealed class DoAfterCancellationTests : InteractionTest
public async Task CancelWallDeconstruct()
{
await StartDeconstruction(WallConstruction.WallSolid);
await Interact(Weld, awaitDoAfters: false);
await InteractUsing(Weld, awaitDoAfters: false);

// Failed do-after has no effect
await CancelDoAfters();
AssertPrototype(WallConstruction.WallSolid);

// Second attempt works fine
await Interact(Weld);
await InteractUsing(Weld);
AssertPrototype(WallConstruction.Girder);

// Repeat for wrenching interaction
AssertAnchored();
await Interact(Wrench, awaitDoAfters: false);
await InteractUsing(Wrench, awaitDoAfters: false);
await CancelDoAfters();
AssertAnchored();
AssertPrototype(WallConstruction.Girder);
await Interact(Wrench);
await InteractUsing(Wrench);
AssertAnchored(false);

// Repeat for screwdriver interaction.
AssertExists();
await Interact(Screw, awaitDoAfters: false);
await InteractUsing(Screw, awaitDoAfters: false);
await CancelDoAfters();
AssertExists();
await Interact(Screw);
await InteractUsing(Screw);
AssertDeleted();
}

[Test]
public async Task CancelWallConstruct()
{
await StartConstruction(WallConstruction.Wall);
await Interact(Steel, 5, awaitDoAfters: false);
await InteractUsing(Steel, 5, awaitDoAfters: false);
await CancelDoAfters();

await Interact(Steel, 5);
ClientAssertPrototype(WallConstruction.Girder, ClientTarget);
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
await Interact(Steel, 5, awaitDoAfters: false);
await InteractUsing(Steel, 5);
ClientAssertPrototype(WallConstruction.Girder, Target);
await InteractUsing(Steel, 5, awaitDoAfters: false);
await CancelDoAfters();
AssertPrototype(WallConstruction.Girder);

await Interact(Steel, 5);
await InteractUsing(Steel, 5);
AssertPrototype(WallConstruction.WallSolid);
}

[Test]
public async Task CancelTilePry()
{
await SetTile(Floor);
await Interact(Pry, awaitDoAfters: false);
await InteractUsing(Pry, awaitDoAfters: false);
await CancelDoAfters();
await AssertTile(Floor);

await Interact(Pry);
await InteractUsing(Pry);
await AssertTile(Plating);
}

[Test]
public async Task CancelRepeatedTilePry()
{
await SetTile(Floor);
await Interact(Pry, awaitDoAfters: false);
await InteractUsing(Pry, awaitDoAfters: false);
await RunTicks(1);
Assert.That(ActiveDoAfters.Count(), Is.EqualTo(1));
await AssertTile(Floor);
Expand All @@ -89,7 +88,7 @@ public async Task CancelRepeatedTilePry()
await AssertTile(Floor);

// Third do after will work fine
await Interact(Pry);
await InteractUsing(Pry);
Assert.That(ActiveDoAfters.Count(), Is.EqualTo(0));
await AssertTile(Plating);
}
Expand All @@ -102,7 +101,7 @@ public async Task CancelRepeatedWeld()

Assert.That(comp.IsWelded, Is.False);

await Interact(Weld, awaitDoAfters: false);
await InteractUsing(Weld, awaitDoAfters: false);
await RunTicks(1);
Assert.Multiple(() =>
{
Expand All @@ -120,15 +119,15 @@ public async Task CancelRepeatedWeld()
});

// Third do after will work fine
await Interact(Weld);
await InteractUsing(Weld);
Assert.Multiple(() =>
{
Assert.That(ActiveDoAfters.Count(), Is.EqualTo(0));
Assert.That(comp.IsWelded, Is.True);
});

// Repeat test for un-welding
await Interact(Weld, awaitDoAfters: false);
await InteractUsing(Weld, awaitDoAfters: false);
await RunTicks(1);
Assert.Multiple(() =>
{
Expand All @@ -141,7 +140,7 @@ public async Task CancelRepeatedWeld()
Assert.That(ActiveDoAfters.Count(), Is.EqualTo(0));
Assert.That(comp.IsWelded, Is.True);
});
await Interact(Weld);
await InteractUsing(Weld);
Assert.Multiple(() =>
{
Assert.That(ActiveDoAfters.Count(), Is.EqualTo(0));
Expand Down
Loading
Loading