推荐优化

This commit is contained in:
hahwu 2026-02-09 14:07:57 +08:00
parent 6172c12227
commit b4317cf3c4

View File

@ -182,7 +182,12 @@ func GetRecommendPlayer(p *Player, Num int) []int {
level := BaseMod.GetLevel()
diffLimit := 10
filtered := make([]int, 0, len(baseList))
breakNum := 100
for {
if breakNum <= 0 {
break
}
breakNum--
filtered = filtered[:0]
for _, ps := range baseList {
if ps == nil {