playroom优化

This commit is contained in:
hahwu 2025-04-25 14:27:27 +08:00
parent e4cb8bfd5e
commit eadb885126
2 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func PlayroomBackData(p *Player) {
r.Jackpot = int32(PlayroomMod.JackpotNum)
r.Upvote = int32(PlayroomMod.Upvote)
r.RoomPoint = int32(PlayroomMod.RoomPoint)
r.Unlock = PlayroomMod.GetUnlockIds()
r.DailyTaskReward = GoUtil.IntToInt32(PlayroomMod.DailyTaskReward)
r.DailyTask = PlayroomMod.BackDataTask()
p.PushClientRes(r)

View File

@ -793,6 +793,14 @@ func (p *PlayroomMod) Unlock(Id int) error {
return nil
}
func (p *PlayroomMod) GetUnlockIds() []int32 {
UnlockIds := make([]int32, 0)
for k := range p.UnlockList {
UnlockIds = append(UnlockIds, int32(k))
}
return UnlockIds
}
func (p *PlayroomMod) GetDressSet() map[int]int {
return p.DressSet
}