更新初始值

This commit is contained in:
wh_zcy 2023-01-03 16:03:10 +08:00
parent 01166edda0
commit 6d7545c8c7

View File

@ -49,11 +49,19 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (c
return
}
//初始体力
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, //设置初始体力
}
globalConf := this.module.globalConf