Update gilded_rose.py

This commit is contained in:
Raj 2025-06-27 01:21:10 +05:30 committed by GitHub
parent 58a991fe27
commit a640d53132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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":