Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions Content.IntegrationTests/Tests/Power/StationPowerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ public sealed class StationPowerTests : GameTest
#endregion
];

#region Starlight
/// <summary>
/// Starlight: allows specific maps to skip having a upper bound on power in the case of admeme maps or where it is deemed acceptable by head mapper
/// </summary>
private static readonly HashSet<string> _noUpperBoundedPowerMaps = [
"StarlightRemix"
];
#endregion

public override PoolSettings PoolSettings => new ()
{
Dirty = true,
Expand Down Expand Up @@ -257,6 +266,8 @@ await server.WaitAssertion(() =>
Assert.That(totalStartingCharge, Is.GreaterThanOrEqualTo(requiredStoredPower),
$"Needs at least {requiredStoredPower - totalStartingCharge} more stored power!");
// Starlight start
if (_noUpperBoundedPowerMaps.Contains(mapProtoId))
return; //skip the section below if it is a no upper bound map.
Assert.That(estimatedDuration, Is.LessThanOrEqualTo(MaximumPowerDurationSeconds),
$"Initial power for {mapProtoId} lasts too long! Max allowed {MaximumPowerDurationSeconds}s " +
$"but estimated to last {estimatedDuration}s remove some stored power!");
Expand Down
Loading
Loading