虚拟等级英雄 构建初始化属性信息
This commit is contained in:
parent
8495f8ba01
commit
d4d612aef8
@ -100,14 +100,17 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.IsLandBuyReq) (errda
|
||||
}
|
||||
if hero == nil {
|
||||
hero = &pb.DBHero{
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
Uid: session.GetUserId(),
|
||||
HeroID: conf.Hid,
|
||||
Star: conf.Star,
|
||||
Lv: conf.Star * 10,
|
||||
Property: make(map[int32]int32),
|
||||
AddProperty: make(map[int32]int32),
|
||||
JuexProperty: make(map[int32]int32),
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
Uid: session.GetUserId(),
|
||||
HeroID: conf.Hid,
|
||||
Star: conf.Star,
|
||||
Lv: conf.Star * 10,
|
||||
Property: make(map[int32]int32),
|
||||
AddProperty: make(map[int32]int32),
|
||||
JuexProperty: make(map[int32]int32),
|
||||
TalentProperty: make(map[int32]int32),
|
||||
HoroscopeProperty: make(map[int32]int32),
|
||||
Fetters: make(map[int32]int32),
|
||||
}
|
||||
this.module.hero.GetVirtualHero(hero, hero.Lv)
|
||||
this.module.modelhero.addheros(session.GetUserId(), hero)
|
||||
|
Loading…
Reference in New Issue
Block a user