File tree Expand file tree Collapse file tree 2 files changed +5
-352
lines changed
exporter/src/main/java/io/github/clicksilver/exporter Expand file tree Collapse file tree 2 files changed +5
-352
lines changed Original file line number Diff line number Diff line change @@ -113,31 +113,19 @@ public static void printJewels(int[] counts) {
113
113
}
114
114
115
115
public static String outputWikiDB (int [] counts ) {
116
- int wikiDBcounts [] = new int [WikiDB .kNumDecos ];
117
- Arrays .fill (wikiDBcounts , 0 );
118
-
116
+ StringBuilder contents = new StringBuilder ("" );
117
+ contents .append ("{" );
119
118
for (int i =0 ; i <counts .length ; ++i ) {
120
119
String name = DecorationNames .getDecorationName (i + kMinJewelId );
121
120
if (name .length () == 0 ) {
122
121
continue ;
123
122
}
124
- int order = WikiDB .getOrderingFromName (name );
125
- if (order < 0 ) {
126
- continue ;
127
- }
128
- wikiDBcounts [order ] = counts [i ];
129
- }
130
-
131
- StringBuilder contents = new StringBuilder ("" );
132
- contents .append ("{" );
133
- for (int i =0 ; i <wikiDBcounts .length ; ++i ) {
134
- int count = Math .max (0 , wikiDBcounts [i ]);
135
- count = Math .min (count , 7 );
123
+ int count = Math .min (counts [i ], HoneyHunter .getMaxCountFromName (name ));
136
124
contents .append ("\" " );
137
- contents .append (WikiDB . kDecoNames [ i ] );
125
+ contents .append (name );
138
126
contents .append ("\" :" );
139
127
contents .append (count );
140
- if (i != wikiDBcounts .length -1 ) {
128
+ if (i != counts .length -1 ) {
141
129
contents .append ("," );
142
130
}
143
131
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments