File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 6
6
1 . Added confirmation for buying packs with UCP
7
7
1 . Added a setting to switch minigame controls to WASD (disabled by default)
8
8
1 . Added a random avatar button
9
+ 1 . Added setting to prefer shiny on import (enabled by default)
9
10
### Fixes
10
11
1 . Fixed bug with base card skin setting
11
12
### Plugins
Original file line number Diff line number Diff line change
1
+ wrap ( ( ) => {
2
+ const setting = settings . register ( {
3
+ name : 'Prefer Shiny' ,
4
+ key : 'underscript.import.shiny' ,
5
+ default : true ,
6
+ page : 'Library' ,
7
+ category : 'Import' ,
8
+ } ) ;
9
+
10
+ function override ( idCard , list = [ ] ) {
11
+ if ( setting . value ( ) ) {
12
+ list . sort ( ( a , b ) => b . shiny - a . shiny ) ;
13
+ }
14
+ this . super ( idCard , list ) ;
15
+ }
16
+
17
+ onPage ( 'Decks' , ( ) => {
18
+ eventManager . on ( ':loaded' , ( ) => {
19
+ globalSet ( 'getCardInList' , override ) ;
20
+ } ) ;
21
+ } ) ;
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments