示例#1
0
 public void Update(Item item)
 {
     ItemModifier.Modify(item)
     .IncreaseAge()
     .IncreaseQuality()
     .IncreaseQualityWhenExpired()
     .LimitQualityToNoMoreThan(50);
 }
 public void Update(Item item)
 {
     ItemModifier.Modify(item)
     .IncreaseAge()
     .DecreaseQualityBy(2)
     .DecreaseQualityWhenExpiredBy(2)
     .LimitQualityToNoLessThan(0);
 }
示例#3
0
 public void Update(Item item)
 {
     ItemModifier.Modify(item)
     .IncreaseAge()
     .IncreaseQuality()
     .IncreaseQualityWhenExpiryInLessThan(10)
     .IncreaseQualityWhenExpiryInLessThan(5)
     .ReduceAllQualityWhenExpired()
     .LimitQualityToNoMoreThan(50);
 }