Skip to content

Commit ceeff98

Browse files
committed
chore: add new game modes
1 parent e9ac5b3 commit ceeff98

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# UnderScript Changelog
22

3+
## Version 0.63.7 (2025-09-02)
4+
1. Fix battle log
5+
36
## Version 0.63.6 (2025-08-15)
47
1. Minor bug fixes
58

src/base/game/persistBGM.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ const setting = settings.register({
1313
page: 'Game',
1414
});
1515

16+
const ignoreModes = ['BOSS', 'STORY', 'TUTORIAL'];
1617
eventManager.on('GameStart', () => {
1718
eventManager.on('connect', (data) => {
1819
const val = sessionStorage.getItem(`underscript.bgm.${data.gameId}`);
1920
if (setting.value() && val) {
2021
const path = isApril() && !aprilFools.value() ? IMAGES : 'images';
2122
$('body').css('background-image', `url('${path}/backgrounds/${val}.png')`);
2223
// Check special skins
23-
if (data.gameType !== 'BOSS' && global('profileSkinsEnabled')) {
24+
if (!ignoreModes.includes(data.gameType) && global('profileSkinsEnabled')) {
2425
global('checkSpecialProfileSkin')(JSON.parse(data.yourProfileSkin));
2526
}
2627
}

0 commit comments

Comments
 (0)