This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user