feat(pet): 完善宠物异色功能和战斗逻辑

- 优化宠物异色生成逻辑,当Ext不为0时使用Ext值生成异色效果
- 修复战斗中我方放弃出手时的先后手判断逻辑
- 更新宠物融合和还原操作的调试日志输出
```
This commit is contained in:
2025-12-31 00:57:28 +08:00
parent 2dcf80f694
commit b86ab8d5a9
4 changed files with 13 additions and 29 deletions

View File

@@ -52,6 +52,7 @@ func (h Controller) UsePetItemOutOfFight(data *item.C2S_USE_PET_ITEM_OUT_OF_FIGH
}
oldPetCatchTime := currentPet.CatchTime
oldPet := c.Service.Pet.PetInfo_One_Unscoped(currentPet.OldCatchTime)
println(c.Info.UserID, "还原", len(c.Info.PetList), currentPet.ID, oldPet.Data.ID)
currentPet = &oldPet.Data
currentPet.CatchTime = oldPetCatchTime
} else {