prevent generating too many featured weapons

This commit is contained in:
wish
2022-12-23 22:37:19 +11:00
parent 7ddf63e0a1
commit 7c75e9118f

View File

@@ -93,6 +93,9 @@ func handleMsgMhfGetWeeklySchedule(s *Session, p mhfpacket.MHFPacket) {
}
func generateFeatureWeapons(count int) activeFeature {
if count > 14 {
count = 14
}
nums := make([]int, 0)
var result int
r := rand.New(rand.NewSource(time.Now().UnixNano()))