From 425b8962ee6f7aa0624cf36ce7dbb2864927c0b0 Mon Sep 17 00:00:00 2001 From: duel0213 Date: Thu, 1 Aug 2024 18:48:18 +0900 Subject: [PATCH] IIDX: Added grade badge save --- iidx@asphyxia/handlers/pc.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/iidx@asphyxia/handlers/pc.ts b/iidx@asphyxia/handlers/pc.ts index e5d2745..48dc19d 100644 --- a/iidx@asphyxia/handlers/pc.ts +++ b/iidx@asphyxia/handlers/pc.ts @@ -904,7 +904,7 @@ export const pcget: EPR = async (info, data, send) => { ***/ if (version >= 30 && badge.length > 0) { - let djLevel, clear, visitor, notes_radar, event1; + let djLevel, clear, grade, visitor, notes_radar, event1; djLevel = badge.filter((res) => res.category_name === "djLevel"); djLevel.forEach((res) => { bArray.push({ @@ -922,6 +922,15 @@ export const pcget: EPR = async (info, data, send) => { flg: res.flg, }); }); + + grade = badge.filter((res) => res.category_name === "grade"); + grade.forEach((res) => { + bArray.push({ + id: 2, + flg_id: res.flg_id, + flg: res.flg, + }); + }); // this keep sending back on save // // possibly wrong category_id but at least doesn't show as new badges //