mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-08 19:21:28 +00:00
17 lines
390 B
C#
17 lines
390 B
C#
namespace GildedRoseKata.Strategies;
|
|
|
|
public class ConjuredItemStrategy : BaseUpdateStrategy
|
|
{
|
|
public override void UpdateQuality(Item item)
|
|
{
|
|
// For now, Conjured items degrade at normal rate to match original behavior
|
|
DecreaseQuality(item);
|
|
DecreaseSellIn(item);
|
|
|
|
if (item.SellIn < 0)
|
|
{
|
|
DecreaseQuality(item);
|
|
}
|
|
}
|
|
}
|