打造装备监听图鉴数据变化
This commit is contained in:
parent
8a507cda02
commit
d2c10c8253
@ -124,7 +124,7 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
||||
|
||||
// 检查是否提升了熟练度等级
|
||||
nextProficiency := this.module.configure.GetSmithyProficileData(req.ReelId, stove.Data[req.ReelId].Lv+1)
|
||||
if nextProficiency != nil && nextProficiency.Proficiency >= stove.Data[req.ReelId].Value { // 提升熟练度
|
||||
if nextProficiency != nil && nextProficiency.Proficiency <= stove.Data[req.ReelId].Value { // 提升熟练度
|
||||
stove.Data[req.ReelId].Lv += 1
|
||||
stove.Data[req.ReelId].Value = 0
|
||||
// 校验是否解锁了新的图纸
|
||||
@ -179,5 +179,12 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
||||
this.module.modelStove.updateSmithyStove(session.GetUserId(), update)
|
||||
rsp.Data = stove
|
||||
session.SendMsg(string(this.module.GetType()), "forgeequip", rsp)
|
||||
// 更新图鉴信息
|
||||
for _, v := range rsp.Equip {
|
||||
if equipConf := this.module.configure.GetEquipmentConfigureById(v.CId); equipConf != nil { // 获取装备等级
|
||||
this.module.modelAtlas.CheckActivateAtlas(session.GetUserId(), v.CId, equipConf.Star, int32(len(v.AdverbEntry)), stove.Forge[req.ReelId])
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -50,7 +50,6 @@ func (this *modelAtlas) modifySmithyAtlasList(uid string, data map[string]interf
|
||||
}
|
||||
|
||||
// 检查是否激活图鉴
|
||||
|
||||
func (this *modelAtlas) CheckActivateAtlas(uid string, id string, lv int32, quality int32, forgeCount int32) bool {
|
||||
atlasConf := this.module.configure.GetSmithyAtlasConf(id)
|
||||
if atlasConf == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user