```
feat(pet): 宠物系统新增异色功能 - 在蛋游戏中添加异色宠物生成逻辑 - 在 boss 战斗中加入捕获时异色概率判定 - 优化宠物融合系统,支持融合后异色继承 - 重构宠物删除方法命名,修复方法调用问题
This commit is contained in:
@@ -54,7 +54,9 @@ func (h Controller) UsePetItemOutOfFight(data *item.C2S_USE_PET_ITEM_OUT_OF_FIGH
|
||||
oldPet := c.Service.Pet.PetInfo_One_Unscoped(currentPet.OldCatchTime)
|
||||
|
||||
copier.CopyWithOption(currentPet, oldPet.Data, copier.Option{DeepCopy: true})
|
||||
// println("currentPet.CatchTime", currentPet.CatchTime, currentPet.OldCatchTime)
|
||||
currentPet.CatchTime = oldPetCatchTime
|
||||
|
||||
currentPet.EffectInfo = oldPet.Data.EffectInfo
|
||||
} else {
|
||||
handler := item.PetItemRegistry.GetHandler(data.ItemID)
|
||||
|
||||
Reference in New Issue
Block a user