From 001f3a942c928fbbc6d09a000e8076af1bd67416 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 24 Jan 2024 19:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A0=E5=A4=BA=E6=88=98=E6=8A=A5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_buriedtype.json | 45 +++++++++ bin/json/game_global.json | 4 +- bin/json/game_mainchapter.json | 4 +- bin/json/game_opencond.json | 25 +++++ bin/json/game_skillatk.json | 168 +++++++++----------------------- modules/integral/api_achieve.go | 24 +++-- modules/plunder/api_record.go | 43 ++++++++ modules/plunder/api_unlock.go | 2 +- sys/configure/structs/Tables.go | 14 +-- 9 files changed, 188 insertions(+), 141 deletions(-) create mode 100644 modules/plunder/api_record.go diff --git a/bin/json/game_buriedtype.json b/bin/json/game_buriedtype.json index 36f45be0b..cbd3839ff 100644 --- a/bin/json/game_buriedtype.json +++ b/bin/json/game_buriedtype.json @@ -1479,5 +1479,50 @@ "id": 253, "insert": 1, "filter": [] + }, + { + "id": 254, + "insert": 1, + "filter": [ + "eq" + ] + }, + { + "id": 255, + "insert": 2, + "filter": [ + "eq" + ] + }, + { + "id": 256, + "insert": 1, + "filter": [ + "eq", + "gte" + ] + }, + { + "id": 257, + "insert": 2, + "filter": [ + "gte" + ] + }, + { + "id": 258, + "insert": 2, + "filter": [ + "eq", + "gte" + ] + }, + { + "id": 259, + "insert": 3, + "filter": [ + "eq", + "eq" + ] } ] \ No newline at end of file diff --git a/bin/json/game_global.json b/bin/json/game_global.json index cec4fae93..c0e5f2a21 100644 --- a/bin/json/game_global.json +++ b/bin/json/game_global.json @@ -790,8 +790,8 @@ "enhanceboss_ps": 10, "plunder_pvp_battlereadyid": 105, "plunder_pvp_college_num": { - "a": "attr", - "t": "plundercollege", + "a": "item", + "t": "30000001", "n": 400 }, "plunder_pvp_college_time": 7, diff --git a/bin/json/game_mainchapter.json b/bin/json/game_mainchapter.json index af5eeb350..84ba947a9 100644 --- a/bin/json/game_mainchapter.json +++ b/bin/json/game_mainchapter.json @@ -145,7 +145,7 @@ "key": "mainchapter_main_chapter_describe_3", "text": "探索罪恶都市,完成拼图。每一块拼图完成都有神秘奖励!拼图集齐后可以获得美肚鲨!" }, - "achunlock": 11001001, + "achunlock": 11003005, "venturecurrency": [ { "a": "item", @@ -190,7 +190,7 @@ "key": "mainchapter_main_chapter_describe_4", "text": "探索精灵王国,完成拼图。每一块拼图完成都有神秘奖励!拼图集齐后可以获得穿靴子的猫!" }, - "achunlock": 11001001, + "achunlock": 11004005, "venturecurrency": [ { "a": "item", diff --git a/bin/json/game_opencond.json b/bin/json/game_opencond.json index 401bf2b6c..c58933a22 100644 --- a/bin/json/game_opencond.json +++ b/bin/json/game_opencond.json @@ -3006,5 +3006,30 @@ "key": "opencond_opencond_kqbx_text_115", "text": "是否加入工会功能开启" } + }, + { + "id": "playersyn", + "name": { + "key": "opencond_opencond_name_116", + "text": "多人同屏" + }, + "opencondi": [ + 18000042 + ], + "wkqbx": 0, + "img": "", + "prompt": { + "key": "", + "text": "" + }, + "uiid": 0, + "activateType": false, + "notify": [], + "kqbx": false, + "kqbx_ui": "", + "kqbx_text": { + "key": "", + "text": "" + } } ] \ No newline at end of file diff --git a/bin/json/game_skillatk.json b/bin/json/game_skillatk.json index 044026ea0..6cf641306 100644 --- a/bin/json/game_skillatk.json +++ b/bin/json/game_skillatk.json @@ -30050,124 +30050,7 @@ { "id": 123003311, "level": 1, - "MaxLV": 5, - "UnavailablePlayTypes": [], - "SkillFlag": 4, - "EffectFlag": 10, - "Priority": 3, - "Name": { - "key": "skill_skill_atk_Name_123003311", - "text": "向死而生" - }, - "ico": "jn_23003_3", - "CorrectPos": 0, - "IsMelee": 0, - "act": "Skill_3", - "Type": 1, - "CD": 8, - "Where": [], - "Target": 1, - "ChildSkill": { - "Id": [ - 223003315, - 223003316 - ] - }, - "passSkill": [ - 223003316 - ], - "Desc": { - "key": "skill_skill_atk_Desc_123003311_1", - "text": "黛塔黛恩为己方1个目标附加2回合[color=#37d8a9]攻击提升[/color],若目标身上已有攻击提升则附加1回合[color=#37d8a9]暴击伤害提升[/color]。" - }, - "buffid": [ - 390001457, - 390001001 - ], - "map": "" - }, - { - "id": 123003311, - "level": 2, - "MaxLV": 5, - "UnavailablePlayTypes": [], - "SkillFlag": 4, - "EffectFlag": 10, - "Priority": 3, - "Name": { - "key": "skill_skill_atk_Name_123003311", - "text": "向死而生" - }, - "ico": "jn_23003_3", - "CorrectPos": 0, - "IsMelee": 0, - "act": "Skill_3", - "Type": 1, - "CD": 7, - "Where": [], - "Target": 1, - "ChildSkill": { - "Id": [ - 223003315, - 223003316 - ] - }, - "passSkill": [ - 223003316 - ], - "Desc": { - "key": "skill_skill_atk_Desc_123003311_2", - "text": "冷却时间减少1回合。" - }, - "buffid": [ - 390001457, - 390001001 - ], - "map": "" - }, - { - "id": 123003311, - "level": 3, - "MaxLV": 5, - "UnavailablePlayTypes": [], - "SkillFlag": 4, - "EffectFlag": 10, - "Priority": 3, - "Name": { - "key": "skill_skill_atk_Name_123003311", - "text": "向死而生" - }, - "ico": "jn_23003_3", - "CorrectPos": 0, - "IsMelee": 0, - "act": "Skill_3", - "Type": 1, - "CD": 6, - "Where": [], - "Target": 1, - "ChildSkill": { - "Id": [ - 223003315, - 223003316 - ] - }, - "passSkill": [ - 223003316 - ], - "Desc": { - "key": "skill_skill_atk_Desc_123003311_3", - "text": "冷却时间减少1回合。" - }, - "buffid": [ - 390001457, - 390001001 - ], - "map": "" - }, - { - "id": 123003311, - "level": 4, - "MaxLV": 5, + "MaxLV": 3, "UnavailablePlayTypes": [], "SkillFlag": 4, "EffectFlag": 10, @@ -30194,8 +30077,8 @@ 223003316 ], "Desc": { - "key": "skill_skill_atk_Desc_123003311_4", - "text": "冷却时间减少1回合。" + "key": "skill_skill_atk_Desc_123003311_1", + "text": "黛塔黛恩为己方1个目标附加2回合[color=#37d8a9]攻击提升[/color],若目标身上已有攻击提升则附加1回合[color=#37d8a9]暴击伤害提升[/color]。" }, "buffid": [ 390001457, @@ -30205,8 +30088,8 @@ }, { "id": 123003311, - "level": 5, - "MaxLV": 5, + "level": 2, + "MaxLV": 3, "UnavailablePlayTypes": [], "SkillFlag": 4, "EffectFlag": 10, @@ -30233,7 +30116,46 @@ 223003316 ], "Desc": { - "key": "skill_skill_atk_Desc_123003311_5", + "key": "skill_skill_atk_Desc_123003311_2", + "text": "冷却时间减少1回合。" + }, + "buffid": [ + 390001457, + 390001001 + ], + "map": "" + }, + { + "id": 123003311, + "level": 3, + "MaxLV": 3, + "UnavailablePlayTypes": [], + "SkillFlag": 4, + "EffectFlag": 10, + "Priority": 3, + "Name": { + "key": "skill_skill_atk_Name_123003311", + "text": "向死而生" + }, + "ico": "jn_23003_3", + "CorrectPos": 0, + "IsMelee": 0, + "act": "Skill_3", + "Type": 1, + "CD": 3, + "Where": [], + "Target": 1, + "ChildSkill": { + "Id": [ + 223003315, + 223003316 + ] + }, + "passSkill": [ + 223003316 + ], + "Desc": { + "key": "skill_skill_atk_Desc_123003311_3", "text": "冷却时间减少1回合。" }, "buffid": [ diff --git a/modules/integral/api_achieve.go b/modules/integral/api_achieve.go index 14cc97ba9..75813500e 100644 --- a/modules/integral/api_achieve.go +++ b/modules/integral/api_achieve.go @@ -15,11 +15,13 @@ func (this *apiComp) GetAchieveCheck(session comm.IUserSession, req *pb.Integral func (this *apiComp) GetAchieve(session comm.IUserSession, req *pb.IntegralGetAchieveReq) (errdata *pb.ErrorData) { var ( - list *pb.DBIntegralBoss - err error - conf *cfg.GameIntegralAchieveData - atno []*pb.UserAtno + list *pb.DBIntegralBoss + err error + conf *cfg.GameIntegralAchieveData + atno []*pb.UserAtno + update map[string]interface{} ) + update = make(map[string]interface{}) list, err = this.module.modelIntegral.getIntegralList(session) if err != nil { errdata = &pb.ErrorData{ @@ -36,7 +38,7 @@ func (this *apiComp) GetAchieve(session comm.IUserSession, req *pb.IntegralGetAc } return } - if _, ok := list.Achieve[req.Id]; ok { + if _, ok := list.Achieve[req.Id]; ok { // 重复激活 errdata = &pb.ErrorData{ Code: pb.ErrorCode_TntegralRepleteAchive, Title: pb.ErrorCode_TntegralRepleteAchive.ToString(), @@ -44,7 +46,7 @@ func (this *apiComp) GetAchieve(session comm.IUserSession, req *pb.IntegralGetAc } return } - if conf.Taskid != 0 { + if conf.Taskid != 0 { // 校验任务 if ok, _, err := this.module.ModuleBuried.CheckCondition(session, conf.Taskid); !ok || err != nil { errdata = &pb.ErrorData{ Code: pb.ErrorCode_TaskNoFinished, @@ -53,6 +55,16 @@ func (this *apiComp) GetAchieve(session comm.IUserSession, req *pb.IntegralGetAc } } } + list.Achieve[req.Id] = 1 + update["achieve"] = list.Achieve // 更新数据 + if err = this.module.modelIntegral.modifyIntegralData(session.GetUserId(), update); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Title: pb.ErrorCode_DBError.ToString(), + Message: err.Error(), + } + return + } session.SendMsg(string(this.module.GetType()), "getachieve", &pb.IntegralGetAchieveResp{ Achieve: list.Achieve, Award: atno, diff --git a/modules/plunder/api_record.go b/modules/plunder/api_record.go new file mode 100644 index 000000000..5650af847 --- /dev/null +++ b/modules/plunder/api_record.go @@ -0,0 +1,43 @@ +package plunder + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" +) + +func (this *apiComp) RecordCheck(session comm.IUserSession, req *pb.PlunderRecordReq) (errdata *pb.ErrorData) { + return +} + +// 获取基本信息 +func (this *apiComp) Record(session comm.IUserSession, req *pb.PlunderRecordReq) (errdata *pb.ErrorData) { + var ( + err error + info *pb.DBPlunderRecord + list *pb.DBPlunder + ) + if errdata = this.RecordCheck(session, req); errdata != nil { + return + } + if list, err = this.module.modelPlunder.getPlunderData(session.GetUserId()); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Message: err.Error(), + } + return + } + + if info, err = this.module.modelRecord.getPlunderRecordData(list.Landid); err != nil { + errdata = &pb.ErrorData{ + Code: pb.ErrorCode_DBError, + Message: err.Error(), + } + return + } + + session.SendMsg(string(this.module.GetType()), "getlist", &pb.PlunderRecordResp{ + Info: info, + }) + + return +} diff --git a/modules/plunder/api_unlock.go b/modules/plunder/api_unlock.go index 1930475c7..8e2601c60 100644 --- a/modules/plunder/api_unlock.go +++ b/modules/plunder/api_unlock.go @@ -28,7 +28,7 @@ func (this *apiComp) Unlock(session comm.IUserSession, req *pb.PlunderUnlockReq) } return } - if int32(len(list.Line)) >= req.Pos { + if int32(len(list.Line)) <= req.Pos { errdata = &pb.ErrorData{ Code: pb.ErrorCode_ReqParameterError, Title: pb.ErrorCode_ReqParameterError.ToString(), diff --git a/sys/configure/structs/Tables.go b/sys/configure/structs/Tables.go index b0157afa9..509d68329 100644 --- a/sys/configure/structs/Tables.go +++ b/sys/configure/structs/Tables.go @@ -331,7 +331,6 @@ type Tables struct { IntegralBoss *GameIntegralBoss IntegralReward *GameIntegralReward IntegralCondition *GameIntegralCondition - IntegralAchieve *GameIntegralAchieve IntegralBuff *GameIntegralBuff IntegralTime *GameIntegralTime Restore *GameRestore @@ -353,6 +352,7 @@ type Tables struct { SystemChatText *GameSystemChatText SystemStroyTalk *GameSystemStroyTalk ActiveKing *GameActiveKing + ActiveTask *GameActiveTask } func NewTables(loader JsonLoader) (*Tables, error) { @@ -2280,12 +2280,6 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.IntegralCondition, err = NewGameIntegralCondition(buf) ; err != nil { return nil, err } - if buf, err = loader("game_integralachieve") ; err != nil { - return nil, err - } - if tables.IntegralAchieve, err = NewGameIntegralAchieve(buf) ; err != nil { - return nil, err - } if buf, err = loader("game_integralbuff") ; err != nil { return nil, err } @@ -2412,5 +2406,11 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.ActiveKing, err = NewGameActiveKing(buf) ; err != nil { return nil, err } + if buf, err = loader("game_activetask") ; err != nil { + return nil, err + } + if tables.ActiveTask, err = NewGameActiveTask(buf) ; err != nil { + return nil, err + } return tables, nil }