mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 23:11:28 +00:00
18 lines
357 B
Java
18 lines
357 B
Java
package com.gildedrose;
|
|
|
|
/**
|
|
* Class for the item ConjuredItem inherited from NormalItem
|
|
*/
|
|
public class ConjuredItem extends NormalItem {
|
|
public ConjuredItem(Item item) {
|
|
this.item=item;
|
|
}
|
|
|
|
public void updateQuality() {
|
|
decreaseQualityBy(1);
|
|
if (itemHasExpired()) {
|
|
decreaseQualityBy(1);
|
|
}
|
|
}
|
|
}
|