mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 06:21:29 +00:00
moved specific backstage logic
This commit is contained in:
parent
077ceb820a
commit
2889f161ae
@ -25,11 +25,11 @@ class GildedRose {
|
|||||||
updateBackstageQuality(item);
|
updateBackstageQuality(item);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if (!item.name.equals(Backstage.BACKSTAGE)) {
|
|
||||||
if (item.quality > 0 && !item.name.equals(Sulfuras.SULFURAS)) {
|
if (item.quality > 0 && !item.name.equals(Sulfuras.SULFURAS)) {
|
||||||
item.decreaseQuality();
|
item.decreaseQuality();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
if (item.quality < 50) {
|
if (item.quality < 50) {
|
||||||
item.increaseQuality();
|
item.increaseQuality();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user