mirror of
https://github.com/Shu-Ying/noname-shuying.git
synced 2026-10-11 03:20:01 +08:00
fixed # 补全部分卡牌
fixed # 修复部分已知BUG
This commit is contained in:
+6
-3
@@ -251,11 +251,14 @@ shuYing.precontent = async () => {
|
||||
shuYing.initFunction();
|
||||
shuYing.initConfig();
|
||||
const mengsanState = lib.config.shuYing_mengsan_installed_version;
|
||||
let hasMengsan = !!mengsanState && mengsanState != "disabled";
|
||||
if (!mengsanState && typeof game.checkFile != "function") {
|
||||
const mengsanInstallation = lib.config.shuYing_mengsan_installation;
|
||||
let hasMengsan = mengsanInstallation
|
||||
? mengsanInstallation.status == "installed"
|
||||
: !!mengsanState && mengsanState != "disabled";
|
||||
if (!mengsanInstallation && !mengsanState && typeof game.checkFile != "function") {
|
||||
hasMengsan = true;
|
||||
}
|
||||
else if (!mengsanState && typeof game.checkFile == "function") {
|
||||
else if (!mengsanInstallation && !mengsanState && typeof game.checkFile == "function") {
|
||||
hasMengsan = await new Promise(resolve => {
|
||||
game.checkFile("extension/术樱包/mengsan/register.js",
|
||||
result => resolve(result == 1), () => resolve(false));
|
||||
|
||||
Reference in New Issue
Block a user