gm 发放特殊收藏品
This commit is contained in:
parent
d0881162ca
commit
d7f25831cd
@ -285,22 +285,27 @@ func (this *Smithy) GmProficiency(uid string) {
|
|||||||
// gm 新增图鉴信息
|
// gm 新增图鉴信息
|
||||||
func (this *Smithy) GmSmithyAtlas(session comm.IUserSession) {
|
func (this *Smithy) GmSmithyAtlas(session comm.IUserSession) {
|
||||||
var (
|
var (
|
||||||
res []*cfg.Gameatn
|
res []*cfg.Gameatn
|
||||||
|
szLibrary []string
|
||||||
)
|
)
|
||||||
|
|
||||||
conf := this.configure.GmGetAllAtlasConf()
|
conf := this.configure.GmGetAllAtlasConf()
|
||||||
for _, v := range conf {
|
for _, v := range conf {
|
||||||
|
if v.TypeId == 1 {
|
||||||
for _, v1 := range this.configure.GetAllEquipmentConfigure() {
|
for _, v1 := range this.configure.GetAllEquipmentConfigure() {
|
||||||
if v1.AtlasId == v.Id {
|
if v1.AtlasId == v.Id {
|
||||||
res = append(res, &cfg.Gameatn{
|
res = append(res, &cfg.Gameatn{
|
||||||
A: "equi",
|
A: "equi",
|
||||||
T: v1.Id,
|
T: v1.Id,
|
||||||
N: 1,
|
N: 1,
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else if v.TypeId == 2 {
|
||||||
|
szLibrary = append(szLibrary, v.Id)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if errdata, atno := this.DispenseAtno(session, res, true); errdata == nil {
|
if errdata, atno := this.DispenseAtno(session, res, true); errdata == nil {
|
||||||
@ -313,4 +318,10 @@ func (this *Smithy) GmSmithyAtlas(session comm.IUserSession) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(szLibrary) > 0 {
|
||||||
|
for _, v := range szLibrary {
|
||||||
|
this.CheckActivateAtlasCollect(session.GetUserId(), v)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user