熟练度升级后不清零
This commit is contained in:
parent
b47afba64e
commit
ab5361f606
@ -221,7 +221,7 @@ func (this *apiComp) ForgeEquip(session comm.IUserSession, req *pb.SmithyForgeEq
|
|||||||
nextProficiency := this.module.configure.GetSmithyProficileData(req.ReelId, stove.Data[req.ReelId].Lv+1)
|
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].Lv += 1
|
||||||
stove.Data[req.ReelId].Value = 0
|
|
||||||
// 校验是否解锁了新的图纸
|
// 校验是否解锁了新的图纸
|
||||||
if nextProficiency.Type == comm.SmithyReelType3 {
|
if nextProficiency.Type == comm.SmithyReelType3 {
|
||||||
stove.Data[nextProficiency.Value1] = &pb.Mastery{
|
stove.Data[nextProficiency.Value1] = &pb.Mastery{
|
||||||
|
Loading…
Reference in New Issue
Block a user