feat: 添加炫彩碎片道具处理逻辑并优化闪光信息存储
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

修改道具处理逻辑,新增炫彩碎片道具(300212)的使用功能
优化宠物闪光信息存储方式,改为直接赋值而非追加
This commit is contained in:
xinian
2026-02-23 07:30:30 +08:00
committed by cnb
parent fc0842e388
commit 84768e3406
3 changed files with 26 additions and 6 deletions

View File

@@ -219,7 +219,7 @@ func (pet *PetInfo) FixShiny() {
co := service.NewShinyService().RandShiny(pet.ID)
if co != nil {
pet.ShinyInfo = append(pet.ShinyInfo, *co)
pet.ShinyInfo = []data.GlowFilter{*co}
}
}
@@ -229,7 +229,7 @@ func (pet *PetInfo) RandomByWeightShiny() {
co := service.NewShinyService().RandomByWeightShiny(pet.ID)
if co != nil {
pet.ShinyInfo = append(pet.ShinyInfo, *co)
pet.ShinyInfo = []data.GlowFilter{*co}
}
}