mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
Remove quality change on sulfuras
For some reason the php7 version sets the quality of sulfuras to be 80. The sepcification simply states this is the max, and that it does not change, as written on line 22 of the english specifications.
This commit is contained in:
parent
9a9b4351f2
commit
2a4f2b3b7c
@ -16,8 +16,6 @@ final class GildedRose {
|
|||||||
if ($item->quality > 0) {
|
if ($item->quality > 0) {
|
||||||
if ($item->name != 'Sulfuras, Hand of Ragnaros') {
|
if ($item->name != 'Sulfuras, Hand of Ragnaros') {
|
||||||
$item->quality = $item->quality - 1;
|
$item->quality = $item->quality - 1;
|
||||||
} else {
|
|
||||||
$item->quality = 80;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user