diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml index 9f1e991..af44a91 100644 --- a/.github/workflows/page.yml +++ b/.github/workflows/page.yml @@ -27,7 +27,7 @@ jobs: run: | npm i -g pnpm pnpm i - pnpm build + pnpm build-gh # 执行部署 - name: 部署 diff --git a/package.json b/package.json index 4d604a9..8668511 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "vue-tsc && vite build && ts-node-esm script/compress.ts", + "build-gh": "vue-tsc && vite build --base=/HumanBreak/ && ts-node-esm script/compress.ts", "preview": "vite preview", "preview-node": "cd dist && node server.cjs", "update": "ts-node-esm script/update.ts", diff --git a/public/project/floors/MT16.js b/public/project/floors/MT16.js index 2b8045e..bfbcb8b 100644 --- a/public/project/floors/MT16.js +++ b/public/project/floors/MT16.js @@ -414,6 +414,10 @@ main.floors.MT16= { "type": "function", "function": "function(){\nconst enemy = core.getRemainEnemyString(core.floorIds.slice(5, 17));\nif (enemy.length === 0) {\n\tcore.insertAction(['当前无剩余怪物!', { \"type\": \"hide\", \"remove\": true }, ]);\n} else {\n\tcore.insertAction(enemy);\n}\n}" + }, + { + "type": "loadBgm", + "name": "escape.mp3" } ], "3,23": [