From 75d97af1ef37bdf8c44ac3339ef2aa7861aa6401 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 13 Oct 2026 02:05:46 +0200 Subject: [PATCH] MunitionPartsTests: ShipSums reads per-channel light from VisibilitySources, SignatureOn being retired The merged tree needs this: loot-1 added the SignatureOn reader after the cut's base. Does not build without it; builds with it. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/MunitionPartsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/MunitionPartsTests.cs b/tests/Aetheria.Shared.Tests/MunitionPartsTests.cs index 4eddd2731..b49b10481 100644 --- a/tests/Aetheria.Shared.Tests/MunitionPartsTests.cs +++ b/tests/Aetheria.Shared.Tests/MunitionPartsTests.cs @@ -301,7 +301,7 @@ public sealed class MunitionPartsTests : IDisposable private static string ShipSums(Ship s) { var e = s.Envelope; - var channels = string.Join(",", Enum.GetValues(typeof(SignatureChannel)).Cast().Select(c => $"{c}={s.SignatureOn(c):0.####}")); + var channels = string.Join(",", Enum.GetValues(typeof(SignatureChannel)).Cast().Select(c => $"{c}={s.VisibilitySources.Values.Where(v => v.Channel == c).Sum(v => v.Strength):0.####}")); var sensors = string.Join(",", s.GetBehaviors().Select(b => b.Data.GetType().Name)); return $"env F{e.Forward:0.###} R{e.Reverse:0.###} L{e.Left:0.###} Ri{e.Right:0.###} CW{e.Clockwise:0.###} CCW{e.CounterClockwise:0.###} " + $"vis={s.Visibility:0.####} sources={s.VisibilitySources.Count} {channels} thrusters={s.GetBehaviors().Count()} thrust={s.GetBehaviors().Sum(t => t.Thrust):0.###} sensors=[{sensors}]";