处理英雄合成
This commit is contained in:
parent
bddabe2f29
commit
5080f91b46
@ -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 (
|
||||||
|
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user