|
@@ -26,25 +26,18 @@ public class Inventory {
|
26
|
26
|
if (item.getQuality() < 50) {
|
27
|
27
|
increaseQualityBy1(item);
|
28
|
28
|
}
|
29
|
|
- } else if (item.getName().equals("Backstage passes to a TAFKAL80ETC concert")) {
|
|
29
|
+ } else if (item.getName().equals("Backstage passes to a TAFKAL80ETC concert")){
|
30
|
30
|
if (item.getQuality() < 50) {
|
31
|
31
|
increaseQualityBy1(item);
|
32
|
|
- //level 3 - item type
|
33
|
|
- if (item.getName() == "Backstage passes to a TAFKAL80ETC concert") {
|
34
|
|
- //level 4 - sell in date
|
35
|
|
- if (item.getSellIn() < 11) {
|
36
|
|
- //level 5 - quality
|
37
|
|
- if (item.getQuality() < 50) {
|
38
|
|
- increaseQualityBy1(item);
|
39
|
|
- }
|
40
|
|
- }
|
41
|
|
- //level 4 - sell in date
|
42
|
|
- if (item.getSellIn() < 6) {
|
43
|
|
- //level 5 - quality
|
44
|
|
- if (item.getQuality() < 50) {
|
45
|
|
- increaseQualityBy1(item);
|
46
|
|
- }
|
47
|
|
- }
|
|
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);
|
48
|
41
|
}
|
49
|
42
|
}
|
50
|
43
|
//level 1 - item type
|