def update_items(items, current_time): if GildedRose.is_end_of_the_day(current_time): for item in items: if ItemService.is_item_conjured(item): ConjuredService.update_quality(item) elif ItemService.is_item_back_stage(item): BackstageService.update_item_quality(item) elif ItemService.is_item_sulfuras(item): SulfuraService.update_item(item) elif ItemService.is_aged_brie(item): AgedBrieService.update_item(item) elif not ItemService.is_special_item(item): StandardItemService.update_item_quality(item) return items
def set_item_quality(item): if ItemService.is_item_sulfuras(item): item.quality = 80 return item.quality