图鉴积分修改

This commit is contained in:
meixiongfeng 2023-03-30 18:21:06 +08:00
parent 88fb474863
commit 193a4e86ed
2 changed files with 6 additions and 5 deletions

View File

@ -216,9 +216,7 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
}
stove.Data[req.ReelId].Value += 1
stove.Forge[req.ReelId] += 1
update["data"] = stove.Data
update["forge"] = stove.Forge // 打造次数
this.module.modelStove.updateSmithyStove(session.GetUserId(), update)
// 检查是否提升了熟练度等级
nextProficiency := this.module.configure.GetSmithyProficileData(req.ReelId, stove.Data[req.ReelId].Lv+1)
@ -243,6 +241,9 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
}
}
}
update["data"] = stove.Data
update["forge"] = stove.Forge // 打造次数
rsp.Data = stove
session.SendMsg(string(this.module.GetType()), "forgeequip", rsp)
// 更新图鉴信息

View File

@ -70,7 +70,7 @@ func (this *Smithy) CheckActivateAtlasCollect(uid string, id string) {
atlas.Collect[id] = &pb.CollectData{
Id: id,
Score: atlasConf.AtlasScore,
Score: 0,
Time: configure.Now().Unix(),
Activate: false,
}
@ -88,7 +88,7 @@ func (this *Smithy) CheckActivateAtlasCollect(uid string, id string) {
if _, ok := atlas.Collect[id]; !ok {
atlas.Collect[id] = &pb.CollectData{
Id: id,
Score: atlasConf.AtlasScore,
Score: 0,
Time: configure.Now().Unix(),
Activate: false,
}
@ -106,7 +106,7 @@ func (this *Smithy) CheckActivateAtlasCollect(uid string, id string) {
if _, ok := list.Collect[id]; !ok {
list.Collect[id] = &pb.CollectData{
Id: id,
Score: atlasConf.AtlasScore,
Score: 0,
Time: configure.Now().Unix(),
Activate: false,
}