This script is attached to a marker object in DiamondCityOrigin, and is used to enable/disable holiday decorations depending on when you visit. The intended logic appears to be that it will feature Halloween decorations on October 31st, and Christmas decorations on December 25th. However, the actual logic results in the following:
- Halloween decorations are properly enabled if you visit on October 31st, but will not be disabled if you visit on the 31st of any other month. In other words, if you visit Diamond City on Halloween, leave, and do not return until New Year's Eve, the Halloween decorations will still be enabled.
- Christmas decorations are properly enabled on December 25th, and will not be disabled until January 1st. This particular behavior may be intentional, but the lack of comments on that if statement make this purely an assumption.
- As with the Halloween decorations, Christmas decorations will not be disabled if your next visit to Diamond City is on the 25th of any month.
If the week-long Christmas celebration is intentional, then the if statement that controls enabling the markers is also flawed, as it means that if you miss Christmas itself then the decorations will never get put up that year.