初始默认给坐骑
This commit is contained in:
parent
83e76c2bd5
commit
08c6070abc
@ -734,6 +734,7 @@
|
||||
"k": 9,
|
||||
"v": 500
|
||||
}
|
||||
]
|
||||
],
|
||||
"mounts": "20030001"
|
||||
}
|
||||
]
|
@ -156,6 +156,8 @@ func (this *ModelParkourComp) queryinfo(uid string) (result *pb.DBParkour, err e
|
||||
Invite: make([]*pb.DBRaceInvite, 0),
|
||||
Member: []*pb.DBRaceMember{},
|
||||
}
|
||||
mid := this.module.ModuleTools.GetGlobalConf().Mounts
|
||||
result.Mounts[mid] = 1
|
||||
if err = this.Add(uid, result); err != nil {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
@ -190,6 +192,8 @@ func (this *ModelParkourComp) queryinfos(uids []string) (results []*pb.DBParkour
|
||||
Invite: make([]*pb.DBRaceInvite, 0),
|
||||
Member: []*pb.DBRaceMember{},
|
||||
}
|
||||
mid := this.module.ModuleTools.GetGlobalConf().Mounts // 默认坐骑
|
||||
temp.Mounts[mid] = 1
|
||||
newdata[v] = temp
|
||||
}
|
||||
if err = this.Adds(newdata); err != nil {
|
||||
@ -228,7 +232,8 @@ func (this *ModelParkourComp) addUserMounts(uid string, mounts map[string]int32)
|
||||
Mounts: make(map[string]int32),
|
||||
Member: []*pb.DBRaceMember{},
|
||||
}
|
||||
|
||||
mid := this.module.ModuleTools.GetGlobalConf().Mounts
|
||||
result.Mounts[mid] = 1
|
||||
for k, _ := range mounts {
|
||||
result.Mounts[k] = 0
|
||||
if result.Dfmount == "" {
|
||||
|
@ -223,6 +223,7 @@ type GameGlobalData struct {
|
||||
BuzkashiFintegral []*Gameatn
|
||||
BuzkashiResurrection int32
|
||||
FavorabilityAttenuation []*Gamekv
|
||||
Mounts string
|
||||
}
|
||||
|
||||
const TypeId_GameGlobalData = 477542761
|
||||
@ -925,6 +926,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
{ var _ok_ bool; if _v.Mounts, _ok_ = _buf["mounts"].(string); !_ok_ { err = errors.New("mounts error"); return } }
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user