Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.gitignore file changes #24

Open
wants to merge 2 commits into
base: Green-Team
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 21 additions & 29 deletions Team Green/src/gilded_rose.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,29 @@ def __init__(self, items):

def update_quality(self):
for item in self.items:
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":
item.quality = item.quality - 1
if item.name.startswith("Conjured"):
item.quality -= 1
else:
if item.quality < 50:
item.quality = item.quality + 1
if item.name == "Backstage passes to a TAFKAL80ETC concert":
if item.sell_in < 11:
if item.quality < 50:
item.quality = item.quality + 1
if item.sell_in < 6:
if item.quality < 50:
item.quality = item.quality + 1
if item.name not in ["Aged Brie", "Backstage passes to a TAFKAL80ETC concert", "Sulfuras, Hand of Ragnaros"] \
and item.quality > 0:
item.quality -= 1
if item.name.startswith("Conjured"):
item.quality -= 1
elif item.quality < 50:
item.quality += 1
if item.name == "Backstage passes to a TAFKAL80ETC concert":
if item.sell_in < 11:
item.quality += 1
if item.sell_in < 6:
item.quality += 1
if item.name != "Sulfuras, Hand of Ragnaros":
item.sell_in = item.sell_in - 1
item.sell_in -= 1
if item.sell_in < 0:
if item.name != "Aged Brie":
if item.name != "Backstage passes to a TAFKAL80ETC concert":
if item.quality > 0:
if item.name != "Sulfuras, Hand of Ragnaros":
item.quality = item.quality - 1
if item.name.startswith("Conjured"):
item.quality -= 1
else:
item.quality = item.quality - item.quality
else:
if item.quality < 50:
item.quality = item.quality + 1
if item.name == "Backstage passes to a TAFKAL80ETC concert":
item.quality = 0
elif item.name == "Aged Brie" and item.quality < 50:
item.quality += 1
elif item.name != "Sulfuras, Hand of Ragnaros" and item.quality > 0:
item.quality -= 1
if item.name.startswith("Conjured"):
item.quality -= 1


class Item:
Expand Down
5 changes: 0 additions & 5 deletions Team Green/src/lib/python3.8/site-packages/easy_install.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading