Skip to content

Commit 6cc8cce

Browse files
committed
feat: force cards to use base art
1 parent 1e12e70 commit 6cc8cce

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/base/vanilla/cardBaseArt.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
wrap(() => {
2+
const setting = settings.register({
3+
name: 'Force Basic Card Skins',
4+
key: 'underscript.hide.card-skins',
5+
page: 'Library',
6+
category: 'Card Skins',
7+
});
8+
9+
globalSet('createCard', function createCard(card) {
10+
const image = card.baseImage;
11+
if (setting.value() && image && image !== card.image) {
12+
card.typeSkin = 0;
13+
card.originalImage = card.image;
14+
card.image = image;
15+
}
16+
return this.super(card);
17+
});
18+
});

0 commit comments

Comments
 (0)