修复魔药消耗

This commit is contained in:
liwei1dao 2023-04-11 15:23:09 +08:00
parent 6bda6b237d
commit f67ff3de1e

View File

@ -34,7 +34,7 @@ func (this *apiComp) PotionSynthesis(session comm.IUserSession, req *pb.ItemsPot
N: v.N * req.Num, N: v.N * req.Num,
} }
} }
if code = this.module.ConsumeRes(session, configure.Material, true); code != pb.ErrorCode_Success { if code = this.module.ConsumeRes(session, need, true); code != pb.ErrorCode_Success {
return return
} }
give = make([]*cfg.Gameatn, 0) give = make([]*cfg.Gameatn, 0)