版署同步 铁匠铺收藏品gm

This commit is contained in:
meixiongfeng 2023-08-22 14:09:46 +08:00
parent 9c4659a4eb
commit 9653574bfa

View File

@ -177,11 +177,12 @@ func (this *Smithy) GmProficiency(uid string) {
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{
@ -192,6 +193,10 @@ func (this *Smithy) GmSmithyAtlas(session comm.IUserSession) {
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 {
@ -202,7 +207,11 @@ func (this *Smithy) GmSmithyAtlas(session comm.IUserSession) {
this.modelAtlas.CheckActivateEquipAtlas(session.GetUserId(), []*pb.DB_Equipment{equip}, 1) this.modelAtlas.CheckActivateEquipAtlas(session.GetUserId(), []*pb.DB_Equipment{equip}, 1)
} }
} }
} }
if len(szLibrary) > 0 {
for _, v := range szLibrary {
this.CheckActivateAtlasCollect(session.GetUserId(), v)
}
}
} }