修复装备技能属性强化
This commit is contained in:
parent
4fa1917d52
commit
ea38902865
@ -121,6 +121,7 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.EquipmentUpgrade
|
|||||||
"lv": equipment.Lv,
|
"lv": equipment.Lv,
|
||||||
"mainEntry": equipment.MainEntry,
|
"mainEntry": equipment.MainEntry,
|
||||||
"adverbEntry": equipment.AdverbEntry,
|
"adverbEntry": equipment.AdverbEntry,
|
||||||
|
"adverbskill": equipment.Adverbskill,
|
||||||
"isInitialState": false,
|
"isInitialState": false,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.Errorf("Upgrade err:%v", err)
|
log.Errorf("Upgrade err:%v", err)
|
||||||
|
@ -346,8 +346,8 @@ func (this *modelEquipmentComp) upgradeEquipment(equipment *pb.DB_Equipment, equ
|
|||||||
equipment.AdverbEntry[index].Lv++
|
equipment.AdverbEntry[index].Lv++
|
||||||
} else {
|
} else {
|
||||||
r := rand.New(rand.NewSource(time.Now().Unix()))
|
r := rand.New(rand.NewSource(time.Now().Unix()))
|
||||||
index := r.Perm(len(equipment.AdverbEntry))[0]
|
index := r.Perm(len(equipment.Adverbskill))[0]
|
||||||
equipment.AdverbEntry[index].Lv++
|
equipment.Adverbskill[index].Lv++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user