```
fix(pet_fusion): 修复宠物融合中闪光宠物概率初始化问题 初始化闪光宠物计数器默认值从0改为1,确保融合逻辑正确处理闪光宠物的概率计算。 当源宠物或辅助宠物为闪光时,闪光计数器将被设置为50。 ```
This commit is contained in:
@@ -64,7 +64,7 @@ func (h Controller) PetFusion(data *pet.C2S_PetFusion, c *player.Player) (result
|
||||
r := model.GenPetInfo(resid, int(dv), int(natureId), effect, 1, nil)
|
||||
r.OldCatchTime = Mcatchpetinfo.CatchTime
|
||||
|
||||
shinycont := 0
|
||||
shinycont := 1
|
||||
if Mcatchpetinfo.IsShiny() || Auxpetinfo.IsShiny() {
|
||||
shinycont = 50
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user