Composition of never sold method

This commit is contained in:
davidraj 2022-10-10 19:08:41 +01:00
parent 5f137d6312
commit 299a7efb12

View File

@ -8,6 +8,8 @@ class ItemProcessor
end
def update_item_quality
return if never_sold
if (item.name != 'Aged Brie') && (item.name != 'Backstage passes to a TAFKAL80ETC concert')
decrease_item_quality
else
@ -44,4 +46,8 @@ class ItemProcessor
def old_item
item.sell_in = item.sell_in - 1 if item.name != 'Sulfuras, Hand of Ragnaros'
end
def never_sold
item.name == 'Sulfuras, Hand of Ragnaros'
end
end