打造一次升多级情况
This commit is contained in:
parent
d0fed35a83
commit
72867cea6e
@ -237,7 +237,9 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
||||
stove.Data[req.ReelId].Value += req.Count
|
||||
stove.Forge[req.ReelId] += req.Count
|
||||
|
||||
// 可能存在一次升多级的情况
|
||||
// 检查是否提升了熟练度等级
|
||||
for {
|
||||
nextProficiency := this.module.configure.GetSmithyProficileData(req.ReelId, stove.Data[req.ReelId].Lv+1)
|
||||
if nextProficiency != nil && nextProficiency.Proficiency <= stove.Data[req.ReelId].Value { // 提升熟练度
|
||||
stove.Data[req.ReelId].Lv += 1
|
||||
@ -259,7 +261,11 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
||||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
update["data"] = stove.Data
|
||||
|
||||
update["forge"] = stove.Forge // 打造次数
|
||||
|
Loading…
Reference in New Issue
Block a user