This commit is contained in:
@@ -35,9 +35,7 @@ func (h Controller) EggGamePlay(data1 *egg.C2S_EGG_GAME_PLAY, c *player.Player)
|
||||
if grand.Meet(int(data1.EggNum), 100) {
|
||||
r := service.NewPetRewardService().GetEgg()
|
||||
newPet := model.GenPetInfo(int(r.MonID), int(r.DV), int(r.Nature), int(r.Effect), int(r.Lv), nil, 0)
|
||||
if grand.Meet(int(data1.EggNum), 100) {
|
||||
newPet.RandShiny()
|
||||
}
|
||||
newPet.RandShiny()
|
||||
c.Service.Pet.PetAdd(newPet)
|
||||
|
||||
result.HadTime = newPet.CatchTime
|
||||
|
||||
@@ -117,11 +117,7 @@ func (Controller) PlayerFightBoss(data *fight.ChallengeBossInboundInfo, p *playe
|
||||
if bc.BossCatchable == 1 {
|
||||
canCapture = xmlres.PetMAP[int(monster.ID)].CatchRate
|
||||
|
||||
if grand.Meet(1, 100) {
|
||||
r := monsterInfo.PetList[0]
|
||||
r.RandShiny()
|
||||
monsterInfo.PetList[0] = r
|
||||
}
|
||||
monsterInfo.PetList[0].RandShiny()
|
||||
|
||||
}
|
||||
monsterInfo.Nick = bc.Name //xmlres.PetMAP[int(monster.ID)].DefName
|
||||
@@ -182,9 +178,7 @@ func (Controller) OnPlayerFightNpcMonster(data1 *fight.FightNpcMonsterInboundInf
|
||||
refPet.ShinyInfo, -1)
|
||||
monster.CatchMap = p.Info.MapID //设置当前地图
|
||||
if refPet.Ext != 0 {
|
||||
if grand.Meet(2, 1000) {
|
||||
monster.RandShiny()
|
||||
}
|
||||
monster.RandShiny()
|
||||
}
|
||||
|
||||
monsterInfo := &model.PlayerInfo{}
|
||||
|
||||
Reference in New Issue
Block a user