playroom拜访增加限制

This commit is contained in:
hahwu 2025-07-15 09:43:14 +08:00
parent 993bf4c40f
commit f3d7b5c5a5

View File

@ -723,10 +723,10 @@ func GetVisitorPlayer(p *Player) int {
if v.Uid == int(p.M_DwUin) {
continue
}
//PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
// if PlayerSimpleData.Level < 6 {
// continue
// }
PlayerSimpleData := G_GameLogicPtr.GetSimplePlayerByUid(v.Uid)
if PlayerSimpleData.Level < 6 {
continue
}
PlayerList4 = append(PlayerList4, v.Uid)
}
L := GoUtil.RandSliceNum(PlayerList4, 1)