10 lines
394 B
1def light_spell_allowed_ingredients() -> list[str]:
2 return ["earth", "air", "fire", "water"]
3
4
5def light_spell_record(spell_name: str, ingredients: str) -> str:
6 from .light_validator import validate_ingredients
7 res = validate_ingredients(ingredients)
8 if "INVALID" in res:
9 return f"Spell rejected: {spell_name} ({res})"
10 return f"Spell recorded: {spell_name} ({res})"