mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
improve requirement on aged brie
This commit is contained in:
parent
fc0f14803a
commit
7412e2705d
@ -17,7 +17,7 @@ Pretty simple, right? Well this is where it gets interesting:
|
|||||||
|
|
||||||
- Once the sell by date has passed, Quality degrades twice as fast
|
- Once the sell by date has passed, Quality degrades twice as fast
|
||||||
- The Quality of an item is never negative
|
- The Quality of an item is never negative
|
||||||
- "Aged Brie" actually increases in Quality the older it gets
|
- "Aged Brie" actually increases in Quality the older it gets, once sell by date has passed, Quality increases twice as fast.
|
||||||
- The Quality of an item is never more than 50
|
- The Quality of an item is never more than 50
|
||||||
- "Sulfuras", being a legendary item, never has to be sold or decreases in Quality
|
- "Sulfuras", being a legendary item, never has to be sold or decreases in Quality
|
||||||
- "Backstage passes", like aged brie, increases in Quality as its SellIn value approaches;
|
- "Backstage passes", like aged brie, increases in Quality as its SellIn value approaches;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ Gilded Rose 需求描述
|
|||||||
|
|
||||||
- 一旦销售期限过期,品质`Quality`会以双倍速度加速下降
|
- 一旦销售期限过期,品质`Quality`会以双倍速度加速下降
|
||||||
- 物品的品质`Quality`永远不会为负值
|
- 物品的品质`Quality`永远不会为负值
|
||||||
- "Aged Brie"的品质`Quality`会随着时间推移而提高
|
- "Aged Brie"的品质`Quality`会随着时间推移而提高, 一旦销售期限过期,品质`Quality`会以双倍速度提高
|
||||||
- 物品的品质`Quality`永远不会超过50
|
- 物品的品质`Quality`永远不会超过50
|
||||||
- 传奇物品"Sulfuras"永不到期,也不会降低品质`Quality`
|
- 传奇物品"Sulfuras"永不到期,也不会降低品质`Quality`
|
||||||
- "Backstage passes"与aged brie类似,其品质`Quality`会随着时间推移而提高;当还剩10天或更少的时候,品质`Quality`每天提高2;当还剩5天或更少的时候,品质`Quality`每天提高3;但一旦过期,品质就会降为0
|
- "Backstage passes"与aged brie类似,其品质`Quality`会随着时间推移而提高;当还剩10天或更少的时候,品质`Quality`每天提高2;当还剩5天或更少的时候,品质`Quality`每天提高3;但一旦过期,品质就会降为0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user