fix(fight_boss): 修复NPC战斗中宠物ID和闪光属性处理逻辑

- 在NPC战斗中,当refPet.Ext不为0时,正确设置refPet.Id
- 当refPet.Ext不为0且满足随机条件时,为怪物添加随机闪光属性
- 修正了宠物信息生成时的ID使用逻辑

fix(monster): 修正注释说明稀有精灵概率计算

- 更新注释说明,明确单个ID固定刷出时的概率变尼尔尼奥不是稀有精灵

refactor(player): 重构宠物闪光属性随机生成逻辑

- 简化OgrePetInfo.RandSHiny方法的条件判断逻辑
- 统一闪光属性随机生成的处理方式

fix(task): 修复任务奖励物品信息返回

- 修正任务奖励
This commit is contained in:
2026-01-01 00:30:09 +08:00
parent 3efbba3883
commit 9ae66a42d1
5 changed files with 12 additions and 7 deletions

View File

@@ -47,9 +47,8 @@ type OgrePetInfo struct {
func (o *OgrePetInfo) RandSHiny() {
var co *data.GlowFilter
if o.Ext != 0 {
co = config.NewShinyService().RandShiny(o.Ext)
} else {
if o.Ext == 0 {
co = config.NewShinyService().RandShiny(o.Id)
}