replaced instances of item != sulfuras with sulfuras? method

This commit is contained in:
ollie beney 2020-11-04 16:57:36 +00:00
parent 70040c5144
commit 2431b8b11e

View File

@ -29,14 +29,14 @@ class GildedRose
end
end
end
if item.name != "Sulfuras, Hand of Ragnaros"
if !sulfuras?(item)
item.sell_in = item.sell_in - 1
end
if item.sell_in < 0
if item.name != "Aged Brie"
if !item.name.downcase.match /backstage/
if item.quality > 0
if item.name != "Sulfuras, Hand of Ragnaros"
if !sulfuras?(item)
item.quality = item.quality - 1
end
end