diff --git a/bin/json/game_item.json b/bin/json/game_item.json index 1dcd289cb..7b8adede8 100644 --- a/bin/json/game_item.json +++ b/bin/json/game_item.json @@ -10854,7 +10854,7 @@ "reddottype": 0, "effects": "effect_ui_bagwindow_2", "modelName": "", - "box_id": 17111960, + "box_id": 17111040, "synthetize_num": 0, "synthetize_deplete": [], "synthetize_get": [], @@ -10887,7 +10887,7 @@ "reddottype": 0, "effects": "effect_ui_bagwindow_2", "modelName": "", - "box_id": 17111860, + "box_id": 17111040, "synthetize_num": 0, "synthetize_deplete": [], "synthetize_get": [], @@ -10920,7 +10920,7 @@ "reddottype": 0, "effects": "effect_ui_bagwindow_2", "modelName": "", - "box_id": 17111860, + "box_id": 17111040, "synthetize_num": 0, "synthetize_deplete": [], "synthetize_get": [], diff --git a/bin/json/game_opencond.json b/bin/json/game_opencond.json index 5ebcbced2..6965b18e0 100644 --- a/bin/json/game_opencond.json +++ b/bin/json/game_opencond.json @@ -606,7 +606,7 @@ "main": [ { "key": 1, - "param": 1 + "param": 9999 } ], "wkqbx": 2, @@ -1532,7 +1532,7 @@ "main": [ { "key": 1, - "param": 10 + "param": 6 } ], "wkqbx": 0, @@ -1557,7 +1557,7 @@ "main": [ { "key": 1, - "param": 20 + "param": 10 } ], "wkqbx": 0, diff --git a/bin/json/game_pandamasjs.json b/bin/json/game_pandamasjs.json index c34358f4b..205a89520 100644 --- a/bin/json/game_pandamasjs.json +++ b/bin/json/game_pandamasjs.json @@ -4,7 +4,7 @@ "unlock_condition": 20010, "unlock_conditiondes": { "key": "pandamas_pandamas_js_unlock_conditiondes_1", - "text": "完成主线任务“这是哪里”后解锁" + "text": "等级1解锁" } }, { @@ -12,7 +12,7 @@ "unlock_condition": 20010, "unlock_conditiondes": { "key": "pandamas_pandamas_js_unlock_conditiondes_2", - "text": "完成主线任务“初来乍到”后解锁" + "text": "等级6解锁" } }, { @@ -20,7 +20,7 @@ "unlock_condition": 20020, "unlock_conditiondes": { "key": "pandamas_pandamas_js_unlock_conditiondes_3", - "text": "完成主线任务“事件开端”后解锁" + "text": "等级10解锁" } } ] \ No newline at end of file diff --git a/modules/equipment/modelEquipment.go b/modules/equipment/modelEquipment.go index 9fc6ec7d4..a584c747c 100644 --- a/modules/equipment/modelEquipment.go +++ b/modules/equipment/modelEquipment.go @@ -131,6 +131,9 @@ func (this *modelEquipmentComp) AddEquipments(session comm.IUserSession, cIds ma change = append(change, equipment) } } + } else { + //err = fmt.Errorf("cfg.Game_equipment not found equip id %s", k) // 太多地方配置无效装备 这地方暂时只打印错误日志 + this.module.Errorf("cfg.Game_equipment not found equip id %s", k) } } diff --git a/modules/user/module.go b/modules/user/module.go index 29c563519..59582ebe1 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -536,23 +536,13 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha } return } - //体力消耗,增加玩家经验 - // exp := int32(math.Abs(float64(add))) * ggd.FightPs - // user.Exp += int64(exp) - } - - if change.Ps >= ggd.PsUl { - errdata = &pb.ErrorData{ - Code: pb.ErrorCode_UserVitLimit, - Title: pb.ErrorCode_UserVitLimit.ToString(), + } else { + change.Ps += add + if change.Ps > ggd.PsUl { + change.Ps = ggd.PsUl } + } - return - } - change.Ps += add - if change.Ps > ggd.PsUl { - change.Ps = ggd.PsUl - } case comm.Talent1: if add < 0 { if user.Talent1+add < 0 {