From 78e6d138ddc1b7c96fd116a808eca29356624eb6 Mon Sep 17 00:00:00 2001 From: AnnAngela Date: Thu, 15 Jun 2023 17:28:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8=E6=B4=97?= =?UTF-8?q?=E7=89=8C=E7=AE=97=E6=B3=95=E6=9D=A5=E7=A1=AE=E4=BF=9D=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/1.3-模拟器支持.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/1.3-模拟器支持.md b/docs/1.3-模拟器支持.md index 4d133f59d5..46f2a5e193 100644 --- a/docs/1.3-模拟器支持.md +++ b/docs/1.3-模拟器支持.md @@ -7,7 +7,15 @@ _注 2:以下模拟器排序为随机生成,排名不分先后_ import MarkdownIt from 'markdown-it' import MarkdownItAnchor from 'markdown-it-anchor' -const fullySupport = [ +const shuffleArray = (array) => { + for (let i = array.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [array[i], array[j]] = [array[j], array[i]]; + } + return array; +} + +const fullySupport = shuffleArray([ ` ### ✅ [蓝叠模拟器 5](https://www.bluestacks.cn/) 完美支持。需要在模拟器 \`设置\` - \`引擎设置\` 中打开 \`允许ADB连接\` @@ -49,9 +57,9 @@ const fullySupport = [ - “完成后退出模拟器”功能可能偶现异常,如果遇到请向 MuMu 官方反馈; - 多开时需通过 MuMu 12 多开器的 ADB 按钮,查看对应实例的端口信息,将 MAA 设置-连接设置 的连接地址的端口号修改为对应的端口。 `, -].sort((a, b) => 0.5 - Math.random()) +]) -const particallySupport = [ +const particallySupport = shuffleArray([ ` ### ⚠️ [MuMu 模拟器 6](https://mumu.163.com/) @@ -83,9 +91,9 @@ const particallySupport = [ - 任务运行过程中请尽量保证明日方舟在前台且无其他安卓应用同时在前台运行,否则可能导致游戏暂停运行或任务识别错误。 - WSA 的截图经常莫名其妙截出来一个白屏,导致识别异常,还是不推荐使用。 `, -].sort((a, b) => 0.5 - Math.random()) +]) -const notSupport = [ +const notSupport = shuffleArray([ ` ### 🚫 MuMu 手游助手(星云引擎) @@ -96,7 +104,7 @@ const notSupport = [ 不支持,未开放 adb 端口。 `, -].sort((a, b) => 0.5 - Math.random()) +]) const md = (new MarkdownIt()).use(MarkdownItAnchor, { permalink: true, permalinkBefore: true, permalinkSymbol: '#' })