From d157f8f729457810b68285ac227401e1ac263c0e Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Tue, 4 Jul 2023 02:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B03.8=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E8=B5=84=E6=BA=90=20@Ca(HCO=E2=82=83)=E2=82=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/App.js | 8 ++++---- index.ts | 4 ++++ resources/meta/info/index.js | 6 +++--- resources/meta/info/pool.js | 9 +++++++++ 4 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 index.ts diff --git a/components/App.js b/components/App.js index 707df89f..b96d79cb 100644 --- a/components/App.js +++ b/components/App.js @@ -74,8 +74,8 @@ class App { check.push(app.check) } - cls.prototype[key] = async function () { - let e = this.e + cls.prototype[key] = async function (e) { + e = this.e || e if (event === 'poke') { if (e.notice_type === 'group') { if (e.target_id !== Bot.uin && !e.isPoke) { @@ -111,11 +111,11 @@ class App { reg: yzRule, fnc: yzKey }) - cls.prototype[yzKey] = async function () { + cls.prototype[yzKey] = async function (e) { if (!Version.isMiao && !app.yzCheck()) { return false } - let e = this.e + e = this.e || e e.original_msg = e.original_msg || e.msg return await app.fn.call(this, e) } diff --git a/index.ts b/index.ts new file mode 100644 index 00000000..fef12bf9 --- /dev/null +++ b/index.ts @@ -0,0 +1,4 @@ +import { setApp } from 'alemon' +import { apps } from './apps/index.js' + +setApp('miao-plugin', apps) \ No newline at end of file diff --git a/resources/meta/info/index.js b/resources/meta/info/index.js index b54e19ef..0e4d0787 100644 --- a/resources/meta/info/index.js +++ b/resources/meta/info/index.js @@ -4,11 +4,11 @@ export * from './pool.js' export const chestInfo = { common: { title: '普通宝箱', - max: 2702 + max: 2704 }, exquisite: { title: '精致宝箱', - max: 1646 + max: 1648 }, precious: { title: '珍贵宝箱', @@ -16,7 +16,7 @@ export const chestInfo = { }, luxurious: { title: '豪华宝箱', - max: 193 + max: 194 }, magic: { title: '奇馈宝箱', diff --git a/resources/meta/info/pool.js b/resources/meta/info/pool.js index 374afd25..3cc99e5d 100644 --- a/resources/meta/info/pool.js +++ b/resources/meta/info/pool.js @@ -470,5 +470,14 @@ export const poolDetail = [{ char4: ['瑶瑶', '鹿野院平藏', '香菱'], weapon5: ['裁叶萃光', '苍古自由之誓'], weapon4: ['断浪长鳍', '曚云之月', '西风剑', '祭礼大剑', '西风秘典'] +}, { + version: '3.8', + half: '上半', + from: '2023-07-05 06:00:00', + to: '2023-07-25 17:59:59', + char5: ['优菈', '可莉'], + char4: ['米卡', '雷泽', '托马'], + weapon5: ['松籁响起之时', '四风原典'], + weapon4: ['暗巷闪光', '暗巷猎手', '雨裁', '西风长枪', '昭心'] } ]