Commit Graph
5 Commits
Author SHA1 Message Date
uzairarslan b835c7e1da Add conjured items
Conjured items degrade twice as fast as normal ones. Matched by name
prefix so any "Conjured ..." item works, not just the Mana Cake.
Wrote the tests first, then the updater. Only the Mana Cake lines
changed in the approved output.
2026-09-24 03:21:33 +05:00
uzairarslan fc9ceaad09 Split update logic into one updater class per item type
ItemUpdater has the normal rules. Brie, backstage passes and Sulfuras
subclass it and override only what differs. GildedRose picks the right
one through updater_for. Tests and approved output unchanged.
2026-09-24 03:21:18 +05:00
uzairarslan 19011580f5 Extract constants and return early for Sulfuras
No behaviour change. Named the item strings and the 0/50 bounds, moved
the body into _update_item and return early for Sulfuras so the rest of
the ladder only deals with items that actually change.
2026-09-24 03:21:18 +05:00
Radek Simko 4a7ffc291e Remove extra whitespaces 2015-06-27 08:08:50 +01:00
emilybache 567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00