铁匠铺顾客收购装备优化
This commit is contained in:
parent
700a2ce734
commit
3d3d2f117b
@ -267,7 +267,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 10008,
|
"id": 10008,
|
||||||
"scene": "leveldemo_fcamer_1_8",
|
"scene": "leveldemo_fcamer_dragoncave",
|
||||||
"levelname": "Save the holy tree",
|
"levelname": "Save the holy tree",
|
||||||
"maintask": [
|
"maintask": [
|
||||||
11187001
|
11187001
|
||||||
|
@ -43,7 +43,13 @@
|
|||||||
"exp": 200,
|
"exp": 200,
|
||||||
"time": 1,
|
"time": 1,
|
||||||
"cd": 0,
|
"cd": 0,
|
||||||
"deplete": [],
|
"deplete": [
|
||||||
|
{
|
||||||
|
"a": "item",
|
||||||
|
"t": "24012001",
|
||||||
|
"n": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
"bubble": 14005,
|
"bubble": 14005,
|
||||||
"group": 0
|
"group": 0
|
||||||
},
|
},
|
||||||
@ -91,7 +97,13 @@
|
|||||||
"exp": 300,
|
"exp": 300,
|
||||||
"time": 1,
|
"time": 1,
|
||||||
"cd": 0,
|
"cd": 0,
|
||||||
"deplete": [],
|
"deplete": [
|
||||||
|
{
|
||||||
|
"a": "item",
|
||||||
|
"t": "24012002",
|
||||||
|
"n": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
"bubble": 14005,
|
"bubble": 14005,
|
||||||
"group": 0
|
"group": 0
|
||||||
},
|
},
|
||||||
|
@ -11,10 +11,6 @@
|
|||||||
"k": 2,
|
"k": 2,
|
||||||
"v": 3
|
"v": 3
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"k": 4,
|
|
||||||
"v": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"k": 4,
|
"k": 4,
|
||||||
"v": 4
|
"v": 4
|
||||||
|
@ -428,5 +428,15 @@
|
|||||||
},
|
},
|
||||||
"data": " ",
|
"data": " ",
|
||||||
"prefix": "bingo:opencond"
|
"prefix": "bingo:opencond"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 46,
|
||||||
|
"type": 4,
|
||||||
|
"text": {
|
||||||
|
"key": "GM_GM_text_46",
|
||||||
|
"text": "武馆"
|
||||||
|
},
|
||||||
|
"data": "137",
|
||||||
|
"prefix": ""
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -19809,7 +19809,7 @@
|
|||||||
"access": [],
|
"access": [],
|
||||||
"use_skip": 0,
|
"use_skip": 0,
|
||||||
"upper_limit": 0,
|
"upper_limit": 0,
|
||||||
"img": "",
|
"img": "item_24012001",
|
||||||
"intr": {
|
"intr": {
|
||||||
"key": "item_item_intr_408",
|
"key": "item_item_intr_408",
|
||||||
"text": ""
|
"text": ""
|
||||||
@ -19855,7 +19855,7 @@
|
|||||||
"access": [],
|
"access": [],
|
||||||
"use_skip": 0,
|
"use_skip": 0,
|
||||||
"upper_limit": 0,
|
"upper_limit": 0,
|
||||||
"img": "",
|
"img": "item_24012002",
|
||||||
"intr": {
|
"intr": {
|
||||||
"key": "item_item_intr_409",
|
"key": "item_item_intr_409",
|
||||||
"text": ""
|
"text": ""
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -380,6 +380,7 @@
|
|||||||
"Levelid": 0,
|
"Levelid": 0,
|
||||||
"datas": [
|
"datas": [
|
||||||
"GameMain",
|
"GameMain",
|
||||||
|
"20020_熊猫_船甲板",
|
||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
@ -488,8 +489,8 @@
|
|||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
1,
|
||||||
10120
|
102
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
@ -531,8 +532,8 @@
|
|||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
1,
|
||||||
10140
|
103
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
@ -585,9 +586,13 @@
|
|||||||
"Levelid": 0,
|
"Levelid": 0,
|
||||||
"datas": [
|
"datas": [
|
||||||
"GameMain",
|
"GameMain",
|
||||||
|
"20020_熊猫_船甲板",
|
||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [],
|
"event": [
|
||||||
|
2,
|
||||||
|
10162
|
||||||
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -615,8 +620,8 @@
|
|||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
1,
|
||||||
10180
|
103
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
@ -626,12 +631,12 @@
|
|||||||
"Levelid": 0,
|
"Levelid": 0,
|
||||||
"datas": [
|
"datas": [
|
||||||
"GameMain",
|
"GameMain",
|
||||||
"20020_邦尼兔_常驻",
|
"20020_熊猫_船甲板",
|
||||||
"901"
|
"901"
|
||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
2,
|
||||||
10190
|
10180
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
@ -669,7 +674,7 @@
|
|||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
2,
|
||||||
10210
|
10201
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
@ -888,7 +893,7 @@
|
|||||||
],
|
],
|
||||||
"event": [
|
"event": [
|
||||||
2,
|
2,
|
||||||
10230
|
10202
|
||||||
],
|
],
|
||||||
"goto": 0
|
"goto": 0
|
||||||
},
|
},
|
||||||
|
@ -34170,7 +34170,7 @@
|
|||||||
{
|
{
|
||||||
"Id": 244001214,
|
"Id": 244001214,
|
||||||
"EmitPR": 1000,
|
"EmitPR": 1000,
|
||||||
"From": 2,
|
"From": 12,
|
||||||
"Where": [],
|
"Where": [],
|
||||||
"Order": "",
|
"Order": "",
|
||||||
"Limit": 1,
|
"Limit": 1,
|
||||||
|
@ -17564,7 +17564,7 @@
|
|||||||
{
|
{
|
||||||
"id": 133001111,
|
"id": 133001111,
|
||||||
"level": 1,
|
"level": 1,
|
||||||
"MaxLV": 1,
|
"MaxLV": 5,
|
||||||
"UnavailablePlayTypes": [],
|
"UnavailablePlayTypes": [],
|
||||||
"Name": {
|
"Name": {
|
||||||
"key": "skill_skill_atk_Name_133001111",
|
"key": "skill_skill_atk_Name_133001111",
|
||||||
@ -17813,8 +17813,7 @@
|
|||||||
"text": "巫嘎对敌方1个目标造成攻击力300%的伤害,并附加1回合[color=#e5621b]冰冻[/color]状态。"
|
"text": "巫嘎对敌方1个目标造成攻击力300%的伤害,并附加1回合[color=#e5621b]冰冻[/color]状态。"
|
||||||
},
|
},
|
||||||
"buffid": [
|
"buffid": [
|
||||||
390001106,
|
390001106
|
||||||
390001007
|
|
||||||
],
|
],
|
||||||
"map": ""
|
"map": ""
|
||||||
},
|
},
|
||||||
@ -17846,8 +17845,7 @@
|
|||||||
"text": "伤害提升至310%。"
|
"text": "伤害提升至310%。"
|
||||||
},
|
},
|
||||||
"buffid": [
|
"buffid": [
|
||||||
390001106,
|
390001106
|
||||||
390001007
|
|
||||||
],
|
],
|
||||||
"map": ""
|
"map": ""
|
||||||
},
|
},
|
||||||
@ -17879,8 +17877,7 @@
|
|||||||
"text": "伤害提升至320%。"
|
"text": "伤害提升至320%。"
|
||||||
},
|
},
|
||||||
"buffid": [
|
"buffid": [
|
||||||
390001106,
|
390001106
|
||||||
390001007
|
|
||||||
],
|
],
|
||||||
"map": ""
|
"map": ""
|
||||||
},
|
},
|
||||||
@ -17912,8 +17909,7 @@
|
|||||||
"text": "伤害提升至330%。"
|
"text": "伤害提升至330%。"
|
||||||
},
|
},
|
||||||
"buffid": [
|
"buffid": [
|
||||||
390001106,
|
390001106
|
||||||
390001007
|
|
||||||
],
|
],
|
||||||
"map": ""
|
"map": ""
|
||||||
},
|
},
|
||||||
@ -17945,8 +17941,7 @@
|
|||||||
"text": "伤害提升至340%。"
|
"text": "伤害提升至340%。"
|
||||||
},
|
},
|
||||||
"buffid": [
|
"buffid": [
|
||||||
390001106,
|
390001106
|
||||||
390001007
|
|
||||||
],
|
],
|
||||||
"map": ""
|
"map": ""
|
||||||
},
|
},
|
||||||
|
@ -3764,7 +3764,7 @@
|
|||||||
},
|
},
|
||||||
"Desc": {
|
"Desc": {
|
||||||
"key": "skill_skill_buff_Desc_390001431",
|
"key": "skill_skill_buff_Desc_390001431",
|
||||||
"text": "下一次攻击暴击率提升100%。"
|
"text": "下一次攻击暴击率提升100%,并提高一定暴击伤害。"
|
||||||
},
|
},
|
||||||
"BuffType": 67,
|
"BuffType": 67,
|
||||||
"EffectArgu": [
|
"EffectArgu": [
|
||||||
|
@ -2678,7 +2678,7 @@
|
|||||||
"Id": 435004211,
|
"Id": 435004211,
|
||||||
"When": 2,
|
"When": 2,
|
||||||
"FromCheck": "Target=3",
|
"FromCheck": "Target=3",
|
||||||
"TargetCheck": "3",
|
"TargetCheck": "",
|
||||||
"MainSkillCheck": "",
|
"MainSkillCheck": "",
|
||||||
"AfterSkillCheck": "",
|
"AfterSkillCheck": "",
|
||||||
"BuffCheck": "",
|
"BuffCheck": "",
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
"completetask": [
|
"completetask": [
|
||||||
12070020
|
12070020
|
||||||
],
|
],
|
||||||
"deliver_npc": 100108,
|
"deliver_npc": 0,
|
||||||
"taskend_removeitem": [],
|
"taskend_removeitem": [],
|
||||||
"auto_accept": 0,
|
"auto_accept": 0,
|
||||||
"tasktips": 0,
|
"tasktips": 0,
|
||||||
|
@ -41,15 +41,7 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
conf, err := this.module.configure.GetSmithyCustomerConf(1)
|
||||||
if _, ok := cus.Customers[req.CustomerId]; !ok {
|
|
||||||
errdata = &pb.ErrorData{
|
|
||||||
Code: pb.ErrorCode_ReqParameterError,
|
|
||||||
Title: pb.ErrorCode_ReqParameterError.ToString(),
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
conf, err := this.module.configure.GetSmithyCustomerConf(cus.Customers[req.CustomerId].CustomerId)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ConfigNoFound,
|
Code: pb.ErrorCode_ConfigNoFound,
|
||||||
@ -67,10 +59,10 @@ func (this *apiComp) Sell(session comm.IUserSession, req *pb.SmithySellReq) (err
|
|||||||
EquipIds: req.EquipIds,
|
EquipIds: req.EquipIds,
|
||||||
}
|
}
|
||||||
|
|
||||||
if cus != nil {
|
if len(cus.Customers) == 0 {
|
||||||
rsp.Customers = cus.Customers
|
|
||||||
} else {
|
|
||||||
rsp.Customers = make(map[string]*pb.CustomerInfo)
|
rsp.Customers = make(map[string]*pb.CustomerInfo)
|
||||||
|
} else {
|
||||||
|
rsp.Customers = cus.Customers
|
||||||
}
|
}
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), "sell", rsp)
|
session.SendMsg(string(this.module.GetType()), "sell", rsp)
|
||||||
|
@ -143,7 +143,17 @@ func (s *modelTrade) updateCustomer(uid string, customerId string) (*pb.DBCustom
|
|||||||
limit := s.module.modelStove.StoveSkillAddCustomer(uid)
|
limit := s.module.modelStove.StoveSkillAddCustomer(uid)
|
||||||
left := limit - cus.Total
|
left := limit - cus.Total
|
||||||
if left < 0 {
|
if left < 0 {
|
||||||
return nil, comm.NewCustomError(pb.ErrorCode_SmithyCustomerLimit)
|
left = 0
|
||||||
|
cus.LastRefreshTime = configure.Now().Unix()
|
||||||
|
update := map[string]interface{}{
|
||||||
|
"customers": cus.Customers,
|
||||||
|
"total": cus.Total,
|
||||||
|
"lastRefreshTime": cus.LastRefreshTime,
|
||||||
|
}
|
||||||
|
if err := s.Change(uid, update); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return cus, nil
|
||||||
}
|
}
|
||||||
randCustomerId := s.getCustomerRandom()
|
randCustomerId := s.getCustomerRandom()
|
||||||
conf, err := s.module.configure.GetSmithyCustomerConf(randCustomerId)
|
conf, err := s.module.configure.GetSmithyCustomerConf(randCustomerId)
|
||||||
|
Loading…
Reference in New Issue
Block a user