18 lines
480 B
C#
18 lines
480 B
C#
using Content.Server.Holiday.Interfaces;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.Holiday.ShouldCelebrate
|
|
{
|
|
/// <summary>
|
|
/// For Friday the 13th. Spooky!
|
|
/// </summary>
|
|
[UsedImplicitly]
|
|
public sealed partial class FridayThirteenth : IHolidayShouldCelebrate
|
|
{
|
|
public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday)
|
|
{
|
|
return date.Day == 13 && date.DayOfWeek == DayOfWeek.Friday;
|
|
}
|
|
}
|
|
}
|