调整用户初始体力值
This commit is contained in:
parent
76952788c8
commit
2a2f482a59
@ -66,18 +66,18 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e
|
||||
}
|
||||
|
||||
//初始体力
|
||||
var ps int32
|
||||
gpd := this.module.configure.GetPlayerlvConf(self.Lv)
|
||||
if gpd != nil {
|
||||
ps = gpd.PsCeiling
|
||||
}
|
||||
// var ps int32
|
||||
// gpd := this.module.configure.GetPlayerlvConf(self.Lv)
|
||||
// if gpd != nil {
|
||||
// ps = gpd.PsCeiling
|
||||
// }
|
||||
|
||||
update := map[string]interface{}{
|
||||
"name": req.NickName, //设置昵称
|
||||
"created": true, //创角标识
|
||||
"figure": req.Figure, //设置形象
|
||||
"gender": req.Gender, //设置性别
|
||||
"ps": ps, //设置初始体力
|
||||
"ps": 0, //设置初始体力 调整未0 由策划初始表发放
|
||||
"caravanlv": 1,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user