moved specific backstage logic

This commit is contained in:
Sallah Kokaina 2019-11-01 19:36:31 +01:00
parent 077ceb820a
commit 2889f161ae

View File

@ -25,11 +25,11 @@ class GildedRose {
updateBackstageQuality(item);
}
else{
if (!item.name.equals(Backstage.BACKSTAGE)) {
if (item.quality > 0 && !item.name.equals(Sulfuras.SULFURAS)) {
item.decreaseQuality();
}
}
else {
if (item.quality < 50) {
item.increaseQuality();