Compare commits

..

No commits in common. "d6419d973b7236a70f83451a9462c503f8b19864" and "d8825c650d6fe35bdcfa04b932bc66c4e5ec54e6" have entirely different histories.

1 changed files with 19 additions and 17 deletions

View File

@ -4341,24 +4341,26 @@ func (this *Player) RandRobotVip(scene *Scene) {
func (this *Player) RandRobotPetSkillLevel() {
//随机机器人宠物技能等级
this.Pets.SkillInfo = make(map[int32]map[int32]int32)
for petId, _ := range this.Pets.ModUnlock {
skillLevel := int32(0)
if this.VIP < 1 {
skillLevel = rand.Int31n(2)
} else if this.VIP >= 1 && this.VIP <= 3 {
skillLevel = rand.Int31n(3) + 1
} else if this.VIP >= 4 && this.VIP <= 6 {
skillLevel = rand.Int31n(4) + 2
} else if this.VIP >= 7 && this.VIP <= 9 {
skillLevel = rand.Int31n(4) + 3
} else if this.VIP >= 10 && this.VIP <= 12 {
skillLevel = rand.Int31n(5) + 4
} else if this.VIP >= 13 && this.VIP <= 16 {
skillLevel = rand.Int31n(6) + 5
if this.Pets.SkillInfo == nil {
this.Pets.SkillInfo = make(map[int32]map[int32]int32)
for petId, _ := range this.Pets.ModUnlock {
skillLevel := int32(0)
if this.VIP < 1 {
skillLevel = rand.Int31n(2)
} else if this.VIP >= 1 && this.VIP <= 3 {
skillLevel = rand.Int31n(3) + 1
} else if this.VIP >= 4 && this.VIP <= 6 {
skillLevel = rand.Int31n(4) + 2
} else if this.VIP >= 7 && this.VIP <= 9 {
skillLevel = rand.Int31n(4) + 3
} else if this.VIP >= 10 && this.VIP <= 12 {
skillLevel = rand.Int31n(5) + 4
} else if this.VIP >= 13 && this.VIP <= 16 {
skillLevel = rand.Int31n(6) + 5
}
this.Pets.SkillInfo[petId] = make(map[int32]int32)
this.Pets.SkillInfo[petId][10001] = skillLevel
}
this.Pets.SkillInfo[petId] = make(map[int32]int32)
this.Pets.SkillInfo[petId][10001] = skillLevel
}
}