This Release includes breaking changes!
What's Changed
-
- Rename PatternInfo dataclass fields (is_rare -> rare / group -> name)
-
- Breaking:
check_rarenow returns aPatternInfodataclass (normalized weapon/skin/pattern, rarity, ordering, icon) instead of the previous tuple. - Breaking: Multi-weapon helpers (
fade,fire_and_ice,gem_black,gem_blue,gem_gold,gem_purple,gem_white) returnNonefor unsupported weapons; adjust downstream code accordingly. - Icons are centralized in
cs2pattern/icons.json, updated with consistent glyphs (e.g., phoenix🐦🔥,fire_and_ice❄️) and exposed viaPatternInfo.icon. tools/add_pattern.pygains--icon, duplicate-pattern sanitization, optional-helper generation withNonefallbacks, and refreshed AI disclaimer metadata.- README entries (main + tools) document the new return contract and icon workflow.
- Breaking:
Full Changelog: v0.6.0...v0.6.1