| 1234567891011121314151617 |
- 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;
- }
- }
- }
|