mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
22 lines
449 B
Java
22 lines
449 B
Java
package com.gildedrose.items;
|
|
|
|
import com.gildedrose.Item;
|
|
import com.gildedrose.item_helpers.ItemHandler;
|
|
import com.gildedrose.item_helpers.ItemType;
|
|
|
|
public class Legendary implements ItemType {
|
|
|
|
private final ItemHandler item;
|
|
|
|
public Legendary(Item item) {
|
|
this.item = new ItemHandler(item);
|
|
}
|
|
|
|
@Override
|
|
public void updateQuality() {
|
|
item.decrementSellInDate();
|
|
item.setLegendaryQuality();
|
|
}
|
|
|
|
}
|