|
@@ -11,6 +11,7 @@ public class Inventory {
|
11
|
11
|
this.specialItems.add("Aged Brie");
|
12
|
12
|
this.specialItems.add("Backstage passes to a TAFKAL80ETC concert");
|
13
|
13
|
this.specialItems.add("Sulfuras, Hand of Ragnaros");
|
|
14
|
+ this.specialItems.add("Conjured");
|
14
|
15
|
}
|
15
|
16
|
/*
|
16
|
17
|
public void updateQuality() {
|
|
@@ -75,9 +76,10 @@ public class Inventory {
|
75
|
76
|
for (int i = 0; i < items.length; i++) {
|
76
|
77
|
//updateSulfurusQuality(i);
|
77
|
78
|
updateNormalItemQuality(i);
|
78
|
|
- updateNormalItemSellIn(i);
|
79
|
79
|
updateAgedBrieQuality(i);
|
80
|
80
|
updateBackStageQuality(i);
|
|
81
|
+ updateConjuredQuality(i);
|
|
82
|
+ updateSellIn(i);
|
81
|
83
|
}
|
82
|
84
|
}
|
83
|
85
|
|
|
@@ -128,15 +130,16 @@ public class Inventory {
|
128
|
130
|
}
|
129
|
131
|
}
|
130
|
132
|
|
131
|
|
- public void updateSulfurusQuality(int i) {
|
132
|
|
- if (items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
|
133
|
|
- //change nothing
|
|
133
|
+ public void updateConjuredQuality(int index) {
|
|
134
|
+ if (items[index].getName().equals("Conjured")){
|
|
135
|
+ changeQuality(index, -2);
|
|
136
|
+ pastZeroQuality(index);
|
134
|
137
|
}
|
135
|
138
|
}
|
136
|
139
|
|
137
|
|
- public void updateNormalItemSellIn(int index) {
|
138
|
|
- if (!determineSpecialQuality(index)) {
|
139
|
|
- updateSellIn(index);
|
|
140
|
+ public void updateSulfurusQuality(int i) {
|
|
141
|
+ if (items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
|
|
142
|
+ //change nothing
|
140
|
143
|
}
|
141
|
144
|
}
|
142
|
145
|
|