实装大乱斗经验
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-14 04:27:57 +08:00
parent 06b77d598e
commit 24c413030f
10 changed files with 71 additions and 8 deletions

View File

@@ -22,8 +22,13 @@ func (h Controller) PetMelee(data *fight.StartPetWarInboundInfo, c *player.Playe
if foi.WinnerId == c.GetInfo().UserID {
c.Info.MessWin += 1
c.MessWin(true)
p.MessWin(false)
} else {
p.GetInfo().MessWin += 1
p.MessWin(true)
c.MessWin(false)
}
}

View File

@@ -26,6 +26,15 @@ func (h Controller) IsCollect(
return false
})
_, ok := lo.Find([]uint32{1, 2, 3, 4, 301}, func(item uint32) bool {
return data.Type == item
})
if ok {
res := c.Info.GetTask(1335 + int(data.Type)) //第一期
if res == model.Completed {
result.IsCom = 1
}
}
return result, 0
}

View File

@@ -15,8 +15,13 @@ import (
// 返回: 模拟用户信息及错误码
func (h Controller) GetUserSimInfo(data *user.SimUserInfoInboundInfo, player *player.Player) (result *user.SimUserInfoOutboundInfo, err errorcode.ErrorCode) {
result = &user.SimUserInfoOutboundInfo{}
t, ok := player.GetSpace().UserInfo.Load(data.UserId)
if ok {
copier.Copy(result, t)
} else {
copier.Copy(result, player.Service.Info.Person(data.UserId).Data)
}
copier.Copy(result, player.Service.Info.Person(data.UserId).Data)
return result, 0
}