mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
r move sulfuras up
This commit is contained in:
parent
3c4653f45d
commit
421ce7feb5
@ -10,6 +10,10 @@ class Item:
|
||||
|
||||
def update_item(item: Item):
|
||||
is_aged_brie = item.name == "Aged Brie"
|
||||
is_sulfuras = item.name == "Sulfuras, Hand of Ragnaros"
|
||||
|
||||
if is_sulfuras:
|
||||
return
|
||||
|
||||
if is_aged_brie:
|
||||
if item.quality < 50:
|
||||
@ -36,11 +40,6 @@ def update_item(item: Item):
|
||||
item.quality = item.quality - item.quality
|
||||
|
||||
else:
|
||||
is_sulfuras = item.name == "Sulfuras, Hand of Ragnaros"
|
||||
|
||||
if is_sulfuras:
|
||||
return
|
||||
|
||||
if item.quality > 0:
|
||||
item.quality = item.quality - 1
|
||||
item.sell_in = item.sell_in - 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user