rewrite into SeasonOverride

This commit is contained in:
wish
2023-07-16 21:57:29 +10:00
parent 568fa5e116
commit a98ebf5d52
4 changed files with 10 additions and 9 deletions

View File

@@ -405,3 +405,8 @@ func (s *Server) NextSemaphoreID() uint32 {
}
return s.semaphoreIndex
}
func (s *Server) Season() uint8 {
sid := int64(((s.ID & 0xFF00) - 4096) / 256)
return uint8(((TimeAdjusted().Unix() / 86400) + sid) % 3)
}