mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-18 16:01:42 +00:00
Conjured Mana Cake success!
This commit is contained in:
parent
ec38231369
commit
1a746202c7
@ -75,9 +75,15 @@ final class GildedRose
|
||||
if ($item->quality > 0) {
|
||||
$this->lowerQuality($item, 1);
|
||||
}
|
||||
if ($item->name === 'Conjured Mana Cake') {
|
||||
$this->lowerQuality($item, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if ($item->sell_in <= 0) {
|
||||
if ($item->name === 'Conjured Mana Cake') {
|
||||
$this->lowerQuality($item, 1);
|
||||
}
|
||||
if ($item->name === 'Aged Brie') {
|
||||
if ($item->quality < 50) {
|
||||
$this->increaseQuality($item, 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user