This commit is contained in:
@@ -182,6 +182,9 @@ func (ctl Controller) GetHatchPet(
|
||||
// TODO: 实现获得孵化精灵的具体逻辑,这里暂时返回默认值
|
||||
|
||||
r := playerObj.Service.Egg.GetEgg()
|
||||
if r == nil {
|
||||
return nil, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
playerObj.Service.Pet.PetAdd(r)
|
||||
|
||||
result.PetID = r.ID
|
||||
|
||||
Reference in New Issue
Block a user