处理英雄合成

This commit is contained in:
liwei1dao 2023-08-18 18:41:50 +08:00
parent bddabe2f29
commit 5080f91b46
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ const (
itemuse_optionalbox int32 = 4 //自选宝箱 itemuse_optionalbox int32 = 4 //自选宝箱
itemuse_randombox int32 = 5 //随机宝箱 itemuse_randombox int32 = 5 //随机宝箱
itemuse_staminapotion int32 = 6 //体力药剂使用 itemuse_staminapotion int32 = 6 //体力药剂使用
itemuse_heroexchange int32 = 7 //英雄碎片合成
) )
var ( var (

View File

@ -627,7 +627,7 @@ func (this *ModelItemsComp) useitem(session comm.IUserSession, gid string, amoun
return return
} }
switch itemcf.Usetype { switch itemcf.Usetype {
case itemuse_exchange: //合成/分解 case itemuse_exchange, itemuse_heroexchange: //合成/分解
if slt == 0 { // 合成 if slt == 0 { // 合成
if itemcf.SynthetizeGet == nil || len(itemcf.SynthetizeGet) == 0 { if itemcf.SynthetizeGet == nil || len(itemcf.SynthetizeGet) == 0 {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{