From 4fe0b6d145dc19e2ca5343480755e44dd9a04558 Mon Sep 17 00:00:00 2001 From: luying Date: Sun, 25 Apr 2021 20:26:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=9A=E8=A3=85=E5=A4=87?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=AC=A1=E6=95=B0=E5=86=99=E5=8F=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/equipService.ts | 4 ++-- game-server/config/clientProtos.ts | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/game-server/app/services/equipService.ts b/game-server/app/services/equipService.ts index 29334a4d0..41f8985c1 100644 --- a/game-server/app/services/equipService.ts +++ b/game-server/app/services/equipService.ts @@ -100,7 +100,7 @@ export async function takeOffEquipAndCalPlayerCe(roleId: string, sid: string, he await calPlayerCeAndSave(HERO_SYSTEM_TYPE.EQUIP, sid, roleId, hero, {}, args); // 任务 - await checkTask(roleId, sid, funcs, TASK_TYPE.EQUIP_SUM, 1, true, {}); + await checkTask(roleId, sid, funcs, TASK_TYPE.EQUIP_SUM, -1, true, {}); await checkTaskWithHero(roleId, sid, funcs, TASK_TYPE.EQUIP_BY_HERO, hero, [-1]); await checkTaskWithEquip(roleId, sid, funcs, TASK_TYPE.EQUIP_QUALITY, equip, [-1]); @@ -120,7 +120,7 @@ export async function dressEquip(roleId: string, sid: string, hero:HeroType, equ await calPlayerCeAndSave(HERO_SYSTEM_TYPE.EQUIP, sid, roleId, hero, {}, args); // 任务 - await checkTask(roleId, sid, funcs, TASK_TYPE.EQUIP_SUM, -1, true, {}); + await checkTask(roleId, sid, funcs, TASK_TYPE.EQUIP_SUM, 1, true, {}); await checkTaskWithHero(roleId, sid, funcs, TASK_TYPE.EQUIP_BY_HERO, hero, [1]); await checkTaskWithEquip(roleId, sid, funcs, TASK_TYPE.EQUIP_QUALITY, equip, [1]); diff --git a/game-server/config/clientProtos.ts b/game-server/config/clientProtos.ts index a2ff2ad40..d3153ef37 100644 --- a/game-server/config/clientProtos.ts +++ b/game-server/config/clientProtos.ts @@ -32,15 +32,15 @@ module.exports = { "required uInt32 hid": 1, "required uInt32 lv": 2 }, - "role.equipHandler.refine": { - "message Material":{ - "required uInt32 id": 1, - "required uInt32 count": 2 - }, - "required uInt32 hid": 1, - "required uInt32 ePlaceId": 2, - "repeated Material material": 3 - }, + // "role.equipHandler.refine": { + // "message Material":{ + // "required uInt32 id": 1, + // "required uInt32 count": 2 + // }, + // "required uInt32 hid": 1, + // "required uInt32 ePlaceId": 2, + // "repeated Material material": 3 + // }, "role.equipHandler.reStrengthen": { "required uInt32 eid": 1 },