feat(pet): 更新宠物生成逻辑以支持异色属性

- 修改 `GenPetInfo` 函数签名,将 `shinyid` 参数调整为 `[]GlowFilter` 类型,并移动其位置
- 在多个控制器中更新调用 `GenPetInfo` 的地方,适配新的参数顺序和类型
- 引入 `GlowFilter` 结构用于描述异色效果,并在 `OgrePetInfo` 中添加相关字段
- 新增 `GenerateNormalizedColorMatrix` 工具函数用于生成颜色矩阵
- 调整宠物生成时对异色信息的初始化
This commit is contained in:
2025-12-14 19:23:26 +08:00
parent 4b604669e4
commit 3f059c71fa
9 changed files with 152 additions and 17 deletions

View File

@@ -74,7 +74,7 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
}
if tt.PetTypeId != 0 {
r := model.GenPetInfo(int(tt.PetTypeId), 31, -1, 0, 0, 50)
r := model.GenPetInfo(int(tt.PetTypeId), 31, -1, 0, 50, nil)
result.PetTypeId = r.ID
c.Service.Pet.PetAdd(r)