Predict DestructibleSystem, Part 1: IThresholdTrigger (#40876)

part 1
This commit is contained in:
slarticodefast
2025-10-13 17:41:34 +02:00
committed by GitHub
parent 6491cd1fca
commit 3ed206887e
25 changed files with 406 additions and 295 deletions

View File

@@ -1,10 +1,8 @@
using Content.Server.Destructible.Thresholds.Triggers;
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.Destructible.Thresholds.Triggers;
using Content.Shared.FixedPoint;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
using static Content.IntegrationTests.Tests.Destructible.DestructibleTestPrototypes;
@@ -91,7 +89,7 @@ namespace Content.IntegrationTests.Tests.Destructible
Assert.That(threshold.Trigger, Is.InstanceOf<AndTrigger>());
});
var trigger = (AndTrigger) threshold.Trigger;
var trigger = (AndTrigger)threshold.Trigger;
Assert.Multiple(() =>
{
@@ -162,7 +160,7 @@ namespace Content.IntegrationTests.Tests.Destructible
Assert.That(threshold.Trigger, Is.InstanceOf<AndTrigger>());
});
trigger = (AndTrigger) threshold.Trigger;
trigger = (AndTrigger)threshold.Trigger;
Assert.Multiple(() =>
{