From e914f3f11bc689b3b5133af955e5ef791000da2a Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Mon, 8 Jan 2024 20:37:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9A=AE=E8=82=A4=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9C=AC=E4=BD=93=E7=A2=8E=E7=89=87=E6=B6=88?= =?UTF-8?q?=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/heroskin/ApiUplv.ts | 2 ++ src/jsonType.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/api_s2c/heroskin/ApiUplv.ts b/src/api_s2c/heroskin/ApiUplv.ts index dc281e2..667c448 100644 --- a/src/api_s2c/heroskin/ApiUplv.ts +++ b/src/api_s2c/heroskin/ApiUplv.ts @@ -18,6 +18,8 @@ export default async function (call: ApiCall) { need = need.concat( G.gc.heroSkinLv[skinconf.colour][cur_lv + i].need ) + let conf = G.gc.heroSkin[call.req.skid]; + need.push({ a: "item", "t": conf.heroId, "n": G.gc.heroSkinLv[skinconf.colour][cur_lv + i].suipian }); } // 检测消耗 diff --git a/src/jsonType.ts b/src/jsonType.ts index 4e8f553..bd9211a 100644 --- a/src/jsonType.ts +++ b/src/jsonType.ts @@ -1813,6 +1813,7 @@ type gc_hero_skin = { type gc_hero_skin_lv = { [colour: string]: { [lv: string]: { + suipian: number buff: { [k: string]: number } need: { a: string, t: string, n: number }[]; }