9 lines
316 B
1from .dark_spellbook import dark_spell_allowed_ingredients
2
3
4def validate_ingredients(ingredients: str) -> str:
5 allowed = dark_spell_allowed_ingredients()
6 lower = ingredients.lower()
7 if any(item in lower for item in allowed):
8 return f"{ingredients} - VALID"
9 return f"{ingredients} - INVALID"