DnD_5e.read_from_web package
Module contents
- DnD_5e.read_from_web.get_attack_from_text(text)[source]
Get the information about an attack from a text description
- Parameters:
text – the text to read
- Returns:
the info about the attack found
- DnD_5e.read_from_web.get_damage_dice(text: str)[source]
Get the string that corresponds to the Python code to create the correct DamageDice or DamageDiceBag for the given damage description
- Parameters:
text – text describing damage (e.g., “2d6 piercing damage”)
- Returns: