fix(pet): 优化宠物面板计算逻辑,限制非首次生成时等级不超过100并简化特性生成

This commit is contained in:
1
2025-12-11 14:34:56 +00:00
parent cbf9b1039f
commit 8eb0a1324b
6 changed files with 30 additions and 36 deletions

View File

@@ -65,7 +65,7 @@ func (h Controller) ItemUsePet(data *item.C2S_USE_PET_ITEM_OUT_OF_FIGHT, c *play
c.Service.Item.SubItem(data.ItemID, 1)
result = &item.S2C_USE_PET_ITEM_OUT_OF_FIGHT{}
onpet.CalculatePetPane()
onpet.CalculatePetPane(false)
copier.Copy(&result, onpet)
return result, 0
@@ -81,7 +81,7 @@ func (h Controller) ResetNature(data *item.C2S_PET_RESET_NATURE, c *player.Playe
}
onpet.Nature = data.Nature
onpet.CalculatePetPane()
onpet.CalculatePetPane(false)
c.Service.Item.SubItem(data.ItemId, 1)
return result, 0
}