mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
replaced instances of item != sulfuras with sulfuras? method
This commit is contained in:
parent
70040c5144
commit
2431b8b11e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user