坐骑属性
This commit is contained in:
parent
13c4c39db6
commit
040c5c969e
@ -108,6 +108,21 @@ func (this *ModelDragon) CreateDragon(session comm.IUserSession, dragons map[str
|
|||||||
Play: map[int32]int32{},
|
Play: map[int32]int32{},
|
||||||
Rtime: 0,
|
Rtime: 0,
|
||||||
}
|
}
|
||||||
|
if conf, err := this.module.configure.GetDragonConfById(dragonCfgId, lv); err == nil {
|
||||||
|
if c, err := this.module.configure.GetDragonMount(dragonCfgId, conf.Type); err == nil {
|
||||||
|
dragon.Property["stime"] = c.Stime
|
||||||
|
dragon.Property["etime"] = c.Etime
|
||||||
|
dragon.Property["hp"] = c.Hp
|
||||||
|
dragon.Property["moderate"] = c.Moderate
|
||||||
|
dragon.Property["sprint"] = c.Sprint
|
||||||
|
dragon.Property["acceleration"] = c.Acceleration
|
||||||
|
dragon.Property["deceleration"] = c.Deceleration
|
||||||
|
dragon.Property["itemsprint"] = c.Itemsprint
|
||||||
|
dragon.Property["caddtime"] = c.Caddtime
|
||||||
|
dragon.Property["csubtime"] = c.Csubtime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if dbModel != nil {
|
if dbModel != nil {
|
||||||
if dbModel, err1 := this.module.GetDBModelByUid(uid, this.TableName); err1 == nil {
|
if dbModel, err1 := this.module.GetDBModelByUid(uid, this.TableName); err1 == nil {
|
||||||
err = dbModel.AddList(uid, dragonCfgId, dragon)
|
err = dbModel.AddList(uid, dragonCfgId, dragon)
|
||||||
|
Loading…
Reference in New Issue
Block a user