-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
refine.js
174 lines (165 loc) · 23.3 KB
/
refine.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
var materials = "T5_FIBER_LEVEL1@1,T7_PLANKS_LEVEL3@3,T5_ORE_LEVEL4@4,T4_METALBAR_LEVEL1,T7_PLANKS,T7_PLANKS_LEVEL1,T4_CLOTH_LEVEL3,T4_LEATHER,T6_WOOD_LEVEL1,T5_PLANKS_LEVEL1@1,T8_METALBAR,T6_CLOTH_LEVEL1,T4_CLOTH_LEVEL2,T5_FIBER,T7_WOOD_LEVEL3,T6_HIDE_LEVEL2@2,T7_LEATHER,T7_HIDE_LEVEL1@1,T4_FIBER_LEVEL3,T5_METALBAR_LEVEL4@4,T8_ORE_LEVEL2,T4_LEATHER_LEVEL4,T6_ORE_LEVEL4,T7_FIBER_LEVEL1,T3_METALBAR,T8_ORE_LEVEL1@1,T5_WOOD_LEVEL4@4,T4_PLANKS_LEVEL1,T6_PLANKS_LEVEL2@2,T4_ORE,T5_WOOD_LEVEL1,T7_CLOTH,T4_LEATHER_LEVEL1@1,T7_FIBER_LEVEL1@1,T8_ROCK_LEVEL1,T8_METALBAR_LEVEL3,T4_CLOTH_LEVEL3@3,T3_WOOD,T7_LEATHER_LEVEL3@3,T8_FIBER,T5_WOOD_LEVEL3@3,T4_METALBAR_LEVEL1@1,T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EL3,T1_FACTION_HIGHLAND_TOKEN_1,T6_WOOD_LEVEL2,T5_METALBAR_LEVEL1@1,T3_FIBER,T6_ROCK_LEVEL1@1,T5_CLOTH_LEVEL2,T6_PLANKS_LEVEL1@1,T6_FIBER_LEVEL4@4,T5_ORE_LEVEL2,T6_METALBAR_LEVEL4@4,T3_ORE,T5_HIDE_LEVEL3@3,T6_ORE_LEVEL3@3,T4_FIBER_LEVEL1,T8_PLANKS_LEVEL4,T1_FACTION_FOREST_TOKEN_1,T4_PLANKS_LEVEL1@1,T4_ORE_LEVEL2,T5_ORE_LEVEL1@1,T4_LEATHER_LEVEL2,T8_PLANKS_LEVEL1,T4_CLOTH_LEVEL1@1,T4_FIBER_LEVEL2@2,T1_FACTION_SWAMP_TOKEN_1,T6_PLANKS,T5_LEATHER_LEVEL2@2"
///new Recipe(resultId, ingredientMap, excludedFromRRR(array), nutrition, quantity)
var planks = [
new Recipe("T2_PLANKS", new Map([["T2_WOOD", 1]]),[],convertNut(0),1),
new Recipe("T3_PLANKS", new Map([["T3_WOOD", 2], ["T2_PLANKS", 1]]),[],convertNut(8.0),1),
new Recipe("T4_PLANKS", new Map([["T4_WOOD", 2], ["T3_PLANKS", 1]]),[],convertNut(16.0),1),
new Recipe("T4_PLANKS_LEVEL1@1", new Map([["T4_WOOD_LEVEL1@1", 2], ["T3_PLANKS", 1]]),[],convertNut(32.0),1),
new Recipe("T4_PLANKS_LEVEL2@2", new Map([["T4_WOOD_LEVEL2@2", 2], ["T3_PLANKS", 1]]),[],convertNut(64.0),1),
new Recipe("T4_PLANKS_LEVEL3@3", new Map([["T4_WOOD_LEVEL3@3", 2], ["T3_PLANKS", 1]]),[],convertNut(128.0),1),
new Recipe("T4_PLANKS_LEVEL4@4", new Map([["T4_WOOD_LEVEL4@4", 2], ["T3_PLANKS", 1]]),[],convertNut(256.0),1),
new Recipe("T5_PLANKS", new Map([["T5_WOOD", 3], ["T4_PLANKS", 1]]),[],convertNut(32.0),1),
new Recipe("T5_PLANKS_LEVEL1@1", new Map([["T5_WOOD_LEVEL1@1", 3], ["T4_PLANKS_LEVEL1@1", 1]]),[],convertNut(64.0),1),
new Recipe("T5_PLANKS_LEVEL2@2", new Map([["T5_WOOD_LEVEL2@2", 3], ["T4_PLANKS_LEVEL2@2", 1]]),[],convertNut(128.0),1),
new Recipe("T5_PLANKS_LEVEL3@3", new Map([["T5_WOOD_LEVEL3@3", 3], ["T4_PLANKS_LEVEL3@3", 1]]),[],convertNut(256.0),1),
new Recipe("T5_PLANKS_LEVEL4@4", new Map([["T5_WOOD_LEVEL4@4", 3], ["T4_PLANKS_LEVEL4@4", 1]]),[],convertNut(512.0),1),
new Recipe("T6_PLANKS", new Map([["T6_WOOD", 4], ["T5_PLANKS", 1]]),[],convertNut(64.0),1),
new Recipe("T6_PLANKS_LEVEL1@1", new Map([["T6_WOOD_LEVEL1@1", 4], ["T5_PLANKS_LEVEL1@1", 1]]),[],convertNut(128.0),1),
new Recipe("T6_PLANKS_LEVEL2@2", new Map([["T6_WOOD_LEVEL2@2", 4], ["T5_PLANKS_LEVEL2@2", 1]]),[],convertNut(256.0),1),
new Recipe("T6_PLANKS_LEVEL3@3", new Map([["T6_WOOD_LEVEL3@3", 4], ["T5_PLANKS_LEVEL3@3", 1]]),[],convertNut(512.0),1),
new Recipe("T6_PLANKS_LEVEL4@4", new Map([["T6_WOOD_LEVEL4@4", 4], ["T5_PLANKS_LEVEL4@4", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_PLANKS", new Map([["T7_WOOD", 5], ["T6_PLANKS", 1]]),[],convertNut(128.0),1),
new Recipe("T7_PLANKS_LEVEL1@1", new Map([["T7_WOOD_LEVEL1@1", 5], ["T6_PLANKS_LEVEL1@1", 1]]),[],convertNut(256.0),1),
new Recipe("T7_PLANKS_LEVEL2@2", new Map([["T7_WOOD_LEVEL2@2", 5], ["T6_PLANKS_LEVEL2@2", 1]]),[],convertNut(512.0),1),
new Recipe("T7_PLANKS_LEVEL3@3", new Map([["T7_WOOD_LEVEL3@3", 5], ["T6_PLANKS_LEVEL3@3", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_PLANKS_LEVEL4@4", new Map([["T7_WOOD_LEVEL4@4", 5], ["T6_PLANKS_LEVEL4@4", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_PLANKS", new Map([["T8_WOOD", 5], ["T7_PLANKS", 1]]),[],convertNut(256.0),1),
new Recipe("T8_PLANKS_LEVEL1@1", new Map([["T8_WOOD_LEVEL1@1", 5], ["T7_PLANKS_LEVEL1@1", 1]]),[],convertNut(512.0),1),
new Recipe("T8_PLANKS_LEVEL2@2", new Map([["T8_WOOD_LEVEL2@2", 5], ["T7_PLANKS_LEVEL2@2", 1]]),[],convertNut(1024.0),1),
new Recipe("T8_PLANKS_LEVEL3@3", new Map([["T8_WOOD_LEVEL3@3", 5], ["T7_PLANKS_LEVEL3@3", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_PLANKS_LEVEL4@4", new Map([["T8_WOOD_LEVEL4@4", 5], ["T7_PLANKS_LEVEL4@4", 1]]),[],convertNut(4096.0),1),
]
var stoneblock = [
new Recipe("T2_STONEBLOCK", new Map([["T2_ROCK", 1]]),[],convertNut(0),1),
new Recipe("T3_STONEBLOCK", new Map([["T3_ROCK", 2], ["T2_STONEBLOCK", 1]]),[],convertNut(8.0),1),
new Recipe("T4_STONEBLOCK", new Map([["T4_ROCK", 2], ["T3_STONEBLOCK", 1]]),[],convertNut(16.0),1),
new Recipe("T4_STONEBLOCK", new Map([["T4_ROCK_LEVEL1@1", 2], ["T3_STONEBLOCK", 2]]),[],convertNut(16.0 * 2),2),
new Recipe("T4_STONEBLOCK", new Map([["T4_ROCK_LEVEL2@2", 2], ["T3_STONEBLOCK", 4]]),[],convertNut(16.0 * 4),4),
new Recipe("T4_STONEBLOCK", new Map([["T4_ROCK_LEVEL3@3", 2], ["T3_STONEBLOCK", 8]]),[],convertNut(16.0 * 8),8),
new Recipe("T5_STONEBLOCK", new Map([["T5_ROCK", 3], ["T4_STONEBLOCK", 1]]),[],convertNut(32.0),1),
new Recipe("T5_STONEBLOCK", new Map([["T5_ROCK_LEVEL1@1", 3], ["T4_STONEBLOCK", 2]]),[],convertNut(32.0 * 2),2),
new Recipe("T5_STONEBLOCK", new Map([["T5_ROCK_LEVEL2@2", 3], ["T4_STONEBLOCK", 4]]),[],convertNut(32.0 * 4),4),
new Recipe("T5_STONEBLOCK", new Map([["T5_ROCK_LEVEL3@3", 3], ["T4_STONEBLOCK", 8]]),[],convertNut(32.0 * 8),8),
new Recipe("T6_STONEBLOCK", new Map([["T6_ROCK", 4], ["T5_STONEBLOCK", 1]]),[],convertNut(64.0),1),
new Recipe("T6_STONEBLOCK", new Map([["T6_ROCK_LEVEL1@1", 4], ["T5_STONEBLOCK", 2]]),[],convertNut(64.0 * 2),2),
new Recipe("T6_STONEBLOCK", new Map([["T6_ROCK_LEVEL2@2", 4], ["T5_STONEBLOCK", 4]]),[],convertNut(64.0 * 4),4),
new Recipe("T6_STONEBLOCK", new Map([["T6_ROCK_LEVEL3@3", 4], ["T5_STONEBLOCK", 8]]),[],convertNut(64.0 * 8),8),
new Recipe("T7_STONEBLOCK", new Map([["T7_ROCK", 5], ["T6_STONEBLOCK", 1]]),[],convertNut(128.0),1),
new Recipe("T7_STONEBLOCK", new Map([["T7_ROCK_LEVEL1@1", 5], ["T6_STONEBLOCK", 2]]),[],convertNut(128.0 * 2),2),
new Recipe("T7_STONEBLOCK", new Map([["T7_ROCK_LEVEL2@2", 5], ["T6_STONEBLOCK", 4]]),[],convertNut(128.0 * 4),4),
new Recipe("T7_STONEBLOCK", new Map([["T7_ROCK_LEVEL3@3", 5], ["T6_STONEBLOCK", 8]]),[],convertNut(128.0 * 8),8),
new Recipe("T8_STONEBLOCK", new Map([["T8_ROCK", 5], ["T7_STONEBLOCK", 1]]),[],convertNut(256.0),1),
new Recipe("T8_STONEBLOCK", new Map([["T8_ROCK_LEVEL1@1", 5], ["T7_STONEBLOCK", 2]]),[],convertNut(256.0 * 2),2),
new Recipe("T8_STONEBLOCK", new Map([["T8_ROCK_LEVEL2@2", 5], ["T7_STONEBLOCK", 4]]),[],convertNut(256.0 * 4),4),
new Recipe("T8_STONEBLOCK", new Map([["T8_ROCK_LEVEL3@3", 5], ["T7_STONEBLOCK", 8]]),[],convertNut(256.0 * 8),8)
]
var metalbar = [
new Recipe("T2_METALBAR", new Map([["T2_ORE", 1]]),[],convertNut(0),1),
new Recipe("T3_METALBAR", new Map([["T3_ORE", 2], ["T2_METALBAR", 1]]),[],convertNut(8.0),1),
new Recipe("T4_METALBAR", new Map([["T4_ORE", 2], ["T3_METALBAR", 1]]),[],convertNut(16.0),1),
new Recipe("T4_METALBAR_LEVEL1@1", new Map([["T4_ORE_LEVEL1@1", 2], ["T3_METALBAR", 1]]),[],convertNut(32.0),1),
new Recipe("T4_METALBAR_LEVEL2@2", new Map([["T4_ORE_LEVEL2@2", 2], ["T3_METALBAR", 1]]),[],convertNut(64.0),1),
new Recipe("T4_METALBAR_LEVEL3@3", new Map([["T4_ORE_LEVEL3@3", 2], ["T3_METALBAR", 1]]),[],convertNut(128.0),1),
new Recipe("T4_METALBAR_LEVEL4@4", new Map([["T4_ORE_LEVEL4@4", 2], ["T3_METALBAR", 1]]),[],convertNut(256.0),1),
new Recipe("T5_METALBAR", new Map([["T5_ORE", 3], ["T4_METALBAR", 1]]),[],convertNut(32.0),1),
new Recipe("T5_METALBAR_LEVEL1@1", new Map([["T5_ORE_LEVEL1@1", 3], ["T4_METALBAR_LEVEL1@1", 1]]),[],convertNut(64.0),1),
new Recipe("T5_METALBAR_LEVEL2@2", new Map([["T5_ORE_LEVEL2@2", 3], ["T4_METALBAR_LEVEL2@2", 1]]),[],convertNut(128.0),1),
new Recipe("T5_METALBAR_LEVEL3@3", new Map([["T5_ORE_LEVEL3@3", 3], ["T4_METALBAR_LEVEL3@3", 1]]),[],convertNut(256.0),1),
new Recipe("T5_METALBAR_LEVEL4@4", new Map([["T5_ORE_LEVEL4@4", 3], ["T4_METALBAR_LEVEL4@4", 1]]),[],convertNut(512.0),1),
new Recipe("T6_METALBAR", new Map([["T6_ORE", 4], ["T5_METALBAR", 1]]),[],convertNut(64.0),1),
new Recipe("T6_METALBAR_LEVEL1@1", new Map([["T6_ORE_LEVEL1@1", 4], ["T5_METALBAR_LEVEL1@1", 1]]),[],convertNut(128.0),1),
new Recipe("T6_METALBAR_LEVEL2@2", new Map([["T6_ORE_LEVEL2@2", 4], ["T5_METALBAR_LEVEL2@2", 1]]),[],convertNut(256.0),1),
new Recipe("T6_METALBAR_LEVEL3@3", new Map([["T6_ORE_LEVEL3@3", 4], ["T5_METALBAR_LEVEL3@3", 1]]),[],convertNut(512.0),1),
new Recipe("T6_METALBAR_LEVEL4@4", new Map([["T6_ORE_LEVEL4@4", 4], ["T5_METALBAR_LEVEL4@4", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_METALBAR", new Map([["T7_ORE", 5], ["T6_METALBAR", 1]]),[],convertNut(128.0),1),
new Recipe("T7_METALBAR_LEVEL1@1", new Map([["T7_ORE_LEVEL1@1", 5], ["T6_METALBAR_LEVEL1@1", 1]]),[],convertNut(256.0),1),
new Recipe("T7_METALBAR_LEVEL2@2", new Map([["T7_ORE_LEVEL2@2", 5], ["T6_METALBAR_LEVEL2@2", 1]]),[],convertNut(512.0),1),
new Recipe("T7_METALBAR_LEVEL3@3", new Map([["T7_ORE_LEVEL3@3", 5], ["T6_METALBAR_LEVEL3@3", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_METALBAR_LEVEL4@4", new Map([["T7_ORE_LEVEL4@4", 5], ["T6_METALBAR_LEVEL4@4", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_METALBAR", new Map([["T8_ORE", 5], ["T7_METALBAR", 1]]),[],convertNut(256.0),1),
new Recipe("T8_METALBAR_LEVEL1@1", new Map([["T8_ORE_LEVEL1@1", 5], ["T7_METALBAR_LEVEL1@1", 1]]),[],convertNut(512.0),1),
new Recipe("T8_METALBAR_LEVEL2@2", new Map([["T8_ORE_LEVEL2@2", 5], ["T7_METALBAR_LEVEL2@2", 1]]),[],convertNut(1024.0),1),
new Recipe("T8_METALBAR_LEVEL3@3", new Map([["T8_ORE_LEVEL3@3", 5], ["T7_METALBAR_LEVEL3@3", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_METALBAR_LEVEL4@4", new Map([["T8_ORE_LEVEL4@4", 5], ["T7_METALBAR_LEVEL4@4", 1]]),[],convertNut(4096.0),1)
]
var leather = [
new Recipe("T2_LEATHER", new Map([["T2_HIDE", 1]]),[],convertNut(0),1),
new Recipe("T3_LEATHER", new Map([["T3_HIDE", 2], ["T2_LEATHER", 1]]),[],convertNut(8.0),1),
new Recipe("T4_LEATHER", new Map([["T4_HIDE", 2], ["T3_LEATHER", 1]]),[],convertNut(16.0),1),
new Recipe("T4_LEATHER_LEVEL1@1", new Map([["T4_HIDE_LEVEL1@1", 2], ["T3_LEATHER", 1]]),[],convertNut(32.0),1),
new Recipe("T4_LEATHER_LEVEL2@2", new Map([["T4_HIDE_LEVEL2@2", 2], ["T3_LEATHER", 1]]),[],convertNut(64.0),1),
new Recipe("T4_LEATHER_LEVEL3@3", new Map([["T4_HIDE_LEVEL3@3", 2], ["T3_LEATHER", 1]]),[],convertNut(128.0),1),
new Recipe("T4_LEATHER_LEVEL4@4", new Map([["T4_HIDE_LEVEL4@4", 2], ["T3_LEATHER", 1]]),[],convertNut(256.0),1),
new Recipe("T5_LEATHER", new Map([["T5_HIDE", 3], ["T4_LEATHER", 1]]),[],convertNut(32.0),1),
new Recipe("T5_LEATHER_LEVEL1@1", new Map([["T5_HIDE_LEVEL1@1", 3], ["T4_LEATHER_LEVEL1@1", 1]]),[],convertNut(64.0),1),
new Recipe("T5_LEATHER_LEVEL2@2", new Map([["T5_HIDE_LEVEL2@2", 3], ["T4_LEATHER_LEVEL2@2", 1]]),[],convertNut(128.0),1),
new Recipe("T5_LEATHER_LEVEL3@3", new Map([["T5_HIDE_LEVEL3@3", 3], ["T4_LEATHER_LEVEL3@3", 1]]),[],convertNut(256.0),1),
new Recipe("T5_LEATHER_LEVEL4@4", new Map([["T5_HIDE_LEVEL4@4", 3], ["T4_LEATHER_LEVEL4@4", 1]]),[],convertNut(512.0),1),
new Recipe("T6_LEATHER", new Map([["T6_HIDE", 4], ["T5_LEATHER", 1]]),[],convertNut(64.0),1),
new Recipe("T6_LEATHER_LEVEL1@1", new Map([["T6_HIDE_LEVEL1@1", 4], ["T5_LEATHER_LEVEL1@1", 1]]),[],convertNut(128.0),1),
new Recipe("T6_LEATHER_LEVEL2@2", new Map([["T6_HIDE_LEVEL2@2", 4], ["T5_LEATHER_LEVEL2@2", 1]]),[],convertNut(256.0),1),
new Recipe("T6_LEATHER_LEVEL3@3", new Map([["T6_HIDE_LEVEL3@3", 4], ["T5_LEATHER_LEVEL3@3", 1]]),[],convertNut(512.0),1),
new Recipe("T6_LEATHER_LEVEL4@4", new Map([["T6_HIDE_LEVEL4@4", 4], ["T5_LEATHER_LEVEL4@4", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_LEATHER", new Map([["T7_HIDE", 5], ["T6_LEATHER", 1]]),[],convertNut(128.0),1),
new Recipe("T7_LEATHER_LEVEL1@1", new Map([["T7_HIDE_LEVEL1@1", 5], ["T6_LEATHER_LEVEL1@1", 1]]),[],convertNut(256.0),1),
new Recipe("T7_LEATHER_LEVEL2@2", new Map([["T7_HIDE_LEVEL2@2", 5], ["T6_LEATHER_LEVEL2@2", 1]]),[],convertNut(512.0),1),
new Recipe("T7_LEATHER_LEVEL3@3", new Map([["T7_HIDE_LEVEL3@3", 5], ["T6_LEATHER_LEVEL3@3", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_LEATHER_LEVEL4@4", new Map([["T7_HIDE_LEVEL4@4", 5], ["T6_LEATHER_LEVEL4@4", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_LEATHER", new Map([["T8_HIDE", 5], ["T7_LEATHER", 1]]),[],convertNut(256.0),1),
new Recipe("T8_LEATHER_LEVEL1@1", new Map([["T8_HIDE_LEVEL1@1", 5], ["T7_LEATHER_LEVEL1@1", 1]]),[],convertNut(512.0),1),
new Recipe("T8_LEATHER_LEVEL2@2", new Map([["T8_HIDE_LEVEL2@2", 5], ["T7_LEATHER_LEVEL2@2", 1]]),[],convertNut(1024.0),1),
new Recipe("T8_LEATHER_LEVEL3@3", new Map([["T8_HIDE_LEVEL3@3", 5], ["T7_LEATHER_LEVEL3@3", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_LEATHER_LEVEL4@4", new Map([["T8_HIDE_LEVEL4@4", 5], ["T7_LEATHER_LEVEL4@4", 1]]),[],convertNut(4096.0),1)
]
var cloth = [
new Recipe("T2_CLOTH", new Map([["T2_FIBER", 1]]),[],convertNut(0),1),
new Recipe("T3_CLOTH", new Map([["T3_FIBER", 2], ["T2_CLOTH", 1]]),[],convertNut(8.0),1),
new Recipe("T4_CLOTH", new Map([["T4_FIBER", 2], ["T3_CLOTH", 1]]),[],convertNut(16.0),1),
new Recipe("T4_CLOTH_LEVEL1@1", new Map([["T4_FIBER_LEVEL1@1", 2], ["T3_CLOTH", 1]]),[],convertNut(32.0),1),
new Recipe("T4_CLOTH_LEVEL2@2", new Map([["T4_FIBER_LEVEL2@2", 2], ["T3_CLOTH", 1]]),[],convertNut(64.0),1),
new Recipe("T4_CLOTH_LEVEL3@3", new Map([["T4_FIBER_LEVEL3@3", 2], ["T3_CLOTH", 1]]),[],convertNut(128.0),1),
new Recipe("T4_CLOTH_LEVEL4@4", new Map([["T4_FIBER_LEVEL4@4", 2], ["T3_CLOTH", 1]]),[],convertNut(256.0),1),
new Recipe("T5_CLOTH", new Map([["T5_FIBER", 3], ["T4_CLOTH", 1]]),[],convertNut(32.0),1),
new Recipe("T5_CLOTH_LEVEL1@1", new Map([["T5_FIBER_LEVEL1@1", 3], ["T4_CLOTH_LEVEL1@1", 1]]),[],convertNut(64.0),1),
new Recipe("T5_CLOTH_LEVEL2@2", new Map([["T5_FIBER_LEVEL2@2", 3], ["T4_CLOTH_LEVEL2@2", 1]]),[],convertNut(128.0),1),
new Recipe("T5_CLOTH_LEVEL3@3", new Map([["T5_FIBER_LEVEL3@3", 3], ["T4_CLOTH_LEVEL3@3", 1]]),[],convertNut(256.0),1),
new Recipe("T5_CLOTH_LEVEL4@4", new Map([["T5_FIBER_LEVEL4@4", 3], ["T4_CLOTH_LEVEL4@4", 1]]),[],convertNut(512.0),1),
new Recipe("T6_CLOTH", new Map([["T6_FIBER", 4], ["T5_CLOTH", 1]]),[],convertNut(64.0),1),
new Recipe("T6_CLOTH_LEVEL1@1", new Map([["T6_FIBER_LEVEL1@1", 4], ["T5_CLOTH_LEVEL1@1", 1]]),[],convertNut(128.0),1),
new Recipe("T6_CLOTH_LEVEL2@2", new Map([["T6_FIBER_LEVEL2@2", 4], ["T5_CLOTH_LEVEL2@2", 1]]),[],convertNut(256.0),1),
new Recipe("T6_CLOTH_LEVEL3@3", new Map([["T6_FIBER_LEVEL3@3", 4], ["T5_CLOTH_LEVEL3@3", 1]]),[],convertNut(512.0),1),
new Recipe("T6_CLOTH_LEVEL4@4", new Map([["T6_FIBER_LEVEL4@4", 4], ["T5_CLOTH_LEVEL4@4", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_CLOTH", new Map([["T7_FIBER", 5], ["T6_CLOTH", 1]]),[],convertNut(128.0),1),
new Recipe("T7_CLOTH_LEVEL1@1", new Map([["T7_FIBER_LEVEL1@1", 5], ["T6_CLOTH_LEVEL1@1", 1]]),[],convertNut(256.0),1),
new Recipe("T7_CLOTH_LEVEL2@2", new Map([["T7_FIBER_LEVEL2@2", 5], ["T6_CLOTH_LEVEL2@2", 1]]),[],convertNut(512.0),1),
new Recipe("T7_CLOTH_LEVEL3@3", new Map([["T7_FIBER_LEVEL3@3", 5], ["T6_CLOTH_LEVEL3@3", 1]]),[],convertNut(1024.0),1),
new Recipe("T7_CLOTH_LEVEL4@4", new Map([["T7_FIBER_LEVEL4@4", 5], ["T6_CLOTH_LEVEL4@4", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_CLOTH", new Map([["T8_FIBER", 5], ["T7_CLOTH", 1]]),[],convertNut(256.0),1),
new Recipe("T8_CLOTH_LEVEL1@1", new Map([["T8_FIBER_LEVEL1@1", 5], ["T7_CLOTH_LEVEL1@1", 1]]),[],convertNut(512.0),1),
new Recipe("T8_CLOTH_LEVEL2@2", new Map([["T8_FIBER_LEVEL2@2", 5], ["T7_CLOTH_LEVEL2@2", 1]]),[],convertNut(1024.0),1),
new Recipe("T8_CLOTH_LEVEL3@3", new Map([["T8_FIBER_LEVEL3@3", 5], ["T7_CLOTH_LEVEL3@3", 1]]),[],convertNut(2048.0),1),
new Recipe("T8_CLOTH_LEVEL4@4", new Map([["T8_FIBER_LEVEL4@4", 5], ["T7_CLOTH_LEVEL4@4", 1]]),[],convertNut(4096.0),1)
]
var recipes = [planks, stoneblock, metalbar, leather, cloth]
var itemmap = new Item_Map()
async function updateTable(){
updateButtonTextUpdating()
itemmap.clearMap()
updateItemMap(itemmap,materials).then(x => updateTableValues()).then(x => updateButtonTextUpdated())
}
async function updateTableValues(){
createTableFromRecipesDifferentEnd(recipes[$("#category").val()], itemmap)
updateProfit()
changeProfitColor()
bindSelectRow()
}
$(document).ready(function(){
createNavBar()
updateTable()
$("#category").change(function() { updateTableValues() })
$("#quality").change(function() { updateTableValues() })
$("#locations").change(function() { updateTableValues() })
$("#endLocations").change(function() { updateTableValues() })
$("#language").change(function() { updateTableValues() })
$("#server").change(function() { updateTable() })
})