This commit is contained in:
@@ -88,8 +88,7 @@ func (h Controller) PetFusion(data *pet.C2S_PetFusion, c *player.Player) (result
|
||||
Auxpetinfo.Downgrade(1)
|
||||
|
||||
}
|
||||
Auxpetinfo.NextLvExp = 0
|
||||
Auxpetinfo.Update(false)
|
||||
|
||||
}
|
||||
|
||||
return &pet.PetFusionInfo{}, 0
|
||||
|
||||
@@ -163,8 +163,7 @@ func init() {
|
||||
PetItemRegistry.RegisterExact(300024, func(itemid uint32, onpet *model.PetInfo) bool {
|
||||
|
||||
onpet.Downgrade(1)
|
||||
onpet.NextLvExp = 0
|
||||
onpet.Update(false)
|
||||
|
||||
onpet.Ev = [6]uint32{}
|
||||
onpet.Dv = uint32(grand.Intn(32))
|
||||
onpet.Nature = (onpet.Nature + uint32(grand.Intn(25))) % 25
|
||||
|
||||
@@ -291,6 +291,8 @@ func (pet *PetInfo) Downgrade(level uint32) {
|
||||
//进行降级操作
|
||||
|
||||
}
|
||||
pet.NextLvExp = 0
|
||||
pet.Update(false)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user