Holiday System (#3122)
This commit is contained in:
committed by
GitHub
parent
857c65d968
commit
9ee0ec4106
18
Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs
Normal file
18
Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Content.Server.Holiday.Interfaces;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Content.Server.Holiday.ShouldCelebrate
|
||||
{
|
||||
/// <summary>
|
||||
/// For Friday the 13th. Spooky!
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
public class FridayThirteenth : IHolidayShouldCelebrate
|
||||
{
|
||||
public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday)
|
||||
{
|
||||
return date.Day == 13 && date.DayOfWeek == DayOfWeek.Friday;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user