John Kim hace 8 años
padre
commit
cb0a336fb0
Se han modificado 1 ficheros con 1 adiciones y 60 borrados
  1. 1
    60
      Inventory.java

+ 1
- 60
Inventory.java Ver fichero

@@ -12,66 +12,7 @@ public class Inventory {
12 12
         this.specialItems.add("Backstage passes to a TAFKAL80ETC concert");
13 13
         this.specialItems.add("Sulfuras, Hand of Ragnaros");
14 14
         this.specialItems.add("Conjured");
15
-    }
16
-    /*
17
-    public void updateQuality() {
18
-        for (int i = 0; i < items.length; i++) {
19
-            //if item at ith index doesnt equal aged brie AND BACKSTAGE PASS
20
-            if (!items[i].getName().equals("Aged Brie")
21
-            && !items[i].getName().equals("Backstage passes to a TAFKAL80ETC concert")) {
22
-                //left with normal and sulfuras with qual greater than 0
23
-                if (items[i].getQuality() > 0) {
24
-                    //not sulfurs minus the qual of each -1 but does it factor in time after sell by?
25
-                    if (!items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
26
-                        items[i].setQuality(items[i].getQuality() - 1);
27
-                    }
28
-                }
29
-            } else {
30
-                if (items[i].getQuality() < 50) {
31
-                    items[i].setQuality(items[i].getQuality() + 1);
32
-
33
-                    if (items[i].getName() == "Backstage passes to a TAFKAL80ETC concert") {
34
-                        if (items[i].getSellIn() < 11) {
35
-                            if (items[i].getQuality() < 50) {
36
-                                items[i].setQuality(items[i].getQuality() + 1);
37
-                            }
38
-                        }
39
-
40
-                        if (items[i].getSellIn() < 6) {
41
-                            if (items[i].getQuality() < 50) {
42
-                                items[i].setQuality(items[i].getQuality() + 1);
43
-                            }
44
-                        }
45
-                    }
46
-                }
47
-            }
48
-
49
-            if (!items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
50
-                items[i].setSellIn(items[i].getSellIn() - 1);
51
-            }
52
-
53
-            if (items[i].getSellIn() < 0) {
54
-                if (!items[i].getName().equals("Aged Brie")) {
55
-                    if (!items[i].getName().equals("Backstage passes to a TAFKAL80ETC concert")) {
56
-                        if (items[i].getQuality() > 0) {
57
-                            if (!items[i].getName().equals("Sulfuras, Hand of Ragnaros")) {
58
-                                items[i].setQuality(items[i].getQuality() - 1);
59
-                            }
60
-                        }
61
-                    } else {
62
-                        items[i].setQuality(items[i].getQuality()
63
-                            - items[i].getQuality());
64
-                    }
65
-                } else {
66
-                    if (items[i].getQuality() < 50) {
67
-                        items[i].setQuality(items[i].getQuality() + 1);
68
-                    }
69
-                }
70
-            }
71
-        }
72
-    }
73
-    */
74
-   
15
+    }   
75 16
     public void updateQuality() {
76 17
         for (int i = 0; i < items.length; i++) {
77 18
             //updateSulfurusQuality(i);