Browse Source

completed original description

Yesoda Sanka 6 years ago
parent
commit
9b6ff94c4d

BIN
.DS_Store View File


BIN
src/.DS_Store View File


BIN
src/main/.DS_Store View File


BIN
src/main/java/.DS_Store View File


BIN
src/main/java/com/.DS_Store View File


BIN
src/main/java/com/zipcodewilmington/.DS_Store View File


+ 5
- 5
src/main/java/com/zipcodewilmington/gildedrose/Inventory.java View File

@@ -12,14 +12,14 @@ public class Inventory {
12 12
 
13 13
     public void updateQuality() {
14 14
         for (int i = 0; i < items.length; i++) {
15
-            if (!items[i].getName().equals("Aged Brie")
15
+          /** if (!items[i].getName().equals("Aged Brie")
16 16
                     && !items[i].getName().equals("Backstage passes to a TAFKAL80ETC concert")) {
17 17
                 if (items[i].getQuality() > 0) {
18 18
                     if (!items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
19 19
                         items[i].setQuality(items[i].getQuality() - 1);
20
-                    }
20
+
21 21
                 }
22
-            } else {
22
+            } else {/*
23 23
                 if (items[i].getQuality() < 50) {
24 24
                     items[i].setQuality(items[i].getQuality() + 1);
25 25
 
@@ -30,14 +30,14 @@ public class Inventory {
30 30
                             }
31 31
                         }
32 32
 
33
-                        if (items[i].getSellIn() < 6) {
33
+                       /* if (items[i].getSellIn() < 6) {
34 34
                             if (items[i].getQuality() < 50) {
35 35
                                 items[i].setQuality(items[i].getQuality() + 1);
36 36
                             }
37 37
                         }
38 38
                     }
39 39
                 }
40
-            }
40
+            }*/
41 41
 
42 42
             if (!items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
43 43
                 items[i].setSellIn(items[i].getSellIn() - 1);