Add a special rule for Sulfuras quality

This commit is contained in:
Kevin Boyd committed 2019-04-23 21:40:26 -07:00
1 parent c17454032b
commit 501cb7e041
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -12,6 +12,12 @@ final class GildedRose {
public function updateQuality() {
foreach ($this->items as $item) {
if ($item->name === 'Sulfuras, Hand of Ragnaros') {
$item->quality = 80;
continue;
}
if ($item->name != 'Aged Brie' and $item->name != 'Backstage passes to a TAFKAL80ETC concert') {
if ($item->quality > 0) {
if ($item->name != 'Sulfuras, Hand of Ragnaros') {