File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,15 @@ class BartersAPI {
21
21
item : itemsAPI . getItem ( itemData . id ) ,
22
22
count : itemData . count ,
23
23
quantity : itemData . count ,
24
+ attributes : itemData . attributes
24
25
} ;
25
26
} ) ,
26
27
rewardItems : barter . rewardItems . map ( ( itemData ) => {
27
28
return {
28
29
item : itemsAPI . getItem ( itemData . id ) ,
29
30
count : itemData . count ,
30
31
quantity : itemData . count ,
32
+ attributes : [ ]
31
33
} ;
32
34
} )
33
35
} ) ;
Original file line number Diff line number Diff line change @@ -22,13 +22,15 @@ class CraftsAPI {
22
22
item : itemsAPI . getItem ( itemData . id ) ,
23
23
count : itemData . count ,
24
24
quantity : itemData . count ,
25
+ attributes : [ ]
25
26
} ;
26
27
} ) ,
27
28
rewardItems : craft . rewardItems . map ( ( itemData ) => {
28
29
return {
29
30
item : itemsAPI . getItem ( itemData . id ) ,
30
31
count : itemData . count ,
31
32
quantity : itemData . count ,
33
+ attributes : [ ]
32
34
} ;
33
35
} )
34
36
} ) ;
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ class ItemsAPI {
150
150
item : this . formatItem ( this . itemCache [ containedItem . itemId ] ) ,
151
151
count : containedItem . count ,
152
152
quantity : containedItem . count ,
153
+ attributes : [ ]
153
154
} ;
154
155
} ) ;
155
156
}
Original file line number Diff line number Diff line change @@ -140,10 +140,16 @@ module.exports = `
140
140
value: Int
141
141
}
142
142
143
+ type ItemAttribute {
144
+ type: String!
145
+ value: String
146
+ }
147
+
143
148
type ContainedItem {
144
149
item: Item!
145
150
count: Float!
146
151
quantity: Float!
152
+ attributes: [ItemAttribute]
147
153
}
148
154
149
155
type Barter {
You can’t perform that action at this time.
0 commit comments