Skip to content
This repository was archived by the owner on Sep 25, 2022. It is now read-only.
Open
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
17 changes: 17 additions & 0 deletions MaxPowerLevel/Services/YearFive/Season17.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Collections.Generic;
using System.Linq;
using MaxPowerLevel.Models;

namespace MaxPowerLevel.Services.YearFive
{
public class Season17 : AbstractYear5Season
{
public override int SoftCap => 1510;

public override int PowerfulCap => 1560;

public override int HardCap => 1570;

public override uint SeasonHash => 2809059432;
}
}
10 changes: 5 additions & 5 deletions MaxPowerLevel/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
});
}

private static readonly DateTime Season16StartDate =
new DateTime(2022, 2, 22, 17, 0, 0, DateTimeKind.Utc);
private static readonly DateTime Season17StartDate =
new DateTime(2022, 5, 24, 17, 0, 0, DateTimeKind.Utc);

private void AddSeason(IServiceCollection services)
{
services.AddScoped<ISeason>(sp =>
{
if(DateTime.UtcNow < Season16StartDate)
if(DateTime.UtcNow < Season17StartDate)
{
return new Season15();
return new Season16();
}

return new Season16();
return new Season17();
});
}
}
Expand Down