playroom每日任务

This commit is contained in:
hahwu 2025-04-23 18:37:49 +08:00
parent 69c8fabc68
commit 75a6048ca4

View File

@ -834,13 +834,14 @@ func (p *PlayroomMod) AddRoomPointAdd() {
func (p *PlayroomMod) BackDataTask() []*msg.DailyTask {
DailyTask := make([]*msg.DailyTask, 0)
for _, v := range p.DailyTask {
for k, v := range p.DailyTask {
DailyTask = append(DailyTask, &msg.DailyTask{
Status: int32(v.Status),
UnLock: v.UnLock,
Progress: quest.QuestProgressToMsg(&v.Quest),
Items: item.ItemToMsg(v.Items),
Index: int32(v.Index),
Id: int32(k),
})
}
sort.Slice(DailyTask, func(i, j int) bool {