|
@@ -30,17 +30,12 @@ public class Inventory {
|
30
|
30
|
if (item.getQuality() < 50) {
|
31
|
31
|
increaseQualityBy1(item);
|
32
|
32
|
}
|
33
|
|
- if (item.getName() == "Backstage passes to a TAFKAL80ETC concert") {
|
34
|
|
- //level 4 - sell in date
|
35
|
|
- if (item.getSellIn() < 11 && item.getQuality() <50) {
|
36
|
|
- increaseQualityBy1(item);
|
37
|
|
- }
|
38
|
|
- //level 4 - sell in date
|
39
|
|
- if (item.getSellIn() < 6 && item.getQuality() < 50) {
|
40
|
|
- increaseQualityBy1(item);
|
41
|
|
- }
|
|
33
|
+ if (item.getSellIn() < 11 && item.getQuality() < 50) {
|
|
34
|
+ increaseQualityBy1(item);
|
|
35
|
+ }
|
|
36
|
+ if (item.getSellIn() < 6 && item.getQuality() < 50) {
|
|
37
|
+ increaseQualityBy1(item);
|
42
|
38
|
}
|
43
|
|
- //level 1 - item type
|
44
|
39
|
} else if (item.getQuality() > 0) {
|
45
|
40
|
reduceQualityBy1(item);
|
46
|
41
|
}
|