コード例 #1
0
 public void Update(Item item)
 {
     ItemModifier.Modify(item)
     .IncreaseAge()
     .IncreaseQuality()
     .IncreaseQualityWhenExpired()
     .LimitQualityToNoMoreThan(50);
 }
コード例 #2
0
 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);
 }