changed part of method that changes backstage pass quality to zero to a more logical method

This commit is contained in:
ollie beney 2020-11-04 17:07:04 +00:00
parent 626eab9e10
commit 0ae0723f57

View File

@ -13,6 +13,7 @@ class GildedRose
end
else
if item.quality < 50
item.quality = item.quality + 1
if item.name.downcase.match /backstage/
@ -28,6 +29,7 @@ class GildedRose
end
end
end
end
if !sulfuras?(item)
item.sell_in = item.sell_in - 1
@ -41,7 +43,7 @@ class GildedRose
end
end
else
item.quality = item.quality - item.quality
item.quality = 0
end
else
if item.quality < 50