mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
Update gilded_rose.py
This commit is contained in:
parent
58a991fe27
commit
a640d53132
@ -7,6 +7,10 @@ class GildedRose(object):
|
||||
|
||||
def update_quality(self):
|
||||
for item in self.items:
|
||||
if item.name == "Raj" and item.name != "Backstage passes to a TAFKAL80ETC concert": #added a condition for Raj
|
||||
if item.quality > 0:
|
||||
if item.name == "Raj":
|
||||
item.quality = item.quality - 1
|
||||
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert":
|
||||
if item.quality > 0:
|
||||
if item.name != "Sulfuras, Hand of Ragnaros":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user