mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-09 19:51:41 +00:00
feat: added Conjured item
This commit is contained in:
parent
b96440778e
commit
d46757243c
@ -66,11 +66,7 @@ class Sulfuras(Item):
|
|||||||
|
|
||||||
class Conjured(Item):
|
class Conjured(Item):
|
||||||
name: str = "Conjured"
|
name: str = "Conjured"
|
||||||
def daily_step(self):
|
degradation_per_day: int = Item.degradation_per_day * 2
|
||||||
if self.quality < 50:
|
|
||||||
self.quality += 1
|
|
||||||
super().daily_step()
|
|
||||||
|
|
||||||
|
|
||||||
items_mappings: dict[str, type[Item]] = {
|
items_mappings: dict[str, type[Item]] = {
|
||||||
"Aged Brie": AgedBrie,
|
"Aged Brie": AgedBrie,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user